diff --git a/.gitignore b/.gitignore index 0cff5f84d..83b3160c0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,9 +2,11 @@ grammar/testData/psi/**/*.* !grammar/testData/psi/**/*.antlrtree.txt +!grammar/testData/psi/**/*.diff grammar/testData/diagnostics/**/*.* !grammar/testData/diagnostics/**/*.antlrtree.txt +!grammar/testData/diagnostics/**/*.diff grammar/src/main/java/**/* @@ -15,4 +17,6 @@ build !docs/scripts/build !scripts/build +kotlin-js-store + *.pws diff --git a/build.gradle.kts b/build.gradle.kts index 1d6b52779..7c382c05c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,7 @@ import at.phatbl.shellexec.ShellExec plugins { - kotlin("jvm") version "1.4.31" apply false + kotlin("jvm") version "1.7.0" apply false id("at.phatbl.shellexec") version "1.5.2" } diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 000000000..48dcf05fa --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,28 @@ +FROM pandoc/latex:2.14.2-ubuntu +MAINTAINER Marat Akhin + +WORKDIR /source + +# install Java 11 +RUN apt-get update +RUN apt-get install -y software-properties-common +RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9 +RUN apt-add-repository 'deb http://repos.azulsystems.com/ubuntu stable main' +RUN apt-get update +RUN apt-get install -y zulu-11 + +# install packages for the Kotlin spec +RUN apt-get install -y git +RUN apt-get install -y gpp +RUN apt-get install -y librsvg2-bin +RUN apt-get install -y npm +RUN apt-get install -y curl +RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - +RUN apt-get install -y nodejs + +# install more TeX Live packages +RUN tlmgr install --no-persistent-downloads enumitem +RUN tlmgr install --no-persistent-downloads cancel +RUN tlmgr install --no-persistent-downloads todonotes +RUN tlmgr install --no-persistent-downloads titlesec +RUN tlmgr install --no-persistent-downloads newunicodechar diff --git a/docs/build.gradle.kts b/docs/build.gradle.kts index 51ab5e098..4469054ea 100644 --- a/docs/build.gradle.kts +++ b/docs/build.gradle.kts @@ -1,6 +1,4 @@ -import at.phatbl.shellexec.ShellExec import org.jetbrains.kotlin.gradle.tasks.KotlinCompile -import java.nio.file.Paths import java.net.URI plugins { @@ -56,13 +54,13 @@ dependencies { implementation("ru.spbstu:g4-to-ebnf:0.0.0.4") implementation("ru.spbstu:kotlin-pandoc:0.0.15") implementation("ru.spbstu:simple-diagrammer:0.0.0.7") - implementation("com.github.ajalt:clikt:1.7.0") - implementation("com.zaxxer:nuprocess:2.0.1") - implementation("org.antlr:antlr4:4.+") + implementation("com.github.ajalt:clikt:2.8.0") + implementation("com.zaxxer:nuprocess:2.0.3") + implementation("org.antlr:antlr4:4.8") } tasks.withType { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "11" } tasks.create("filtersJar") { @@ -86,7 +84,7 @@ tasks.create("convertGrammar") { outputs.file(outputFile) classpath = sourceSets["main"].runtimeClasspath - main = "org.jetbrains.kotlin.spec.ConvertGrammarKt" + mainClass.set("org.jetbrains.kotlin.spec.ConvertGrammarKt") args = listOf("-d", grammarsDir, "-l", lexerGrammar, "-p", parserGrammar, "-o", outputFile) } @@ -102,15 +100,15 @@ tasks.create("prepareShell") { doFirst { val res = with(StringBuilder()) { - appendln("PROJECT_DIR=$projectDir") - if (disableTODOS) appendln("TODO_OPTION=--disable-todos") - else appendln("TODO_OPTION=--enable-todos") + appendLine("PROJECT_DIR=$projectDir") + if (disableTODOS) appendLine("TODO_OPTION=--disable-todos") + else appendLine("TODO_OPTION=--enable-todos") if (enableStaticMath) { - appendln("STATIC_MATH_OPTION=--enable-static-math") - appendln("KATEX_BIN_OPTION=\"--katex=${rootProject.buildDir}/js/node_modules/.bin/katex\"") + appendLine("STATIC_MATH_OPTION=--enable-static-math") + appendLine("KATEX_BIN_OPTION=\"--katex=${rootProject.buildDir}/js/node_modules/.bin/katex\"") } - else appendln("STATIC_MATH_OPTION=--disable-static-math") + else appendLine("STATIC_MATH_OPTION=--disable-static-math") } File("$buildDir/prepare.sh").writeText("$res") @@ -143,7 +141,7 @@ tasks.create("execute") { classpath = sourceSets["main"].runtimeClasspath - main = project.findProperty("mainClass") as? String ?: "" + mainClass.set(project.findProperty("mainClass") as? String ?: "") args = (project.findProperty("args") as? String)?.split(" ") ?: emptyList() val wd = project.findProperty("workDir") as? String workingDir = wd?.let { File(it) } ?: File(".") diff --git a/docs/src/main/kotlin/org/jetbrains/kotlin/spec/compoundFilter.kt b/docs/src/main/kotlin/org/jetbrains/kotlin/spec/compoundFilter.kt index 8f84fdd65..cbddda182 100644 --- a/docs/src/main/kotlin/org/jetbrains/kotlin/spec/compoundFilter.kt +++ b/docs/src/main/kotlin/org/jetbrains/kotlin/spec/compoundFilter.kt @@ -26,14 +26,14 @@ private object CompoundFilter : CliktCommand() { val format: Format by argument("Pandoc output format").convert { Format(it) } val split: Boolean by option().flag("--no-split") val disableTODOS: Boolean by option().flag("--enable-todos") - val imageDirectory: File? by option().file(fileOkay = false) + val imageDirectory: File? by option().file(canBeFile = false) val embed: Boolean by option().flag() val defaultFormat: String? by option() val disableStaticMath by option().flag("--enable-static-math") val katex by option() - val outputDirectory: File by option().file(fileOkay = false).defaultLazy { File(".") } + val outputDirectory: File by option().file(canBeFile = false).defaultLazy { File(".") } val generateTOC: Boolean by option().flag("--no-toc") override fun run() { diff --git a/docs/src/md/commands.md b/docs/src/md/commands.md index 61c81180b..697755d79 100644 --- a/docs/src/md/commands.md +++ b/docs/src/md/commands.md @@ -1,6 +1,6 @@ <#mode quote> -\newcommand{\currentKotlinMajorVersion}{\textrm{1.6}} +\newcommand{\currentKotlinMajorVersion}{\textrm{1.7}} \newcommand{\opMathTT}[2]{% \expandafter\newcommand{#1}{\operatorname{\texttt{#2}}}% diff --git a/docs/src/md/index.md b/docs/src/md/index.md index 2b3576189..f207c4b63 100644 --- a/docs/src/md/index.md +++ b/docs/src/md/index.md @@ -4,7 +4,7 @@ title: Kotlin language specification author: - Marat Akhin - Mikhail Belyaev -subtitle: Version 1.6-rfc+0.1 +subtitle: Version 1.7-rfc+0.1 --- <#include "commands.md"> diff --git a/docs/src/md/kotlin.core/annotations.md b/docs/src/md/kotlin.core/annotations.md index 253de122e..b604d621e 100644 --- a/docs/src/md/kotlin.core/annotations.md +++ b/docs/src/md/kotlin.core/annotations.md @@ -144,8 +144,6 @@ It is implementation-defined how this annotation is processed. > Note: before Kotlin 1.4.0, there were two other built-in annotations: `@Experimental` (now replaced by `@RequiresOptIn`) and `@UseExperimental` (now replaced by `@OptIn`) serving the same purpose which are now deprecated. -TODO(Experimental status is still experimental itself) - #### `kotlin.Deprecated` / `kotlin.ReplaceWith` `kotlin.Deprecated` is an annotation class with the following fields: diff --git a/docs/src/md/kotlin.core/cdfa.md b/docs/src/md/kotlin.core/cdfa.md index 25805152c..d4d8e7092 100644 --- a/docs/src/md/kotlin.core/cdfa.md +++ b/docs/src/md/kotlin.core/cdfa.md @@ -435,11 +435,11 @@ x?.y +-------------+------------+ +-------------+------------+ | | v v - +-------+-------+ +-------+-------+ - | | | | - | $3 = null | | $3 = $1.y | - | | | | - +-------+-------+ +-------+-------+ + +-------+-------+ +-------+-------+ + | | | | + | $3 = null | | $3 = $1.y | + | | | | + +-------+-------+ +-------+-------+ | | | +-----------------------+ v v diff --git a/docs/src/md/kotlin.core/declarations.md b/docs/src/md/kotlin.core/declarations.md index 690677a70..7ec68b57e 100644 --- a/docs/src/md/kotlin.core/declarations.md +++ b/docs/src/md/kotlin.core/declarations.md @@ -692,7 +692,7 @@ Interfaces differ from classes in that they cannot be directly instantiated in t In other aspects they are similar to classes, therefore we shall specify their declarations by specifying their differences from class declarations. * An interface can be declared only in a declaration scope; - * Additionally, an interface cannot be declared in an [object literal]; + * Additionally, an interface cannot be declared in an [object literal][Object literals]; * An interface cannot have a class as its supertype; * An interface cannot have a constructor; * Interface properties cannot have initializers or backing fields; @@ -779,7 +779,7 @@ No other values of this type may be declared, making object a single existing va Similarly to interfaces, we shall specify object declarations by highlighting their differences from class declarations. * An object can only be declared in a declaration scope; - * Additionally, an object cannot be declared in an [object literal]; + * Additionally, an object cannot be declared in an [object literal][Object literals]; * An object type cannot be used as a supertype for other types; * An object cannot have an explicit primary or secondary constructor; * An object cannot have a companion object; @@ -820,9 +820,9 @@ A primary $pctor$ or secondary constructor $ctor$ has a corresponding superclass When a classifier type is initialized using a particular secondary constructor $ctor$ delegated to primary constructor $pctor$ which, in turn, is delegated to the corresponding superclass constructor $sctor$, the following happens, in this *initialization order*: -- $pctor$ is invoked using the specified parameters, initializing all the properties declared by its property parameters *in the order of appearance in the constructor declaration*; - The superclass object is initialized as if created by invoking $sctor$ with the specified parameters; - Interface delegation expressions are invoked and the result of each is stored in the object to allow for interface delegation, *in the order of appearance of delegation declarations in the supertype specifier list*; +- $pctor$ is invoked using the specified parameters, initializing all the properties declared by its property parameters *in the order of appearance in the constructor declaration*; - Each property initialization code as well as the initialization blocks in the class body are invoked *in the order of appearance in the class body*; - $ctor$ body is invoked using the specified parameters. @@ -846,7 +846,12 @@ It stays unspecified even after the "proper" initialization is performed. > } > } > -> class Init(val a: Number /* (1) */) : Base(0xC0FFEE) /* (2) */ { +> interface I +> +> class Init(val a: Number) : Base(0xC0FFEE) /* (2) */, +> I by object : I { +> init { println("2.5") } +> } /* (2.5) */ { > > init { > println("3: $this") /* (3) */ @@ -1755,6 +1760,62 @@ Reified type parameters can only be substituted by other [runtime-available type > } > ``` +#### Underscore type arguments + +In case one needs to explicitly specify some type parameters via [type arguments][Parameterized classifier types], but wants to use [type inference] for the rest, they can use an *underscore type argument*. + +An underscore type argument does not add any type information to the [constraint system][Kotlin type constraints] *besides the presence of a type parameter*, i.e., parameterized declaration with different number of type parameters could be distinguished by different number of underscore type arguments. + +If the type inference is successfull, each underscore type argument is considered to be equal to the inferred type for their respective type parameter. +If the type inference is not successfull, it is a compile-time error. + +> Example: +> ```kotlin +> fun mk(): T = TODO() +> +> interface MyRunnable { +> fun execute(): T +> } +> +> class StringRunnable : MyRunnable { +> override fun execute(): String = "test" +> } +> +> class IntRunnable : MyRunnable { +> override fun execute(): Int = 42 +> } +> +> inline fun , T> run(): T = mk().execute() +> +> fun main() { +> val s = run() +> assert(s == "test") +> +> val i = run() +> assert(i == 42) +> } +> ``` + +> Example: +> ```kotlin +> fun foo(t: T): T = TODO() // (1) +> fun > foo(t: T, d: Double = 42.0): T = TODO() // (2) +> +> fun bar() { +> val a: Boolean = foo(true) +> // resolves to (1) +> // per overload resolution rules +> +> val b: Int = foo<_ /* U1 */>(42) +> // resolves to (1) +> // with U1 inferred to Int +> +> val c: Double = foo<_ /* U1 */, _ /* U2 */>(42.0) +> // resolves to (2) +> // with U1 inferred to Double and U2 inferred to List +> } +> ``` + ### Declaration visibility Each declaration has a visibility property relative to the scope it is declared in. diff --git a/docs/src/md/kotlin.core/expressions.md b/docs/src/md/kotlin.core/expressions.md index 732ab5f21..22bf9977d 100644 --- a/docs/src/md/kotlin.core/expressions.md +++ b/docs/src/md/kotlin.core/expressions.md @@ -156,6 +156,15 @@ For further details, please refer to the corresponding section. The keyword `null` denotes the **null reference**, which represents an absence of a value and is a valid value only for [nullable types][Nullable types]. Null reference has type [`kotlin.Nothing?`][`kotlin.Nothing`] and is, by definition, the only value of this type. +### Constant expressions + +We use the term "constant expression" to refer to any expression constructed of the following: + +* [constant literals][Constant literals] +* [access expressions][Call and property access expressions] to [enum entries][Enum class declaration] +* [string interpolation][String interpolation expressions] over constant expressions +* an implementation-defined set of functions that can always be evaluated at compile-time + ### String interpolation expressions :::{.paste target=grammar-rule-stringLiteral} @@ -434,11 +443,10 @@ A when expression is called **_exhaustive_** if at least one of the following is - It has an `else` entry; - It has a bound value and at least one of the following is true: - The bound expression is of type `kotlin.Boolean` and the conditions contain both: - - A constant expression evaluating to `true`; + - A [constant expression][Constant expressions] evaluating to `true`; - A constant expression evaluating to `false`; - - > Important: here the term "constant expression" refers to any expression constructed of [constant literals][Constant literals], [string interpolation][String interpolation expressions] over constant expressions and an implementation-defined set of functions that may always be evaluated at compile-time + - The bound expression is of a [`sealed`][Sealed classes and interfaces] class or interface `S` and all of its [*direct non-sealed subtypes*][Sealed classes and interfaces] $T_1, \ldots, T_n$ are covered in this expression. A subtype $T_i$ is considered covered if when expression contains one of the following: * a type test condition $\is S_j$, where $S_j <: S, T_i <: S_j$; @@ -535,7 +543,7 @@ A value created by any constructor call is never equal by reference to a null re There is an exception to these rules: values of [value classes][Value class declaration] are not guaranteed to be reference equal even if they are created by the same constructor invocation as said constructor invocation is explicitly allowed to be inlined by the compiler. It is thus highly discouraged to compare inline classes by reference. -For special values created without explicit constructor calls, notably, constant literals and constant expressions composed of those literals, and for values of inline classes, the following holds: +For special values created without explicit constructor calls, notably, [constant literals][Constant literals] and [constant expressions][Constant expressions] composed of those literals, and for values of inline classes, the following holds: - If these values are [non-equal by value][Value equality expressions], they are also non-equal by reference; - Any instance of the null reference `null` is equal by reference to any other diff --git a/docs/src/md/kotlin.core/type-inference.md b/docs/src/md/kotlin.core/type-inference.md index 30c6324e1..10ceff2e1 100644 --- a/docs/src/md/kotlin.core/type-inference.md +++ b/docs/src/md/kotlin.core/type-inference.md @@ -549,20 +549,60 @@ If $T$ is an intersection type, the same process is performed for every member o If $T$ is a nullable type $U?$, the steps given above are performed for its non-nullable counterpart type $U$. -## Builder-style type inference +### Builder-style type inference -Some functions or parameters of functions in the standard library are annotated with the special [`@BuilderInference`][Built-in annotations] annotation, making calls to these functions eligible for the special kind of type inference: **builder-style type inference**. -In order to allow builder-style inference for a function parameter, this parameter must hold the following properties: +> Note: before Kotlin 1.7, builder-style type inference required using the [`@BuilderInference`][Built-in annotations] annotation on lambda parameters. -- It must be of an extension-function type; -- It must be marked with the `@BuilderInference` annotation. +When working with DSLs that have generic builder functions, one may want to infer the generic builder type parameters using the information from the builder's lambda body. +Kotlin supports special kind of type inference called **builder-style type inference** to allow this in some cases. -In essence, the builder-style inference allows a receiver of an extension lambda parameter to be inferred from its usage in addition to standard type information sources. -For a call to an eligible function with a lambda parameter $L$ the inference is performed [as described above][Statements with lambda literals], but the type parameters of the receiver parameter of the lambda expression are *postponed* till the body of the lambda expression is proceeded. -After the inference of statements inside the lambda body, these parameters are inferred using an additional type inference step: +In order to allow builder-style inference for a generic builder function and its type parameter `P`, it should satisfy the following requirements: -- For each call to a member function of the receiver or an extension function of the receiver marked with the `@BuilderInference` annotation, the type constraints are collected and gathered into a single constraint system; -- This system is solved in order to infer the actual type arguments of the receiver. +- It has a lambda parameter of [function type with receiver][Function types], with receiver type `T` +- The receiver type `T` uses type parameter `P` in its type arguments +- The receiver type `T` can be used as receiver for callables which can provide information about `P` via their use + +> Note: using the type parameter `P` *directly* as the receiver type `T` (e.g., `fun myBuilder(builder: Q /* T */.() -> Unit)`) is not yet supported. + +In essence, the builder-style inference allows the type of the lambda parameter receiver to be inferred from its usage in the lambda body. +This is performed only if the standard type inference cannot infer the required types, meaning one could provide additional type information to help with the inference, e.g., via explicit type arguments, and avoid the need for builder-style inference. + +If the builder-style inference is needed, for a call to an eligible function with a lambda parameter, the inference is performed [as described above][Statements with lambda literals], but the type arguments of the lambda parameter receiver are viewed as *postponed* type variables till the body of the lambda expression is proceeded. + +> Note: during the builder-style inference process, a postponed type variable is not required to be inferred to a concrete type. + +After the inference of statements inside the lambda is complete, these postponed type variables are inferred using an additional type inference step, which takes the resulting type constraint system and tries to find the instantiation of the postponed type variables to concrete types. + +If the system cannot be solved, it is a compile-time error. > Note: notable examples of builder-style inference-enabled functions are `kotlin.sequence` and `kotlin.iterator`. > See standard library documentation for details. + +> Example: +> ```kotlin +> fun buildMap(action: MutableMap.() -> Unit): Map { ... } +> +> interface Map : Map { ... } +> interface MutableMap : Map { +> fun put(key: K, value: V): V? +> fun putAll(from: Map): Unit +> } +> +> fun addEntryToMap(baseMap: Map, +> additionalEntry: Pair?) { +> val myMap = buildMap/* */ { // cannot infer type arguments +> // needs builder-style inference +> putAll(baseMap) +> // provides information about String <: K, Number <: V +> +> if (additionalEntry != null) { +> put(additionalEntry.first, additionalEntry.second) +> // provides information about String <: K, Int <: V +> } +> } +> // solves to String =:= K, Number =:= V +> // ... +> } +> ``` + +TODO(More detailed description of builder-style inference) diff --git a/docs/src/md/kotlin.core/type-system.md b/docs/src/md/kotlin.core/type-system.md index 100745d36..17cf30ac5 100644 --- a/docs/src/md/kotlin.core/type-system.md +++ b/docs/src/md/kotlin.core/type-system.md @@ -996,6 +996,58 @@ Following the lozenge structure, for type variable type $T$ (i.e., either non-nu > Example: if we have $T? <: \Int?$, we also have $T!! <: \Int?$ and $T!! <: \Int!!$, however, we can establish only $T <: \Int?$, as $T <: \Int$ would need $T? <: \Int!!$ which is forbidden by the nullability lozenge. +##### Definitely non-nullable types + +As discussed [here][Nullability lozenge], type variable types have unknown nullability, e.g., a type parameter $T$ may correspond to either nullable version $T?$, or non-nullable version $T!!$. +In some cases, one might need to specifically denote a nullable/non-nullable version of $T$. + +> Note: for example, it is needed when overriding a Java method with a `@NotNull` annotated generic parameter. +> +> Example: +> ```java +> public interface JBox { +> void put(@NotNull T t); +> } +> ``` +> +> ```kotlin +> class KBox : JBox { +> override fun put(t: T/* !! */) = TODO() +> } +> ``` + +To denote a nullable version of $T$, one can use the [nullable type][Nullable types] syntax $T?$. + +To denote a non-nullable version of $T$, one can use the definitely non-nullable type syntax $T \amp Any$. + +To represent a well-formed definitely non-nullable type, $T \amp Any$ should satisfy the following conditions. + +* $T$ is a well-formed [type parameter][Type parameters] with a nullable upper bound +* $Any$ is resolved to $\Any$ + +> Example: +> ```kotlin +> typealias MyAny = kotlin.Any +> +> fun bar(t: T?, q: Q?, i: Int?) { +> // OK +> val a: T & Any = t!! +> // OK: MyAny is resolved to kotlin.Any +> val b: T & MyAny = t!! +> // ERROR: Int is not kotlin.Any +> val c: T & Int = t!! +> +> // ERROR: Q does not have a nullable upper bound +> val d: Q & Any = q!! +> +> // ERROR: Int? is not a type parameter +> val e: Int? & Any = i!! +> } +> ``` + +One may notice the syntax looks like an intersection type $T \amp Any$, and that is not a coincidence, as an intersection type with $Any$ describes exactly a type which cannot hold `null` values. +For the purposes of the type system, a definitely non-nullable type $T \amp Any$ is consider to be the same as an [intersection type][Intersection types] $T \amp Any$. + #### Intersection types Intersection types are special *non-denotable* types used to express the fact that a value belongs to *all* of *several* types at the same time. @@ -1010,6 +1062,7 @@ Thus, the normalization procedure for $\GLB$ may be used to *normalize* an inter When needed, the compiler may *approximate* an intersection type to a *denotable concrete* type using [type approximation][Type approximation]. One of the main uses of intersection types are [smart casts][Smart casts]. +Another restricted version of intersection types are [definitely non-nullable types]. #### Integer literal types diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index ffed3a254..aa991fcea 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/grammar/README.md b/grammar/README.md index cdf9b50ef..40add69eb 100644 --- a/grammar/README.md +++ b/grammar/README.md @@ -33,5 +33,5 @@ An additional artifact available from TeamCity is **`kotlin-grammar-tools-{versi - [Anastasiya Shadrina](https://github.com/shadrina) - [Mikhail Belyaev](https://github.com/belyaev-mikhail) -- [Victor Petukhov](https://github.com/PetukhovVictor) +- [Victor Petukhov](https://github.com/petukhovv) - [Marat Akhin](https://github.com/ice-phoenix) diff --git a/grammar/build.gradle.kts b/grammar/build.gradle.kts index 3c705b987..e5ed4a057 100644 --- a/grammar/build.gradle.kts +++ b/grammar/build.gradle.kts @@ -5,7 +5,7 @@ import java.util.regex.Pattern plugins { idea - id("org.jetbrains.intellij") version "0.6.5" + id("org.jetbrains.intellij") version "1.6.0" antlr `maven-publish` kotlin("jvm") @@ -47,8 +47,8 @@ sourceSets { } dependencies { - compile("junit:junit:4.12") - antlr("org.antlr:antlr4:4.+") + implementation("junit:junit:4.13.2") + antlr("org.antlr:antlr4:4.8") } tasks.compileKotlin { @@ -56,7 +56,7 @@ tasks.compileKotlin { } intellij { - version = "IC-2020.2" + version.set("IC-2022.1") } tasks.withType { @@ -67,9 +67,22 @@ tasks.withType { arguments.add("org.jetbrains.kotlin.spec.grammar") } +tasks.create("removeFailedMarkerFiles") { + doFirst { + File("${project.rootDir}/${project.name}/testData") + .walkTopDown() + .filter { it.isFile && it.extension == "failed" } + .forEach { it.delete() } + } +} + tasks.withType { + dependsOn("removeFailedMarkerFiles") + workingDir = File("${project.rootDir}/${project.name}") ignoreFailures = project.hasProperty("teamcity") + + systemProperties["TEST_PATH_FILTER"] = System.getProperty("TEST_PATH_FILTER") } tasks.create("removeCompilerTestData") { @@ -141,14 +154,24 @@ tasks.create("prepareDiagnosticsCompilerTests") { } } -jar.archiveName = "$archivePrefix-$version.jar" +val instrumentTestCodeTask = tasks.named("instrumentTestCode") -jar.manifest { - attributes( - mapOf( - "Class-Path" to configurations.runtime.files.joinToString(" ") { it.name } - ) - ) +tasks.named("inspectClassesForKotlinIC") { + dependsOn(instrumentTestCodeTask) } -jar.from(configurations.runtime.files.map { if (it.isDirectory) it else zipTree(it) }) +tasks.withType { + dependsOn(instrumentTestCodeTask) + + archiveFileName.set("$archivePrefix-$archiveVersion.jar") + + manifest { + attributes( + mapOf( + "Class-Path" to configurations.runtimeClasspath.get().files.joinToString(" ") { it.name } + ) + ) + } + + from(configurations.runtimeClasspath.get().files.map { if (it.isDirectory) it else zipTree(it) }) +} diff --git a/grammar/scripts/processActuals.sh b/grammar/scripts/processActuals.sh new file mode 100755 index 000000000..9f4f6cfc6 --- /dev/null +++ b/grammar/scripts/processActuals.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +TEST_DATA="$1" +REF="$2" + +for actual in `find "${TEST_DATA}" -name "*.actual"`; do + old="${actual%.*}" + diff "$actual" "$old" | tail -n +2 > "actual_old_diff.tmp" + cmp -s "actual_old_diff.tmp" "$REF" + + if [[ $? == 0 ]]; then + mv $actual $old + else + echo "$actual" + echo `diff "$actual" "$old"` + fi +done diff --git a/grammar/src/main/antlr/KotlinLexer.g4 b/grammar/src/main/antlr/KotlinLexer.g4 old mode 100755 new mode 100644 index 418a5e5b0..d36cdbba1 --- a/grammar/src/main/antlr/KotlinLexer.g4 +++ b/grammar/src/main/antlr/KotlinLexer.g4 @@ -87,6 +87,7 @@ AS_SAFE: 'as?'; EQEQ: '=='; EQEQEQ: '==='; SINGLE_QUOTE: '\''; +AMP: '&'; // SECTION: keywords @@ -440,6 +441,7 @@ Inside_AS_SAFE: AS_SAFE -> type(AS_SAFE); Inside_EQEQ: EQEQ -> type(EQEQ); Inside_EQEQEQ: EQEQEQ -> type(EQEQEQ); Inside_SINGLE_QUOTE: SINGLE_QUOTE -> type(SINGLE_QUOTE); +Inside_AMP: AMP -> type(AMP); Inside_QUOTE_OPEN: QUOTE_OPEN -> pushMode(LineString), type(QUOTE_OPEN); Inside_TRIPLE_QUOTE_OPEN: TRIPLE_QUOTE_OPEN -> pushMode(MultiLineString), type(TRIPLE_QUOTE_OPEN); diff --git a/grammar/src/main/antlr/KotlinLexer.tokens b/grammar/src/main/antlr/KotlinLexer.tokens index a207d69c1..8692c66d6 100644 --- a/grammar/src/main/antlr/KotlinLexer.tokens +++ b/grammar/src/main/antlr/KotlinLexer.tokens @@ -53,122 +53,123 @@ AS_SAFE=52 EQEQ=53 EQEQEQ=54 SINGLE_QUOTE=55 -RETURN_AT=56 -CONTINUE_AT=57 -BREAK_AT=58 -THIS_AT=59 -SUPER_AT=60 -FILE=61 -FIELD=62 -PROPERTY=63 -GET=64 -SET=65 -RECEIVER=66 -PARAM=67 -SETPARAM=68 -DELEGATE=69 -PACKAGE=70 -IMPORT=71 -CLASS=72 -INTERFACE=73 -FUN=74 -OBJECT=75 -VAL=76 -VAR=77 -TYPE_ALIAS=78 -CONSTRUCTOR=79 -BY=80 -COMPANION=81 -INIT=82 -THIS=83 -SUPER=84 -TYPEOF=85 -WHERE=86 -IF=87 -ELSE=88 -WHEN=89 -TRY=90 -CATCH=91 -FINALLY=92 -FOR=93 -DO=94 -WHILE=95 -THROW=96 -RETURN=97 -CONTINUE=98 -BREAK=99 -AS=100 -IS=101 -IN=102 -NOT_IS=103 -NOT_IN=104 -OUT=105 -DYNAMIC=106 -PUBLIC=107 -PRIVATE=108 -PROTECTED=109 -INTERNAL=110 -ENUM=111 -SEALED=112 -ANNOTATION=113 -DATA=114 -INNER=115 -VALUE=116 -TAILREC=117 -OPERATOR=118 -INLINE=119 -INFIX=120 -EXTERNAL=121 -SUSPEND=122 -OVERRIDE=123 -ABSTRACT=124 -FINAL=125 -OPEN=126 -CONST=127 -LATEINIT=128 -VARARG=129 -NOINLINE=130 -CROSSINLINE=131 -REIFIED=132 -EXPECT=133 -ACTUAL=134 -RealLiteral=135 -FloatLiteral=136 -DoubleLiteral=137 -IntegerLiteral=138 -HexLiteral=139 -BinLiteral=140 -UnsignedLiteral=141 -LongLiteral=142 -BooleanLiteral=143 -NullLiteral=144 -CharacterLiteral=145 -Identifier=146 -IdentifierOrSoftKey=147 -FieldIdentifier=148 -QUOTE_OPEN=149 -TRIPLE_QUOTE_OPEN=150 -UNICODE_CLASS_LL=151 -UNICODE_CLASS_LM=152 -UNICODE_CLASS_LO=153 -UNICODE_CLASS_LT=154 -UNICODE_CLASS_LU=155 -UNICODE_CLASS_ND=156 -UNICODE_CLASS_NL=157 -QUOTE_CLOSE=158 -LineStrRef=159 -LineStrText=160 -LineStrEscapedChar=161 -LineStrExprStart=162 -TRIPLE_QUOTE_CLOSE=163 -MultiLineStringQuote=164 -MultiLineStrRef=165 -MultiLineStrText=166 -MultiLineStrExprStart=167 -Inside_Comment=168 -Inside_WS=169 -Inside_NL=170 -ErrorCharacter=171 +AMP=56 +RETURN_AT=57 +CONTINUE_AT=58 +BREAK_AT=59 +THIS_AT=60 +SUPER_AT=61 +FILE=62 +FIELD=63 +PROPERTY=64 +GET=65 +SET=66 +RECEIVER=67 +PARAM=68 +SETPARAM=69 +DELEGATE=70 +PACKAGE=71 +IMPORT=72 +CLASS=73 +INTERFACE=74 +FUN=75 +OBJECT=76 +VAL=77 +VAR=78 +TYPE_ALIAS=79 +CONSTRUCTOR=80 +BY=81 +COMPANION=82 +INIT=83 +THIS=84 +SUPER=85 +TYPEOF=86 +WHERE=87 +IF=88 +ELSE=89 +WHEN=90 +TRY=91 +CATCH=92 +FINALLY=93 +FOR=94 +DO=95 +WHILE=96 +THROW=97 +RETURN=98 +CONTINUE=99 +BREAK=100 +AS=101 +IS=102 +IN=103 +NOT_IS=104 +NOT_IN=105 +OUT=106 +DYNAMIC=107 +PUBLIC=108 +PRIVATE=109 +PROTECTED=110 +INTERNAL=111 +ENUM=112 +SEALED=113 +ANNOTATION=114 +DATA=115 +INNER=116 +VALUE=117 +TAILREC=118 +OPERATOR=119 +INLINE=120 +INFIX=121 +EXTERNAL=122 +SUSPEND=123 +OVERRIDE=124 +ABSTRACT=125 +FINAL=126 +OPEN=127 +CONST=128 +LATEINIT=129 +VARARG=130 +NOINLINE=131 +CROSSINLINE=132 +REIFIED=133 +EXPECT=134 +ACTUAL=135 +RealLiteral=136 +FloatLiteral=137 +DoubleLiteral=138 +IntegerLiteral=139 +HexLiteral=140 +BinLiteral=141 +UnsignedLiteral=142 +LongLiteral=143 +BooleanLiteral=144 +NullLiteral=145 +CharacterLiteral=146 +Identifier=147 +IdentifierOrSoftKey=148 +FieldIdentifier=149 +QUOTE_OPEN=150 +TRIPLE_QUOTE_OPEN=151 +UNICODE_CLASS_LL=152 +UNICODE_CLASS_LM=153 +UNICODE_CLASS_LO=154 +UNICODE_CLASS_LT=155 +UNICODE_CLASS_LU=156 +UNICODE_CLASS_ND=157 +UNICODE_CLASS_NL=158 +QUOTE_CLOSE=159 +LineStrRef=160 +LineStrText=161 +LineStrEscapedChar=162 +LineStrExprStart=163 +TRIPLE_QUOTE_CLOSE=164 +MultiLineStringQuote=165 +MultiLineStrRef=166 +MultiLineStrText=167 +MultiLineStrExprStart=168 +Inside_Comment=169 +Inside_WS=170 +Inside_NL=171 +ErrorCharacter=172 '...'=6 '.'=7 ','=8 @@ -214,77 +215,78 @@ ErrorCharacter=171 '=='=53 '==='=54 '\''=55 -'file'=61 -'field'=62 -'property'=63 -'get'=64 -'set'=65 -'receiver'=66 -'param'=67 -'setparam'=68 -'delegate'=69 -'package'=70 -'import'=71 -'class'=72 -'interface'=73 -'fun'=74 -'object'=75 -'val'=76 -'var'=77 -'typealias'=78 -'constructor'=79 -'by'=80 -'companion'=81 -'init'=82 -'this'=83 -'super'=84 -'typeof'=85 -'where'=86 -'if'=87 -'else'=88 -'when'=89 -'try'=90 -'catch'=91 -'finally'=92 -'for'=93 -'do'=94 -'while'=95 -'throw'=96 -'return'=97 -'continue'=98 -'break'=99 -'as'=100 -'is'=101 -'in'=102 -'out'=105 -'dynamic'=106 -'public'=107 -'private'=108 -'protected'=109 -'internal'=110 -'enum'=111 -'sealed'=112 -'annotation'=113 -'data'=114 -'inner'=115 -'value'=116 -'tailrec'=117 -'operator'=118 -'inline'=119 -'infix'=120 -'external'=121 -'suspend'=122 -'override'=123 -'abstract'=124 -'final'=125 -'open'=126 -'const'=127 -'lateinit'=128 -'vararg'=129 -'noinline'=130 -'crossinline'=131 -'reified'=132 -'expect'=133 -'actual'=134 -'null'=144 -'"""'=150 +'&'=56 +'file'=62 +'field'=63 +'property'=64 +'get'=65 +'set'=66 +'receiver'=67 +'param'=68 +'setparam'=69 +'delegate'=70 +'package'=71 +'import'=72 +'class'=73 +'interface'=74 +'fun'=75 +'object'=76 +'val'=77 +'var'=78 +'typealias'=79 +'constructor'=80 +'by'=81 +'companion'=82 +'init'=83 +'this'=84 +'super'=85 +'typeof'=86 +'where'=87 +'if'=88 +'else'=89 +'when'=90 +'try'=91 +'catch'=92 +'finally'=93 +'for'=94 +'do'=95 +'while'=96 +'throw'=97 +'return'=98 +'continue'=99 +'break'=100 +'as'=101 +'is'=102 +'in'=103 +'out'=106 +'dynamic'=107 +'public'=108 +'private'=109 +'protected'=110 +'internal'=111 +'enum'=112 +'sealed'=113 +'annotation'=114 +'data'=115 +'inner'=116 +'value'=117 +'tailrec'=118 +'operator'=119 +'inline'=120 +'infix'=121 +'external'=122 +'suspend'=123 +'override'=124 +'abstract'=125 +'final'=126 +'open'=127 +'const'=128 +'lateinit'=129 +'vararg'=130 +'noinline'=131 +'crossinline'=132 +'reified'=133 +'expect'=134 +'actual'=135 +'null'=145 +'"""'=151 diff --git a/grammar/src/main/antlr/KotlinParser.g4 b/grammar/src/main/antlr/KotlinParser.g4 index 628dbed38..53356a1f4 100644 --- a/grammar/src/main/antlr/KotlinParser.g4 +++ b/grammar/src/main/antlr/KotlinParser.g4 @@ -91,6 +91,7 @@ delegationSpecifier | explicitDelegation | userType | functionType + | SUSPEND NL* functionType ; constructorInvocation @@ -247,7 +248,7 @@ enumEntry // SECTION: types type - : typeModifiers? (parenthesizedType | nullableType | typeReference | functionType) + : typeModifiers? (functionType | parenthesizedType | nullableType | typeReference | definitelyNonNullableType) ; typeReference @@ -306,6 +307,10 @@ parenthesizedUserType : LPAREN NL* (userType | parenthesizedUserType) NL* RPAREN ; +definitelyNonNullableType + : typeModifiers? (userType | parenthesizedUserType) NL* AMP NL* typeModifiers? (userType | parenthesizedUserType) + ; + // SECTION: statements statements @@ -354,12 +359,10 @@ assignment semi : (SEMICOLON | NL) NL* - | EOF ; semis : (SEMICOLON | NL)+ - | EOF ; // SECTION: expressions diff --git a/grammar/src/test/org/jetbrains/kotlin/spec/grammar/TestRunner.kt b/grammar/src/test/org/jetbrains/kotlin/spec/grammar/TestRunner.kt index 8a93dc5a5..88aec97d3 100644 --- a/grammar/src/test/org/jetbrains/kotlin/spec/grammar/TestRunner.kt +++ b/grammar/src/test/org/jetbrains/kotlin/spec/grammar/TestRunner.kt @@ -1,9 +1,6 @@ package org.jetbrains.kotlin.spec.grammar import com.intellij.testFramework.TestDataPath -import org.junit.Test -import org.junit.runner.RunWith -import java.io.File import org.jetbrains.kotlin.spec.grammar.parsetree.ParseTreeUtil import org.jetbrains.kotlin.spec.grammar.psi.PsiTextParser import org.jetbrains.kotlin.spec.grammar.util.DiagnosticTestData @@ -11,8 +8,12 @@ import org.jetbrains.kotlin.spec.grammar.util.PsiTestData import org.jetbrains.kotlin.spec.grammar.util.TestDataFileHeader import org.jetbrains.kotlin.spec.grammar.util.TestUtil import org.jetbrains.kotlin.spec.grammar.util.TestUtil.assertEqualsToFile +import org.jetbrains.kotlin.spec.grammar.util.TestUtil.testPathPrefix import org.junit.Assert.assertTrue import org.junit.Assume.assumeFalse +import org.junit.Test +import org.junit.runner.RunWith +import java.io.File import java.util.regex.Pattern @TestDataPath("\$PROJECT_ROOT/grammar/testData/") @@ -34,22 +35,23 @@ class TestRunner { * It can be used to run specific tests instead of running all ones * For instance, `Regex("""secondEmptyCatch\.kt$""")` */ -// private val testPathFilter: Regex? = Regex("annotatedTypeInCatchBlockSignature.kt") - private val testPathFilter: Regex? = null + private val testPathFilter: Regex? = System.getProperty("TEST_PATH_FILTER")?.let(::Regex) private val antlrTreeFileHeaderPattern = - Pattern.compile("""^File: .*?.kts? - (?[0-9a-f]{32})(? \((?$ERROR_EXPECTED_MARKER|$MUTE_MARKER|$MUTE_PSI_ERRORS_MARKER)\))?$""") + Pattern.compile("""^File: .*?.kts? - (?[0-9a-f]{32})(? \((?$ERROR_EXPECTED_MARKER|$MUTE_MARKER|$MUTE_PSI_ERRORS_MARKER)\))?$""") @org.junit.runners.Parameterized.Parameters(name = "{0}") @JvmStatic fun getTestFiles() = emptyList>() + @Suppress("UNUSED") @com.intellij.testFramework.Parameterized.Parameters(name = "{0}") @JvmStatic - fun getTestFiles(klass: Class<*>) = File("./testData").let { testsDir -> - testsDir.walkTopDown().filter { it.extension == "kt" && (testPathFilter == null || it.path.contains(testPathFilter)) }.map { - arrayOf(it.relativeTo(testsDir).path.replace("/", "$")) - }.toList() + fun getTestFiles(@Suppress("UNUSED_PARAMETER") klass: Class<*>) = File("./testData").let { testsDir -> + testsDir.walkTopDown() + .filter { it.extension == "kt" && (testPathFilter == null || it.path.contains(testPathFilter)) } + .map { arrayOf(it.relativeTo(testsDir).path.replace("/", "$")) } + .toList() } } @@ -57,17 +59,18 @@ class TestRunner { fun doTest() { val testFile = File(testFilePath.replace("$", "/")) val testData = TestUtil.getTestData(testFile) - val header = if (testData.antlrParseTreeText.exists()) - antlrTreeFileHeaderPattern.matcher(testData.antlrParseTreeText.readText().lines().first()).run { - if (!find()) - return@run null + val header = if (testData.antlrParseTreeText.exists()) { + antlrTreeFileHeaderPattern.matcher( + testData.antlrParseTreeText.readText().lines().first() + ).run { + if (!find()) return@run null - val marker = group("marker") - val hash = group("hash") + val marker = group("marker") + val hash = group("hash") - TestDataFileHeader(marker, hash) - } - else null + TestDataFileHeader(marker, hash) + } + } else null if (header != null) { if (!FAIL_ON_DIFFERENT_HASHES_FOR_SOURCE_CODE) { @@ -85,15 +88,15 @@ class TestRunner { val mutedPsiErrorText = (if (isMutedPsiError) " ($MUTE_PSI_ERRORS_MARKER)" else "") val dumpParseTree = parseTree.stringifyTree( - "File: ${testFile.name} - ${testData.sourceCodeHash}" + errorExpectedText + mutedPsiErrorText + "File: ${testFile.name} - ${testData.sourceCodeHash}" + errorExpectedText + mutedPsiErrorText ) assertEqualsToFile( - "Expected and actual ANTLR parsetree are not equals", - testData.antlrParseTreeText, - dumpParseTree, - FORCE_APPLY_CHANGES || (header != null && header.hash != testData.sourceCodeHash), - DUMP_ERRONEOUS_DATA + "Expected and actual ANTLR parsetree are not equals", + testData.antlrParseTreeText, + dumpParseTree, + FORCE_APPLY_CHANGES || (header != null && header.hash != testData.sourceCodeHash), + DUMP_ERRONEOUS_DATA ) val lexerHasErrors = lexerErrors.isNotEmpty() @@ -104,6 +107,10 @@ class TestRunner { println("HAS ANTLR PARSER ERRORS: ${if (parserHasErrors) "YES" else "NO"}") parserErrors.forEach { println(" - $it") } + fun mkFailedMarkerFile() { + File("${testFile.testPathPrefix}.failed").createNewFile() + } + when (testData) { is PsiTestData -> { val psi = PsiTextParser.parse(testData.psiParseTreeText) @@ -113,11 +120,22 @@ class TestRunner { println("HAS PSI ERROR ELEMENTS: ${if (psiHasErrorElements) "YES" else "NO"}") psiErrorElements.forEach { println(" - Line ${it.second.first}:${it.second.second} ${it.first}") } - assertTrue((verdictsEquals && !isErrorExpected) || (isErrorExpected && !psiHasErrorElements) || (psiHasErrorElements && isMutedPsiError)) + + val isOK = (verdictsEquals && !isErrorExpected) || + (isErrorExpected && !psiHasErrorElements) || + (psiHasErrorElements && isMutedPsiError) + if (!isOK) mkFailedMarkerFile() + + assertTrue(isOK) } is DiagnosticTestData -> { val hasAnyErrors = lexerHasErrors || parserHasErrors - assertTrue((!hasAnyErrors && !isErrorExpected) || isErrorExpected && hasAnyErrors) + + val isOK = (!hasAnyErrors && !isErrorExpected) || + (isErrorExpected && hasAnyErrors) + if (!isOK) mkFailedMarkerFile() + + assertTrue(isOK) } } } diff --git a/grammar/src/test/org/jetbrains/kotlin/spec/grammar/parsetree/ComparisonTree.kt b/grammar/src/test/org/jetbrains/kotlin/spec/grammar/parsetree/ComparisonTree.kt index f866a6a2d..3d325763e 100644 --- a/grammar/src/test/org/jetbrains/kotlin/spec/grammar/parsetree/ComparisonTree.kt +++ b/grammar/src/test/org/jetbrains/kotlin/spec/grammar/parsetree/ComparisonTree.kt @@ -10,7 +10,7 @@ data class ComparisonTree( ) { fun dump(indent: Int = 0, sb: Appendable = StringBuilder()) { - sb.append(" ".repeat(indent)).appendln(text) + sb.append(" ".repeat(indent)).appendLine(text) for (child in children) child.dump(indent + 2, sb) } fun dumpChildren(sb: Appendable = StringBuilder()) { diff --git a/grammar/src/test/org/jetbrains/kotlin/spec/grammar/parsetree/ParseTreeUtil.kt b/grammar/src/test/org/jetbrains/kotlin/spec/grammar/parsetree/ParseTreeUtil.kt index 5284987ac..306a0e2fd 100644 --- a/grammar/src/test/org/jetbrains/kotlin/spec/grammar/parsetree/ParseTreeUtil.kt +++ b/grammar/src/test/org/jetbrains/kotlin/spec/grammar/parsetree/ParseTreeUtil.kt @@ -18,6 +18,7 @@ class KotlinParserWithLimitedCache(input: TokenStream): KotlinParser(input) { companion object { private const val MAX_CACHE_SIZE = 10000 private val cacheField = _sharedContextCache.javaClass.declaredFields.find { it.name == "cache" }!!.apply { isAccessible = true } + @Suppress("UNCHECKED_CAST") private val cache = cacheField.get(_sharedContextCache) as HashMap } @@ -34,6 +35,7 @@ class KotlinLexerWithLimitedCache(input: CharStream): KotlinLexer(input) { companion object { private const val MAX_CACHE_SIZE = 10000 private val cacheField = _sharedContextCache.javaClass.declaredFields.find { it.name == "cache" }!!.apply { isAccessible = true } + @Suppress("UNCHECKED_CAST") private val cache = cacheField.get(_sharedContextCache) as HashMap } @@ -96,7 +98,7 @@ object ParseTreeUtil { fun parse(sourceCode: String): Pair, List>> { val lexerErrors = mutableListOf() val parserErrors = mutableListOf() - val lexer = KotlinLexerWithLimitedCache(ANTLRInputStream(sourceCode)) + val lexer = KotlinLexerWithLimitedCache(CharStreams.fromString(sourceCode)) val tokens = CommonTokenStream( lexer.apply { removeErrorListeners() diff --git a/grammar/src/test/org/jetbrains/kotlin/spec/grammar/util/TestUtil.kt b/grammar/src/test/org/jetbrains/kotlin/spec/grammar/util/TestUtil.kt index d72bcdf16..58a50e290 100644 --- a/grammar/src/test/org/jetbrains/kotlin/spec/grammar/util/TestUtil.kt +++ b/grammar/src/test/org/jetbrains/kotlin/spec/grammar/util/TestUtil.kt @@ -72,9 +72,14 @@ object TestUtil { } } - fun getTestData(testFile: File): TestData { - val relativePath = "${testFile.parent}/${testFile.nameWithoutExtension}" + val File.testPathPrefix: String get() { + val relativePath = "${parent}/${nameWithoutExtension}" val testPathPrefix = "$TESTS_DIR/$relativePath" + return testPathPrefix + } + + fun getTestData(testFile: File): TestData { + val testPathPrefix = testFile.testPathPrefix val sourceCodeFile = File("$testPathPrefix.kt") val sourceCode = sourceCodeFile.readText() val antlrTreeFile = File("$testPathPrefix.antlrtree.txt") diff --git a/grammar/testData/diagnostics/Abstract.c.antlrtree.txt b/grammar/testData/diagnostics/Abstract.c.antlrtree.txt index 3b3dbd851..2a99715d9 100644 --- a/grammar/testData/diagnostics/Abstract.c.antlrtree.txt +++ b/grammar/testData/diagnostics/Abstract.c.antlrtree.txt @@ -1,4 +1,4 @@ -File: Abstract.c.kt - 1901a277a75e489f9d1980cda2552ec7 +File: Abstract.c.kt - 1d59066bffbd812bda005664a647b642 NL("\n") packageHeader importList @@ -305,5 +305,5 @@ File: Abstract.c.kt - 1901a277a75e489f9d1980cda2552ec7 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/AbstractAccessor.antlrtree.txt b/grammar/testData/diagnostics/AbstractAccessor.antlrtree.txt index af0c77c10..3d1429f65 100644 --- a/grammar/testData/diagnostics/AbstractAccessor.antlrtree.txt +++ b/grammar/testData/diagnostics/AbstractAccessor.antlrtree.txt @@ -222,6 +222,4 @@ File: AbstractAccessor.kt - 0dc14db75b4f030d55b4337e405bf860 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/AbstractInAbstractClass.antlrtree.txt b/grammar/testData/diagnostics/AbstractInAbstractClass.antlrtree.txt index b1686eacb..19a592f56 100644 --- a/grammar/testData/diagnostics/AbstractInAbstractClass.antlrtree.txt +++ b/grammar/testData/diagnostics/AbstractInAbstractClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: AbstractInAbstractClass.kt - 5b9b17a61463c33ee4cc48a17430247c (WITH_ERRORS) +File: AbstractInAbstractClass.kt - f330f7abc48344d5e2331c0165649d1d (WITH_ERRORS) + NL("\n") packageHeader PACKAGE("package") identifier @@ -1204,4 +1205,5 @@ File: AbstractInAbstractClass.kt - 5b9b17a61463c33ee4cc48a17430247c (WITH_ERRORS semis NL("\n") RCURL("}") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/AbstractInClass.antlrtree.txt b/grammar/testData/diagnostics/AbstractInClass.antlrtree.txt index 6595d98f8..cdc18d5a6 100644 --- a/grammar/testData/diagnostics/AbstractInClass.antlrtree.txt +++ b/grammar/testData/diagnostics/AbstractInClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: AbstractInClass.kt - 7b1aa6aca8a1cc6a507bf9be4d2d86f0 (WITH_ERRORS) +File: AbstractInClass.kt - 0b3f5cf31761f3bc15c46f9cb3cf2061 (WITH_ERRORS) + NL("\n") packageHeader PACKAGE("package") identifier @@ -1221,4 +1222,5 @@ File: AbstractInClass.kt - 7b1aa6aca8a1cc6a507bf9be4d2d86f0 (WITH_ERRORS) semis NL("\n") RCURL("}") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/AbstractInTrait.antlrtree.txt b/grammar/testData/diagnostics/AbstractInTrait.antlrtree.txt index f2510ba4b..4faeadb01 100644 --- a/grammar/testData/diagnostics/AbstractInTrait.antlrtree.txt +++ b/grammar/testData/diagnostics/AbstractInTrait.antlrtree.txt @@ -1,4 +1,5 @@ -File: AbstractInTrait.kt - 78b9fdd0ef226a5babf7ae9ffe1fbfe4 (WITH_ERRORS) +File: AbstractInTrait.kt - 9339caa9e5d8c7bab0facd97d7d2767d (WITH_ERRORS) + NL("\n") packageHeader PACKAGE("package") identifier @@ -1217,4 +1218,5 @@ File: AbstractInTrait.kt - 78b9fdd0ef226a5babf7ae9ffe1fbfe4 (WITH_ERRORS) semis NL("\n") RCURL("}") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/AnonymousInitializers.antlrtree.txt b/grammar/testData/diagnostics/AnonymousInitializers.antlrtree.txt index 0f0227a99..5a38cad9c 100644 --- a/grammar/testData/diagnostics/AnonymousInitializers.antlrtree.txt +++ b/grammar/testData/diagnostics/AnonymousInitializers.antlrtree.txt @@ -1,4 +1,5 @@ -File: AnonymousInitializers.kt - 0cfb90d554324f61dc7cc05cd31fde83 +File: AnonymousInitializers.kt - 9c742b772222e9612bef487c061a254a + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/AssignToArrayElement.antlrtree.txt b/grammar/testData/diagnostics/AssignToArrayElement.antlrtree.txt index 8c0180cea..961373ed1 100644 --- a/grammar/testData/diagnostics/AssignToArrayElement.antlrtree.txt +++ b/grammar/testData/diagnostics/AssignToArrayElement.antlrtree.txt @@ -485,6 +485,4 @@ File: AssignToArrayElement.kt - 0b443c2b058eaeca0b8178385135a904 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/AutoCreatedIt.antlrtree.txt b/grammar/testData/diagnostics/AutoCreatedIt.antlrtree.txt index 506d0f026..99e4b6689 100644 --- a/grammar/testData/diagnostics/AutoCreatedIt.antlrtree.txt +++ b/grammar/testData/diagnostics/AutoCreatedIt.antlrtree.txt @@ -1,5 +1,4 @@ -File: AutoCreatedIt.kt - 6fee5e2327640f9785dc5f7096ed02e1 - NL("\n") +File: AutoCreatedIt.kt - 16255624719e6f14b4e58d93cb28a689 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/BacktickNames.antlrtree.txt b/grammar/testData/diagnostics/BacktickNames.antlrtree.txt index 9e46543a0..08d57d6cb 100644 --- a/grammar/testData/diagnostics/BacktickNames.antlrtree.txt +++ b/grammar/testData/diagnostics/BacktickNames.antlrtree.txt @@ -1,4 +1,5 @@ -File: BacktickNames.kt - 28d74009617b4865a5ca183f509722b8 +File: BacktickNames.kt - 5e43fd112302a18ef7d562143608d43f + NL("\n") NL("\n") NL("\n") NL("\n") @@ -1587,6 +1588,4 @@ File: BacktickNames.kt - 28d74009617b4865a5ca183f509722b8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/Basic.antlrtree.txt b/grammar/testData/diagnostics/Basic.antlrtree.txt index dba280dc1..866bb04d5 100644 --- a/grammar/testData/diagnostics/Basic.antlrtree.txt +++ b/grammar/testData/diagnostics/Basic.antlrtree.txt @@ -1,5 +1,4 @@ -File: Basic.kt - 3c357ec7db09d9a8cd4e193817633593 - NL("\n") +File: Basic.kt - ffc8c3f0460d2ff8a7fba644aed94323 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/BinaryCallsOnNullableValues.antlrtree.txt b/grammar/testData/diagnostics/BinaryCallsOnNullableValues.antlrtree.txt index 9cc12dc88..f6ac7b3c5 100644 --- a/grammar/testData/diagnostics/BinaryCallsOnNullableValues.antlrtree.txt +++ b/grammar/testData/diagnostics/BinaryCallsOnNullableValues.antlrtree.txt @@ -1,5 +1,4 @@ -File: BinaryCallsOnNullableValues.kt - 961e36255608dcf88013d7fa399f6ca4 - NL("\n") +File: BinaryCallsOnNullableValues.kt - 3286a70749bd3fcb8f7702dc73e17727 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/Bounds.a.antlrtree.txt b/grammar/testData/diagnostics/Bounds.a.antlrtree.txt index cc4280992..3b3c34dbb 100644 --- a/grammar/testData/diagnostics/Bounds.a.antlrtree.txt +++ b/grammar/testData/diagnostics/Bounds.a.antlrtree.txt @@ -422,6 +422,4 @@ File: Bounds.a.kt - 64a7915ec6dc9ded98aed4fcf97bfcb0 RPAREN(")") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/BreakContinueInWhen_after.antlrtree.txt b/grammar/testData/diagnostics/BreakContinueInWhen_after.antlrtree.txt index c36999bd5..3167d37b8 100644 --- a/grammar/testData/diagnostics/BreakContinueInWhen_after.antlrtree.txt +++ b/grammar/testData/diagnostics/BreakContinueInWhen_after.antlrtree.txt @@ -1,5 +1,4 @@ -File: BreakContinueInWhen_after.kt - f02685d6840a7b0982fdf9484afc366a - NL("\n") +File: BreakContinueInWhen_after.kt - 9261914a8cf8c785889959c94104f9eb NL("\n") NL("\n") packageHeader @@ -2042,5 +2041,5 @@ File: BreakContinueInWhen_after.kt - f02685d6840a7b0982fdf9484afc366a NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/CompareToWithErrorType.antlrtree.txt b/grammar/testData/diagnostics/CompareToWithErrorType.antlrtree.txt index 1bf2bacf6..d8fca107f 100644 --- a/grammar/testData/diagnostics/CompareToWithErrorType.antlrtree.txt +++ b/grammar/testData/diagnostics/CompareToWithErrorType.antlrtree.txt @@ -1,5 +1,4 @@ -File: CompareToWithErrorType.kt - d8b38180b9026a56bb46ff251f352b3b - NL("\n") +File: CompareToWithErrorType.kt - 022cfdd71389b0a2ddaf15304fac4695 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/Constants.antlrtree.txt b/grammar/testData/diagnostics/Constants.antlrtree.txt index 844f6f864..d58e1a473 100644 --- a/grammar/testData/diagnostics/Constants.antlrtree.txt +++ b/grammar/testData/diagnostics/Constants.antlrtree.txt @@ -1,4 +1,4 @@ -File: Constants.kt - 7540ca1e540fd36fd49c278d5af99868 +File: Constants.kt - bda7bfc6ea91e5ba2ff81643a6c85e68 NL("\n") NL("\n") packageHeader @@ -2309,5 +2309,5 @@ File: Constants.kt - 7540ca1e540fd36fd49c278d5af99868 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/Constructors.antlrtree.txt b/grammar/testData/diagnostics/Constructors.antlrtree.txt index bed506db4..5ffadfd2a 100644 --- a/grammar/testData/diagnostics/Constructors.antlrtree.txt +++ b/grammar/testData/diagnostics/Constructors.antlrtree.txt @@ -1,4 +1,4 @@ -File: Constructors.kt - 727207974660a6894da72abe3420a1ad (WITH_ERRORS) +File: Constructors.kt - f788ad0a39e2a89d02a61f6c74962359 (WITH_ERRORS) packageHeader importList topLevelObject @@ -448,5 +448,5 @@ File: Constructors.kt - 727207974660a6894da72abe3420a1ad (WITH_ERRORS) NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/CovariantOverrideType.antlrtree.txt b/grammar/testData/diagnostics/CovariantOverrideType.antlrtree.txt index ea15ff02a..726e62c11 100644 --- a/grammar/testData/diagnostics/CovariantOverrideType.antlrtree.txt +++ b/grammar/testData/diagnostics/CovariantOverrideType.antlrtree.txt @@ -530,6 +530,4 @@ File: CovariantOverrideType.kt - 94e24508b08cd92765d50ac51c1ae935 RANGLE(">") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/DefaultValueForParameterInFunctionType.antlrtree.txt b/grammar/testData/diagnostics/DefaultValueForParameterInFunctionType.antlrtree.txt index 39df93a86..b0c6aec0f 100644 --- a/grammar/testData/diagnostics/DefaultValueForParameterInFunctionType.antlrtree.txt +++ b/grammar/testData/diagnostics/DefaultValueForParameterInFunctionType.antlrtree.txt @@ -1,4 +1,5 @@ -File: DefaultValueForParameterInFunctionType.kt - d6a09810359a4b2561296a85450ec1a4 (WITH_ERRORS) +File: DefaultValueForParameterInFunctionType.kt - bda33ae14be92f30c9a2a36525405322 (WITH_ERRORS) + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/DefaultValuesCheckWithoutBody.antlrtree.txt b/grammar/testData/diagnostics/DefaultValuesCheckWithoutBody.antlrtree.txt index 6481e7bef..d125ce045 100644 --- a/grammar/testData/diagnostics/DefaultValuesCheckWithoutBody.antlrtree.txt +++ b/grammar/testData/diagnostics/DefaultValuesCheckWithoutBody.antlrtree.txt @@ -1,4 +1,5 @@ -File: DefaultValuesCheckWithoutBody.kt - 0cc7f2d8e267fdabc28639fbe72aa3b4 +File: DefaultValuesCheckWithoutBody.kt - 0c44ee3a78a4ec651a067f09503a702b + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/DefaultValuesTypechecking.antlrtree.txt b/grammar/testData/diagnostics/DefaultValuesTypechecking.antlrtree.txt index 9e7377e0b..a8b264243 100644 --- a/grammar/testData/diagnostics/DefaultValuesTypechecking.antlrtree.txt +++ b/grammar/testData/diagnostics/DefaultValuesTypechecking.antlrtree.txt @@ -1,5 +1,4 @@ -File: DefaultValuesTypechecking.kt - 5bbb4d0e266ea0e64f0750f2cabab44c - NL("\n") +File: DefaultValuesTypechecking.kt - b4cea46ed48599c6ad967c36e15eb5b2 packageHeader importList topLevelObject @@ -220,6 +219,88 @@ File: DefaultValuesTypechecking.kt - 5bbb4d0e266ea0e64f0750f2cabab44c LCURL("{") NL("\n") classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + COLON(":") + constructorDelegationCall + THIS("this") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") classMemberDeclaration declaration functionDeclaration @@ -480,4 +561,635 @@ File: DefaultValuesTypechecking.kt - 5bbb4d0e266ea0e64f0750f2cabab44c Identifier("y") semis NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RCURL("}") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + semis + SEMICOLON(";") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RCURL("}") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("xx") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + semis + SEMICOLON(";") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RCURL("}") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("xx") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("boo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/DeferredTypes.antlrtree.txt b/grammar/testData/diagnostics/DeferredTypes.antlrtree.txt index 53edfdcef..d620df025 100644 --- a/grammar/testData/diagnostics/DeferredTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/DeferredTypes.antlrtree.txt @@ -52,6 +52,4 @@ File: DeferredTypes.kt - acbcab50024fe0974d8e971102b93cab RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/DeprecatedUnaryOperatorConventions.antlrtree.txt b/grammar/testData/diagnostics/DeprecatedUnaryOperatorConventions.antlrtree.txt index f7d1f6e9b..00e0a2e90 100644 --- a/grammar/testData/diagnostics/DeprecatedUnaryOperatorConventions.antlrtree.txt +++ b/grammar/testData/diagnostics/DeprecatedUnaryOperatorConventions.antlrtree.txt @@ -1,5 +1,4 @@ -File: DeprecatedUnaryOperatorConventions.kt - f38f1af0be103cc5681dee2372e3bb88 - NL("\n") +File: DeprecatedUnaryOperatorConventions.kt - 933d8dab5d362e83aa16b80aae9d8d93 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/DiamondProperty.antlrtree.txt b/grammar/testData/diagnostics/DiamondProperty.antlrtree.txt index bce5feb87..dd6320c84 100644 --- a/grammar/testData/diagnostics/DiamondProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/DiamondProperty.antlrtree.txt @@ -1,4 +1,5 @@ -File: DiamondProperty.kt - cdccd7dcd5f86ec91a130f403012ca4b +File: DiamondProperty.kt - 8b1a930c6c9ab0783099d2c2f91248b4 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/EnumEntryAsType.antlrtree.txt b/grammar/testData/diagnostics/EnumEntryAsType.antlrtree.txt index 6e075ad4c..fc89dde43 100644 --- a/grammar/testData/diagnostics/EnumEntryAsType.antlrtree.txt +++ b/grammar/testData/diagnostics/EnumEntryAsType.antlrtree.txt @@ -1,5 +1,4 @@ -File: EnumEntryAsType.kt - fa9be07c66a98c118fbb92ef470f19e4 - NL("\n") +File: EnumEntryAsType.kt - 28ff420512194d935c74950eb9cb04b6 NL("\n") NL("\n") packageHeader @@ -1372,6 +1371,4 @@ File: EnumEntryAsType.kt - fa9be07c66a98c118fbb92ef470f19e4 EXCL_NO_WS("!") excl EXCL_NO_WS("!") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/ExternalAndAbstract.antlrtree.txt b/grammar/testData/diagnostics/ExternalAndAbstract.antlrtree.txt index f5187d4dd..2d7ac81f5 100644 --- a/grammar/testData/diagnostics/ExternalAndAbstract.antlrtree.txt +++ b/grammar/testData/diagnostics/ExternalAndAbstract.antlrtree.txt @@ -1,4 +1,5 @@ -File: ExternalAndAbstract.kt - 368ca4c9c6eae8923c6deafda3cb92b7 +File: ExternalAndAbstract.kt - a8825ec1e5974e8def10814960039b2d + NL("\n") packageHeader importList topLevelObject @@ -80,6 +81,4 @@ File: ExternalAndAbstract.kt - 368ca4c9c6eae8923c6deafda3cb92b7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/ForRangeConventions.antlrtree.txt b/grammar/testData/diagnostics/ForRangeConventions.antlrtree.txt index 345e8bd04..6a67c9286 100644 --- a/grammar/testData/diagnostics/ForRangeConventions.antlrtree.txt +++ b/grammar/testData/diagnostics/ForRangeConventions.antlrtree.txt @@ -1508,6 +1508,4 @@ File: ForRangeConventions.kt - 5c4f48709f115effb9fb949ee212b9d3 SEMICOLON(";") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/FunctionCalleeExpressions.antlrtree.txt b/grammar/testData/diagnostics/FunctionCalleeExpressions.antlrtree.txt index c2cf123f8..edb9f64a0 100644 --- a/grammar/testData/diagnostics/FunctionCalleeExpressions.antlrtree.txt +++ b/grammar/testData/diagnostics/FunctionCalleeExpressions.antlrtree.txt @@ -1,4 +1,4 @@ -File: FunctionCalleeExpressions.kt - 1067d2cf0c9933c892a01665e843f6de (WITH_ERRORS) +File: FunctionCalleeExpressions.kt - 919f872f45ffc5fa848799fbda59438a (WITH_ERRORS) NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/FunctionParameterWithoutType.antlrtree.txt b/grammar/testData/diagnostics/FunctionParameterWithoutType.antlrtree.txt index d403e021c..8883af204 100644 --- a/grammar/testData/diagnostics/FunctionParameterWithoutType.antlrtree.txt +++ b/grammar/testData/diagnostics/FunctionParameterWithoutType.antlrtree.txt @@ -166,6 +166,4 @@ File: FunctionParameterWithoutType.kt - ee789bdb529ef71cec4c3ba6c991e3b7 (WITH_E statements RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/FunctionReturnTypes.antlrtree.txt b/grammar/testData/diagnostics/FunctionReturnTypes.antlrtree.txt index d105e6688..e7a43d51b 100644 --- a/grammar/testData/diagnostics/FunctionReturnTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/FunctionReturnTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: FunctionReturnTypes.kt - 24f042aef92c9186d64a81c4d52318a2 - NL("\n") +File: FunctionReturnTypes.kt - ef8a86ead961d128fac128d93e8a799b NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/GenericArgumentConsistency.b.antlrtree.txt b/grammar/testData/diagnostics/GenericArgumentConsistency.b.antlrtree.txt index 2853d411b..7055db814 100644 --- a/grammar/testData/diagnostics/GenericArgumentConsistency.b.antlrtree.txt +++ b/grammar/testData/diagnostics/GenericArgumentConsistency.b.antlrtree.txt @@ -1,4 +1,4 @@ -File: GenericArgumentConsistency.b.kt - 7f0881926a294083012703bdf53d4d5f +File: GenericArgumentConsistency.b.kt - f9fa3e90d75ca4717baeb01645f76073 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/GenericArgumentConsistency.c.antlrtree.txt b/grammar/testData/diagnostics/GenericArgumentConsistency.c.antlrtree.txt index 8ecc8ac49..e4bc3c46b 100644 --- a/grammar/testData/diagnostics/GenericArgumentConsistency.c.antlrtree.txt +++ b/grammar/testData/diagnostics/GenericArgumentConsistency.c.antlrtree.txt @@ -1,4 +1,4 @@ -File: GenericArgumentConsistency.c.kt - 44297a0ab66b4ea89185ab866e7d3a8d +File: GenericArgumentConsistency.c.kt - 95863948bb3f94d6a5c21d0d98951a29 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/GenericArgumentConsistency.d.antlrtree.txt b/grammar/testData/diagnostics/GenericArgumentConsistency.d.antlrtree.txt index a8ac50a47..c9a6f3ee7 100644 --- a/grammar/testData/diagnostics/GenericArgumentConsistency.d.antlrtree.txt +++ b/grammar/testData/diagnostics/GenericArgumentConsistency.d.antlrtree.txt @@ -1,4 +1,4 @@ -File: GenericArgumentConsistency.d.kt - 79791ef6e1e00c3b48ee9348037921f5 +File: GenericArgumentConsistency.d.kt - e702ed55743eab3546753d40f9b92b52 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/GenericArgumentConsistency.e.antlrtree.txt b/grammar/testData/diagnostics/GenericArgumentConsistency.e.antlrtree.txt index c6e7c2806..8c5708beb 100644 --- a/grammar/testData/diagnostics/GenericArgumentConsistency.e.antlrtree.txt +++ b/grammar/testData/diagnostics/GenericArgumentConsistency.e.antlrtree.txt @@ -1,4 +1,4 @@ -File: GenericArgumentConsistency.e.kt - 97de5de3dcc29d5c431538e9d7bce79b +File: GenericArgumentConsistency.e.kt - 17707d4db7a4af2859adea5ef5341db8 packageHeader PACKAGE("package") identifier @@ -143,4 +143,5 @@ File: GenericArgumentConsistency.e.kt - 97de5de3dcc29d5c431538e9d7bce79b RCURL("}") semis NL("\n") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/GenericArgumentConsistency.f.antlrtree.txt b/grammar/testData/diagnostics/GenericArgumentConsistency.f.antlrtree.txt new file mode 100644 index 000000000..bcec5d4f0 --- /dev/null +++ b/grammar/testData/diagnostics/GenericArgumentConsistency.f.antlrtree.txt @@ -0,0 +1,190 @@ +File: GenericArgumentConsistency.f.kt - 04c141c1079cc180c51c95221c75b1fe + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I0") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T1") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T2") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("C2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T3") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T4") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T3") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T4") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("TA") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T5") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T6") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C2") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T6") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T5") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I2") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I3") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C3") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I2") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I3") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I3") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I2") + RANGLE(">") + EOF("") diff --git a/grammar/testData/diagnostics/GenericFunctionIsLessSpecific.antlrtree.txt b/grammar/testData/diagnostics/GenericFunctionIsLessSpecific.antlrtree.txt index f68a98ad3..59b7fd4e8 100644 --- a/grammar/testData/diagnostics/GenericFunctionIsLessSpecific.antlrtree.txt +++ b/grammar/testData/diagnostics/GenericFunctionIsLessSpecific.antlrtree.txt @@ -1,4 +1,5 @@ -File: GenericFunctionIsLessSpecific.kt - 0e83518d026ff9db1cc81c2ae117aaa1 +File: GenericFunctionIsLessSpecific.kt - 1c7634072fcc4ac05b9492c218e7825c + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/IdentityComparisonWithPrimitives.antlrtree.txt b/grammar/testData/diagnostics/IdentityComparisonWithPrimitives.antlrtree.txt index 24cac73b0..4e0fe233a 100644 --- a/grammar/testData/diagnostics/IdentityComparisonWithPrimitives.antlrtree.txt +++ b/grammar/testData/diagnostics/IdentityComparisonWithPrimitives.antlrtree.txt @@ -6522,6 +6522,4 @@ File: IdentityComparisonWithPrimitives.kt - c557097502fea09d6de6ed59fd89aaa3 primaryExpression simpleIdentifier Identifier("c") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/IncDecOperatorsInExpectClass.antlrtree.txt b/grammar/testData/diagnostics/IncDecOperatorsInExpectClass.antlrtree.txt new file mode 100644 index 000000000..fa8eefd45 --- /dev/null +++ b/grammar/testData/diagnostics/IncDecOperatorsInExpectClass.antlrtree.txt @@ -0,0 +1,90 @@ +File: IncDecOperatorsInExpectClass.kt - 86ed0786f34169fa02cca24ae5e4970f + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + CLASS("class") + simpleIdentifier + Identifier("Counter") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("inc") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Counter") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("dec") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Counter") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Counter") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/InvokeAndRecursiveResolve.antlrtree.txt b/grammar/testData/diagnostics/InvokeAndRecursiveResolve.antlrtree.txt index cb396f741..6cadefd47 100644 --- a/grammar/testData/diagnostics/InvokeAndRecursiveResolve.antlrtree.txt +++ b/grammar/testData/diagnostics/InvokeAndRecursiveResolve.antlrtree.txt @@ -1,5 +1,4 @@ -File: InvokeAndRecursiveResolve.kt - d7f9cbbee87b5ae48e8a87449db3acd1 - NL("\n") +File: InvokeAndRecursiveResolve.kt - c7cb0b1bb974a08c63e0891cd6b03637 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/LValueAssignment.antlrtree.txt b/grammar/testData/diagnostics/LValueAssignment.antlrtree.txt index 95fd048e7..b4b98c41d 100644 --- a/grammar/testData/diagnostics/LValueAssignment.antlrtree.txt +++ b/grammar/testData/diagnostics/LValueAssignment.antlrtree.txt @@ -1,4 +1,4 @@ -File: LValueAssignment.kt - d4cd46f861c2db8f678e58f1ecfbcd76 (WITH_ERRORS) +File: LValueAssignment.kt - 8ecdf806019f2b18dcfb685364cf61dc (WITH_ERRORS) packageHeader PACKAGE("package") identifier @@ -510,7 +510,94 @@ File: LValueAssignment.kt - d4cd46f861c2db8f678e58f1ecfbcd76 (WITH_ERRORS) NL("\n") RCURL("}") NL("\n") - NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationRetention") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("SOURCE") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("EXPRESSION") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + semis + NL("\n") + NL("\n") topLevelObject declaration functionDeclaration @@ -633,6 +720,23 @@ File: LValueAssignment.kt - d4cd46f861c2db8f678e58f1ecfbcd76 (WITH_ERRORS) ASSIGNMENT("=") IntegerLiteral("3894") NL("\n") + NL("\n") + topLevelObject + declaration + topLevelObject + declaration + AT_PRE_WS(" @") + Identifier("Ann") + semis + NL("\n") + Identifier("l") + AT_POST_WS("@ ") + LPAREN("(") + Identifier("i") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("123") + NL("\n") RCURL("}") NL("\n") NL("\n") @@ -742,533 +846,156 @@ File: LValueAssignment.kt - d4cd46f861c2db8f678e58f1ecfbcd76 (WITH_ERRORS) functionValueParameters LPAREN("(") RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - assignment - assignableExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - assignmentAndOperator - ADD_ASSIGNMENT("+=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("23") - semis - NL("\n") - statement - assignment - assignableExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - label - simpleIdentifier - Identifier("l") - AT_POST_WS("@ ") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - RPAREN(")") - assignmentAndOperator - ADD_ASSIGNMENT("+=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("23") - semis - NL("\n") - NL("\n") - statement - assignment - assignableExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("getInt") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - assignmentAndOperator - ADD_ASSIGNMENT("+=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("343") - semis - NL("\n") - statement - assignment - assignableExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - label - simpleIdentifier - Identifier("f") - AT_POST_WS("@ ") - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("getInt") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - RPAREN(")") - assignmentAndOperator - ADD_ASSIGNMENT("+=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("343") - semis - NL("\n") - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - postfixUnarySuffix - postfixUnaryOperator - INCR("++") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - label - simpleIdentifier - Identifier("r") - AT_POST_WS("@ ") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") - RPAREN(")") - postfixUnarySuffix - postfixUnaryOperator - INCR("++") - semis - NL("\n") - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("getInt") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - postfixUnaryOperator - INCR("++") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - label - simpleIdentifier - Identifier("m") - AT_POST_WS("@ ") - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("getInt") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - RPAREN(")") - postfixUnarySuffix - postfixUnaryOperator - INCR("++") - semis - NL("\n") - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - thisExpression - THIS("this") - postfixUnarySuffix - postfixUnaryOperator - INCR("++") - semis - NL("\n") - NL("\n") - statement - declaration - propertyDeclaration - VAR("var") - variableDeclaration - simpleIdentifier - Identifier("s") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("String") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("r") - QUOTE_CLOSE(""") - semis - NL("\n") - statement - assignment - assignableExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("s") - assignmentAndOperator - ADD_ASSIGNMENT("+=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("ss") - QUOTE_CLOSE(""") - semis - NL("\n") - statement - assignment - assignableExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("s") - assignmentAndOperator - ADD_ASSIGNMENT("+=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - thisExpression - THIS("this") - semis - NL("\n") - statement - assignment - assignableExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("s") - assignmentAndOperator - ADD_ASSIGNMENT("+=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - parenthesizedExpression - LPAREN("(") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - unaryPrefix - label - simpleIdentifier - Identifier("a") - AT_POST_WS("@ ") - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("2") - RPAREN(")") - semis - NL("\n") - RCURL("}") + LCURL("{") + NL("\n") + IntegerLiteral("1") + ADD_ASSIGNMENT("+=") + IntegerLiteral("23") + NL("\n") + LPAREN("(") + Identifier("l") + AT_POST_WS("@ ") + IntegerLiteral("1") + RPAREN(")") + ADD_ASSIGNMENT("+=") + IntegerLiteral("23") + NL("\n") + NL("\n") + Identifier("getInt") + LPAREN("(") + RPAREN(")") + ADD_ASSIGNMENT("+=") + IntegerLiteral("343") + NL("\n") + LPAREN("(") + Identifier("f") + AT_POST_WS("@ ") + Identifier("getInt") + LPAREN("(") + RPAREN(")") + RPAREN(")") + ADD_ASSIGNMENT("+=") + IntegerLiteral("343") + NL("\n") + NL("\n") + IntegerLiteral("1") + INCR("++") + NL("\n") + LPAREN("(") + Identifier("r") + AT_POST_WS("@ ") + IntegerLiteral("1") + RPAREN(")") + DECR("--") + NL("\n") + NL("\n") + Identifier("getInt") + LPAREN("(") + RPAREN(")") + INCR("++") + NL("\n") + LPAREN("(") + Identifier("m") + AT_POST_WS("@ ") + Identifier("getInt") + LPAREN("(") + RPAREN(")") + RPAREN(")") + DECR("--") + NL("\n") + NL("\n") + INCR("++") + IntegerLiteral("2") + NL("\n") + DECR("--") + LPAREN("(") + Identifier("r") + AT_POST_WS("@ ") + IntegerLiteral("2") + RPAREN(")") + NL("\n") + NL("\n") + THIS("this") + INCR("++") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("r") + QUOTE_CLOSE(""") + semis + NL("\n") + Identifier("s") + ADD_ASSIGNMENT("+=") + QUOTE_OPEN(""") + LineStrText("ss") + QUOTE_CLOSE(""") + NL("\n") + Identifier("s") + ADD_ASSIGNMENT("+=") + THIS("this") + NL("\n") + Identifier("s") + ADD_ASSIGNMENT("+=") + LPAREN("(") + Identifier("a") + AT_POST_WS("@ ") + IntegerLiteral("2") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + topLevelObject + declaration + AT_PRE_WS(" @") + Identifier("Ann") semis NL("\n") - NL("\n") + Identifier("l") + AT_POST_WS("@ ") + LPAREN("(") + IntegerLiteral("1") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("123") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") topLevelObject declaration functionDeclaration @@ -1577,6 +1304,15 @@ File: LValueAssignment.kt - d4cd46f861c2db8f678e58f1ecfbcd76 (WITH_ERRORS) multiplicativeExpression asExpression prefixUnaryExpression + unaryPrefix + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") unaryPrefix label simpleIdentifier @@ -1589,7 +1325,7 @@ File: LValueAssignment.kt - d4cd46f861c2db8f678e58f1ecfbcd76 (WITH_ERRORS) RPAREN(")") postfixUnarySuffix postfixUnaryOperator - INCR("++") + DECR("--") semis NL("\n") statement @@ -1635,6 +1371,130 @@ File: LValueAssignment.kt - d4cd46f861c2db8f678e58f1ecfbcd76 (WITH_ERRORS) INCR("++") semis NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + DECR("--") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + INCR("++") + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unaryPrefix + label + simpleIdentifier + Identifier("l") + AT_POST_WS("@ ") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + DECR("--") + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + semis + NL("\n") RCURL("}") semis NL("\n") @@ -1990,6 +1850,167 @@ File: LValueAssignment.kt - d4cd46f861c2db8f678e58f1ecfbcd76 (WITH_ERRORS) primaryExpression literalConstant IntegerLiteral("43") + semis + NL("\n") + statement + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + NL("\n") + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + assignableSuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("7") + RSQUARE("]") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("7") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + unaryPrefix + label + simpleIdentifier + Identifier("l") + AT_POST_WS("@ ") + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + RPAREN(")") + assignableSuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("8") + RSQUARE("]") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("8") semis NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/LValueAssignment.diff b/grammar/testData/diagnostics/LValueAssignment.diff new file mode 100644 index 000000000..716e07b5b --- /dev/null +++ b/grammar/testData/diagnostics/LValueAssignment.diff @@ -0,0 +1 @@ +Needs labels on arbitrary expressions to parse correctly \ No newline at end of file diff --git a/grammar/testData/diagnostics/MultipleBounds.antlrtree.txt b/grammar/testData/diagnostics/MultipleBounds.antlrtree.txt index 159753ae6..e33daaf99 100644 --- a/grammar/testData/diagnostics/MultipleBounds.antlrtree.txt +++ b/grammar/testData/diagnostics/MultipleBounds.antlrtree.txt @@ -1300,6 +1300,4 @@ File: MultipleBounds.kt - 280448b73eff2c81165b46a718f80db4 primaryExpression literalConstant IntegerLiteral("0") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/NamedFunctionTypeParameterInSupertype.antlrtree.txt b/grammar/testData/diagnostics/NamedFunctionTypeParameterInSupertype.antlrtree.txt index 5e997b198..770c8b016 100644 --- a/grammar/testData/diagnostics/NamedFunctionTypeParameterInSupertype.antlrtree.txt +++ b/grammar/testData/diagnostics/NamedFunctionTypeParameterInSupertype.antlrtree.txt @@ -150,6 +150,4 @@ File: NamedFunctionTypeParameterInSupertype.kt - be4ec0c513c4d410e24cdaf71e31f9a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/Nullability.antlrtree.txt b/grammar/testData/diagnostics/Nullability.antlrtree.txt index 2da2a099f..93771fe38 100644 --- a/grammar/testData/diagnostics/Nullability.antlrtree.txt +++ b/grammar/testData/diagnostics/Nullability.antlrtree.txt @@ -1,5 +1,4 @@ -File: Nullability.kt - f26760dc8d3cd11795f84ab4b93c33fb - NL("\n") +File: Nullability.kt - 8e8fd46dca6cf845f3a3a76ad10a0238 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/NumberPrefixAndSuffix.antlrtree.txt b/grammar/testData/diagnostics/NumberPrefixAndSuffix.antlrtree.txt index 30c971f40..5a3c43faa 100644 --- a/grammar/testData/diagnostics/NumberPrefixAndSuffix.antlrtree.txt +++ b/grammar/testData/diagnostics/NumberPrefixAndSuffix.antlrtree.txt @@ -1426,6 +1426,4 @@ File: NumberPrefixAndSuffix.kt - 209ffef993dda9b8d7ae53fa451c30f4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/Operators.antlrtree.txt b/grammar/testData/diagnostics/Operators.antlrtree.txt index bbbc6f666..00783429b 100644 --- a/grammar/testData/diagnostics/Operators.antlrtree.txt +++ b/grammar/testData/diagnostics/Operators.antlrtree.txt @@ -1,4 +1,4 @@ -File: Operators.kt - 9e94d439d99057e94bd3eccd98371ea5 +File: Operators.kt - 569cd625293e85b6629e705dd81bef50 NL("\n") NL("\n") packageHeader @@ -2734,5 +2734,490 @@ File: Operators.kt - 9e94d439d99057e94bd3eccd98371ea5 NL("\n") RCURL("}") semis - EOF("") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + simpleIdentifier + Identifier("iterator") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyIntIterator") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + DOT(".") + simpleIdentifier + Identifier("iterator") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyDoubleIterator") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("iterator") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyBooleanIterator") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("MyIntIterator") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("hasNext") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("next") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("MyDoubleIterator") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("hasNext") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("next") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("MyBooleanIterator") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("hasNext") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("next") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + forStatement + FOR("for") + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("element") + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + loopStatement + forStatement + FOR("for") + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("element") + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + loopStatement + forStatement + FOR("for") + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("element") + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/OperatorsWithWrongNames.antlrtree.txt b/grammar/testData/diagnostics/OperatorsWithWrongNames.antlrtree.txt index c46603896..53f947dff 100644 --- a/grammar/testData/diagnostics/OperatorsWithWrongNames.antlrtree.txt +++ b/grammar/testData/diagnostics/OperatorsWithWrongNames.antlrtree.txt @@ -1,4 +1,5 @@ -File: OperatorsWithWrongNames.kt - 1463a2724b0545651a2732b8e1727686 +File: OperatorsWithWrongNames.kt - 4c861a0d970d0493b0530d066df7b538 + NL("\n") packageHeader importList topLevelObject @@ -337,6 +338,4 @@ File: OperatorsWithWrongNames.kt - 1463a2724b0545651a2732b8e1727686 primaryExpression literalConstant IntegerLiteral("1") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/OverridenSetterVisibility.antlrtree.txt b/grammar/testData/diagnostics/OverridenSetterVisibility.antlrtree.txt index 28baad6ca..f1a069350 100644 --- a/grammar/testData/diagnostics/OverridenSetterVisibility.antlrtree.txt +++ b/grammar/testData/diagnostics/OverridenSetterVisibility.antlrtree.txt @@ -1,4 +1,5 @@ -File: OverridenSetterVisibility.kt - 12441df8a65d2fe172720cd2d27bc894 +File: OverridenSetterVisibility.kt - 2b884e516380a5727767ca3f905c53d7 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/PackageInExpressionPosition.antlrtree.txt b/grammar/testData/diagnostics/PackageInExpressionPosition.antlrtree.txt index 516225dc0..372ca7171 100644 --- a/grammar/testData/diagnostics/PackageInExpressionPosition.antlrtree.txt +++ b/grammar/testData/diagnostics/PackageInExpressionPosition.antlrtree.txt @@ -1,4 +1,5 @@ -File: PackageInExpressionPosition.kt - bf170ee97f0f30a5c75f81259012da13 +File: PackageInExpressionPosition.kt - 5e9e4b5ff24a245a5eeb03e058291c83 + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/PackageInTypePosition.b.antlrtree.txt b/grammar/testData/diagnostics/PackageInTypePosition.b.antlrtree.txt index 263465664..f21bef8ce 100644 --- a/grammar/testData/diagnostics/PackageInTypePosition.b.antlrtree.txt +++ b/grammar/testData/diagnostics/PackageInTypePosition.b.antlrtree.txt @@ -62,6 +62,4 @@ File: PackageInTypePosition.b.kt - 13098159a5a17fae26b8db848d86c9c0 EXCL_NO_WS("!") excl EXCL_NO_WS("!") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/PackageQualified.a.antlrtree.txt b/grammar/testData/diagnostics/PackageQualified.a.antlrtree.txt index 5fde58810..c20862751 100644 --- a/grammar/testData/diagnostics/PackageQualified.a.antlrtree.txt +++ b/grammar/testData/diagnostics/PackageQualified.a.antlrtree.txt @@ -174,6 +174,4 @@ File: PackageQualified.a.kt - 155295d14891ef6a3f7560a99c742295 NullLiteral("null") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/PackageQualified.c.antlrtree.txt b/grammar/testData/diagnostics/PackageQualified.c.antlrtree.txt index a044f0f4b..d8bdd8d7d 100644 --- a/grammar/testData/diagnostics/PackageQualified.c.antlrtree.txt +++ b/grammar/testData/diagnostics/PackageQualified.c.antlrtree.txt @@ -122,6 +122,4 @@ File: PackageQualified.c.kt - 9659d49d583de1032dd7fed9f2601726 Identifier("a") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/PrimaryConstructors.antlrtree.txt b/grammar/testData/diagnostics/PrimaryConstructors.antlrtree.txt index f90a1e6ea..8a4ef82d0 100644 --- a/grammar/testData/diagnostics/PrimaryConstructors.antlrtree.txt +++ b/grammar/testData/diagnostics/PrimaryConstructors.antlrtree.txt @@ -413,6 +413,4 @@ File: PrimaryConstructors.kt - 6470846d984fe0ba36ae638d78831d66 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/PrivateSetterForOverridden.antlrtree.txt b/grammar/testData/diagnostics/PrivateSetterForOverridden.antlrtree.txt index 19af0a852..b2d692cf7 100644 --- a/grammar/testData/diagnostics/PrivateSetterForOverridden.antlrtree.txt +++ b/grammar/testData/diagnostics/PrivateSetterForOverridden.antlrtree.txt @@ -1,4 +1,5 @@ -File: PrivateSetterForOverridden.kt - 2d21095a9b1c1a0c921d74ef3c1d3565 +File: PrivateSetterForOverridden.kt - 34a84caef1d4537ec381b745cf8f87e1 + NL("\n") NL("\n") NL("\n") packageHeader @@ -925,5 +926,5 @@ File: PrivateSetterForOverridden.kt - 2d21095a9b1c1a0c921d74ef3c1d3565 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/ProjectionsInSupertypes.antlrtree.txt b/grammar/testData/diagnostics/ProjectionsInSupertypes.antlrtree.txt index 6fa0c4acf..1a2245fcb 100644 --- a/grammar/testData/diagnostics/ProjectionsInSupertypes.antlrtree.txt +++ b/grammar/testData/diagnostics/ProjectionsInSupertypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: ProjectionsInSupertypes.kt - b2fe49f6560c3f61328ec7ffcffef3f6 (WITH_ERRORS) +File: ProjectionsInSupertypes.kt - 76ab4ed8a3b89232c7304883f212469b (WITH_ERRORS) + NL("\n") packageHeader importList topLevelObject @@ -154,6 +155,4 @@ File: ProjectionsInSupertypes.kt - b2fe49f6560c3f61328ec7ffcffef3f6 (WITH_ERRORS LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/Properties.antlrtree.txt b/grammar/testData/diagnostics/Properties.antlrtree.txt index 9255b9909..70c37a2ae 100644 --- a/grammar/testData/diagnostics/Properties.antlrtree.txt +++ b/grammar/testData/diagnostics/Properties.antlrtree.txt @@ -1,4 +1,4 @@ -File: Properties.kt - e44f1b84b4d952e7277ec30cc5e5202d +File: Properties.kt - 553f01a8593677992ae3b39c41fdd57c packageHeader importList topLevelObject @@ -539,5 +539,5 @@ File: Properties.kt - e44f1b84b4d952e7277ec30cc5e5202d NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/PropertyInitializers.antlrtree.txt b/grammar/testData/diagnostics/PropertyInitializers.antlrtree.txt index 296057a37..1bddf4414 100644 --- a/grammar/testData/diagnostics/PropertyInitializers.antlrtree.txt +++ b/grammar/testData/diagnostics/PropertyInitializers.antlrtree.txt @@ -159,6 +159,4 @@ File: PropertyInitializers.kt - 824ed65ca447d967a3b0c8e011a963ba semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/QualifiedExpressions.antlrtree.txt b/grammar/testData/diagnostics/QualifiedExpressions.antlrtree.txt index 6bfa8d9f3..787f08fca 100644 --- a/grammar/testData/diagnostics/QualifiedExpressions.antlrtree.txt +++ b/grammar/testData/diagnostics/QualifiedExpressions.antlrtree.txt @@ -1,5 +1,4 @@ -File: QualifiedExpressions.kt - 64fb193b183a2b25c781ae0de9ca5d5b - NL("\n") +File: QualifiedExpressions.kt - 8dd51273f1992c0d5df303444943ad81 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/RecursiveResolve.antlrtree.txt b/grammar/testData/diagnostics/RecursiveResolve.antlrtree.txt index a945273ac..3b5e82229 100644 --- a/grammar/testData/diagnostics/RecursiveResolve.antlrtree.txt +++ b/grammar/testData/diagnostics/RecursiveResolve.antlrtree.txt @@ -1,4 +1,4 @@ -File: RecursiveResolve.kt - 1f843bdffc6c94e4a81844db5b273572 +File: RecursiveResolve.kt - 1667836b36bfcbacdc69206f990a81f7 packageHeader importList topLevelObject @@ -2557,5 +2557,5 @@ File: RecursiveResolve.kt - 1f843bdffc6c94e4a81844db5b273572 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/RecursiveTypeParameterEqualityCheck.antlrtree.txt b/grammar/testData/diagnostics/RecursiveTypeParameterEqualityCheck.antlrtree.txt new file mode 100644 index 000000000..75fe2a5e0 --- /dev/null +++ b/grammar/testData/diagnostics/RecursiveTypeParameterEqualityCheck.antlrtree.txt @@ -0,0 +1,227 @@ +File: RecursiveTypeParameterEqualityCheck.kt - c4acfa06b57ea69a8cf1d5d834d61fdf + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Bar1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar1") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Bar2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar2") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar3") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar3") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar1") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar3") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b1") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b2") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b1") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b3") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/ReserveYieldNoMore.1.antlrtree.txt b/grammar/testData/diagnostics/ReserveYieldNoMore.1.antlrtree.txt new file mode 100644 index 000000000..a4b49a239 --- /dev/null +++ b/grammar/testData/diagnostics/ReserveYieldNoMore.1.antlrtree.txt @@ -0,0 +1,594 @@ +File: ReserveYieldNoMore.1.kt - c01f279b43b782c1a9e9d2cef3e91211 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("p1") + DOT(".") + simpleIdentifier + Identifier("yield") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("p1") + DOT(".") + simpleIdentifier + Identifier("yield") + DOT(".") + simpleIdentifier + Identifier("yield") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("p1") + DOT(".") + simpleIdentifier + Identifier("yield") + DOT(".") + simpleIdentifier + Identifier("foo") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("yield") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("yield") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("yield") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("yield") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrRef("$yield") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringExpression + LineStrExprStart("${") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("yield") + RCURL("}") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("yield") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("yield") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("yield") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("yield") + NL("\n") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("yield") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("yield") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("yield") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("yield") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("yield") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@yield") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@yield") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("yield") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("yield") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/ReserveYieldNoMore.2.antlrtree.txt b/grammar/testData/diagnostics/ReserveYieldNoMore.2.antlrtree.txt new file mode 100644 index 000000000..f77af1c3c --- /dev/null +++ b/grammar/testData/diagnostics/ReserveYieldNoMore.2.antlrtree.txt @@ -0,0 +1,593 @@ +File: ReserveYieldNoMore.2.kt - ad14a78f82f4634aab3157d6064d82a1 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("p2") + DOT(".") + simpleIdentifier + Identifier("yield") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("p2") + DOT(".") + simpleIdentifier + Identifier("yield") + DOT(".") + simpleIdentifier + Identifier("yield") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("p2") + DOT(".") + simpleIdentifier + Identifier("yield") + DOT(".") + simpleIdentifier + Identifier("foo") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("yield") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("yield") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("yield") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("yield") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrRef("$`yield`") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringExpression + LineStrExprStart("${") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("`yield`") + RCURL("}") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("`yield`") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("`yield`") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("`yield`") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("`yield`") + NL("\n") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("`yield`") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("`yield`") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("`yield`") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("`yield`") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("`yield`") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@`yield`") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@`yield`") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("`yield`") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("yield") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/ReserveYieldNoMore2.1.antlrtree.txt b/grammar/testData/diagnostics/ReserveYieldNoMore2.1.antlrtree.txt new file mode 100644 index 000000000..a27dd8df5 --- /dev/null +++ b/grammar/testData/diagnostics/ReserveYieldNoMore2.1.antlrtree.txt @@ -0,0 +1,459 @@ +File: ReserveYieldNoMore2.1.kt - 255cbbbbe84a040390f78be08acbe988 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("yield") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + label + simpleIdentifier + Identifier("yield") + AT_POST_WS("@ ") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + label + simpleIdentifier + Identifier("`yield`") + AT_POST_WS("@ ") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p") + semis + NL("\n") + NL("\n") + statement + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("yield") + valueArguments + LPAREN("(") + RPAREN(")") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("`yield`") + valueArguments + LPAREN("(") + RPAREN(")") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p") + semis + NL("\n") + NL("\n") + statement + loopStatement + forStatement + FOR("for") + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("yield") + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("yield") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + multiVariableDeclaration + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("yield") + RPAREN(")") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + RPAREN(")") + NL("\n") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("listOf") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("component1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/ReserveYieldNoMore2.2.antlrtree.txt b/grammar/testData/diagnostics/ReserveYieldNoMore2.2.antlrtree.txt new file mode 100644 index 000000000..93669ef50 --- /dev/null +++ b/grammar/testData/diagnostics/ReserveYieldNoMore2.2.antlrtree.txt @@ -0,0 +1,120 @@ +File: ReserveYieldNoMore2.2.kt - 5e6f1872d63b6e2c2e7661074cde963e + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("p3") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("yield") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("yield") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("yield") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("yield") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("yield") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/ReserveYieldNoMore2.3.antlrtree.txt b/grammar/testData/diagnostics/ReserveYieldNoMore2.3.antlrtree.txt new file mode 100644 index 000000000..7ce696384 --- /dev/null +++ b/grammar/testData/diagnostics/ReserveYieldNoMore2.3.antlrtree.txt @@ -0,0 +1,86 @@ +File: ReserveYieldNoMore2.3.kt - 7ba3eff89a3fe50820932f61dc2707c9 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("p4") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("yield") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("yield") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + simpleIdentifier + Identifier("f1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("yield") + RANGLE(">") + simpleIdentifier + Identifier("f2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/ReserveYieldNoMore2.4.antlrtree.txt b/grammar/testData/diagnostics/ReserveYieldNoMore2.4.antlrtree.txt new file mode 100644 index 000000000..6d463cb27 --- /dev/null +++ b/grammar/testData/diagnostics/ReserveYieldNoMore2.4.antlrtree.txt @@ -0,0 +1,117 @@ +File: ReserveYieldNoMore2.4.kt - d9a241a56c7c68488b3731b892fd78ec + packageHeader + importList + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("X") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("yield") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("yield") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("X") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("yield") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("yield") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("toInt") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/ResolveOfJavaGenerics.antlrtree.txt b/grammar/testData/diagnostics/ResolveOfJavaGenerics.antlrtree.txt index 0780cabd9..43c5e831f 100644 --- a/grammar/testData/diagnostics/ResolveOfJavaGenerics.antlrtree.txt +++ b/grammar/testData/diagnostics/ResolveOfJavaGenerics.antlrtree.txt @@ -1,4 +1,6 @@ -File: ResolveOfJavaGenerics.kt - c4deb045f980117f1f7791f9ee6019f9 +File: ResolveOfJavaGenerics.kt - d45cd04897136e3d608dc394461ddff2 + NL("\n") + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/SafeCallInvoke.antlrtree.txt b/grammar/testData/diagnostics/SafeCallInvoke.antlrtree.txt index 8dcdc1c26..c134d2ee6 100644 --- a/grammar/testData/diagnostics/SafeCallInvoke.antlrtree.txt +++ b/grammar/testData/diagnostics/SafeCallInvoke.antlrtree.txt @@ -1,4 +1,4 @@ -File: SafeCallInvoke.kt - f249a77b17ac3bd8826d134e36ca32aa +File: SafeCallInvoke.kt - ed8378e5c8ac361913027abe1e1c5532 packageHeader importList topLevelObject @@ -464,5 +464,5 @@ File: SafeCallInvoke.kt - f249a77b17ac3bd8826d134e36ca32aa NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/SafeCallNonNullReceiver.antlrtree.txt b/grammar/testData/diagnostics/SafeCallNonNullReceiver.antlrtree.txt index 07d0cb838..e5a14f3c5 100644 --- a/grammar/testData/diagnostics/SafeCallNonNullReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/SafeCallNonNullReceiver.antlrtree.txt @@ -1,4 +1,6 @@ -File: SafeCallNonNullReceiver.kt - bcc58edf945b1d0e387ecfeee4d6fcac +File: SafeCallNonNullReceiver.kt - 07ee7458295892d93eaeb988c67ebb76 + NL("\n") + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/SafeCallNonNullReceiver2.antlrtree.txt b/grammar/testData/diagnostics/SafeCallNonNullReceiver2.antlrtree.txt new file mode 100644 index 000000000..ffa385d3c --- /dev/null +++ b/grammar/testData/diagnostics/SafeCallNonNullReceiver2.antlrtree.txt @@ -0,0 +1,128 @@ +File: SafeCallNonNullReceiver2.kt - 4308e69886a4e73b59890544cf0624d4 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("ff") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("plus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/SafeCallNonNullReceiverReturnNull.antlrtree.txt b/grammar/testData/diagnostics/SafeCallNonNullReceiverReturnNull.antlrtree.txt index 923a64350..5c18e09ae 100644 --- a/grammar/testData/diagnostics/SafeCallNonNullReceiverReturnNull.antlrtree.txt +++ b/grammar/testData/diagnostics/SafeCallNonNullReceiverReturnNull.antlrtree.txt @@ -1,5 +1,4 @@ -File: SafeCallNonNullReceiverReturnNull.kt - 982d9ead6be0cf01be59073ccbe53829 - NL("\n") +File: SafeCallNonNullReceiverReturnNull.kt - b0e9661258d17f290eebd2e7c9889064 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/SafeCallOnFakePackage.anotherTest.antlrtree.txt b/grammar/testData/diagnostics/SafeCallOnFakePackage.anotherTest.antlrtree.txt index a73a9c61e..2643e3c9a 100644 --- a/grammar/testData/diagnostics/SafeCallOnFakePackage.anotherTest.antlrtree.txt +++ b/grammar/testData/diagnostics/SafeCallOnFakePackage.anotherTest.antlrtree.txt @@ -47,6 +47,4 @@ File: SafeCallOnFakePackage.anotherTest.kt - dab2393de29e313a8c3ae330c68f84c4 QUOTE_CLOSE(""") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/SafeCallOnSuperReceiver.antlrtree.txt b/grammar/testData/diagnostics/SafeCallOnSuperReceiver.antlrtree.txt index a9acd1722..7c49a7301 100644 --- a/grammar/testData/diagnostics/SafeCallOnSuperReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/SafeCallOnSuperReceiver.antlrtree.txt @@ -1,4 +1,5 @@ -File: SafeCallOnSuperReceiver.kt - 00947d75bc758a7ae7b56b33bcae1b2c +File: SafeCallOnSuperReceiver.kt - 02fac3cd2bbe32ec2ce1ce2f845deb5c + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/SafeCallUnknownType.antlrtree.txt b/grammar/testData/diagnostics/SafeCallUnknownType.antlrtree.txt index a56c488d0..66a2b3d61 100644 --- a/grammar/testData/diagnostics/SafeCallUnknownType.antlrtree.txt +++ b/grammar/testData/diagnostics/SafeCallUnknownType.antlrtree.txt @@ -1,5 +1,4 @@ -File: SafeCallUnknownType.kt - ffe882fcbe024de2afae823beaf41484 - NL("\n") +File: SafeCallUnknownType.kt - 8e964c69940ef31d6f1dedd2fa1a076e packageHeader importList importHeader @@ -121,5 +120,5 @@ File: SafeCallUnknownType.kt - ffe882fcbe024de2afae823beaf41484 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/SetterVisibility.antlrtree.txt b/grammar/testData/diagnostics/SetterVisibility.antlrtree.txt index 404ae014e..073982ebf 100644 --- a/grammar/testData/diagnostics/SetterVisibility.antlrtree.txt +++ b/grammar/testData/diagnostics/SetterVisibility.antlrtree.txt @@ -1,4 +1,5 @@ -File: SetterVisibility.kt - f090d0a9fec513f8d4c794ecdbd72168 +File: SetterVisibility.kt - fef067236243ab3de35647a181357c19 + NL("\n") packageHeader importList topLevelObject @@ -295,6 +296,4 @@ File: SetterVisibility.kt - f090d0a9fec513f8d4c794ecdbd72168 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/StarsInFunctionCalls.antlrtree.txt b/grammar/testData/diagnostics/StarsInFunctionCalls.antlrtree.txt index 7002fde13..39a19bbb1 100644 --- a/grammar/testData/diagnostics/StarsInFunctionCalls.antlrtree.txt +++ b/grammar/testData/diagnostics/StarsInFunctionCalls.antlrtree.txt @@ -1,6 +1,4 @@ -File: StarsInFunctionCalls.kt - e990b699a67b9f8dd0eb9d22cae1c8fc - NL("\n") - NL("\n") +File: StarsInFunctionCalls.kt - 59e7a1c655e485bb9429cacf81b98c5d packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/StringTemplates.antlrtree.txt b/grammar/testData/diagnostics/StringTemplates.antlrtree.txt index 8ae37b3eb..3a89fff72 100644 --- a/grammar/testData/diagnostics/StringTemplates.antlrtree.txt +++ b/grammar/testData/diagnostics/StringTemplates.antlrtree.txt @@ -1,4 +1,4 @@ -File: StringTemplates.kt - c75708d82f79cf9910e56ca98b32da4c (WITH_ERRORS) +File: StringTemplates.kt - f256d93bb673431b85ca5564f0101234 (WITH_ERRORS) packageHeader importList topLevelObject @@ -871,5 +871,5 @@ File: StringTemplates.kt - c75708d82f79cf9910e56ca98b32da4c (WITH_ERRORS) NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/SupertypeListChecks.antlrtree.txt b/grammar/testData/diagnostics/SupertypeListChecks.antlrtree.txt index 8ed0d0a4c..268a6a96b 100644 --- a/grammar/testData/diagnostics/SupertypeListChecks.antlrtree.txt +++ b/grammar/testData/diagnostics/SupertypeListChecks.antlrtree.txt @@ -408,6 +408,4 @@ File: SupertypeListChecks.kt - d5966735b76e2a28f63c57395efad258 LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/TraitOverrideObjectMethods.antlrtree.txt b/grammar/testData/diagnostics/TraitOverrideObjectMethods.antlrtree.txt index 961fd2ad6..4b8f3c81c 100644 --- a/grammar/testData/diagnostics/TraitOverrideObjectMethods.antlrtree.txt +++ b/grammar/testData/diagnostics/TraitOverrideObjectMethods.antlrtree.txt @@ -1,4 +1,5 @@ -File: TraitOverrideObjectMethods.kt - 7df1f1e9c5487089dd682e121ee640df +File: TraitOverrideObjectMethods.kt - 4277db39bb34e16c5035fdcd9a39631d + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/TraitWithConstructor.antlrtree.txt b/grammar/testData/diagnostics/TraitWithConstructor.antlrtree.txt index e3064f413..c99dcbdf1 100644 --- a/grammar/testData/diagnostics/TraitWithConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/TraitWithConstructor.antlrtree.txt @@ -1,4 +1,4 @@ -File: TraitWithConstructor.kt - aed8b25c236f8f50f8baf190f800376e (WITH_ERRORS) +File: TraitWithConstructor.kt - c51148a44977a13d35953769ecdd1327 (WITH_ERRORS) NL("\n") NL("\n") packageHeader @@ -216,5 +216,5 @@ File: TraitWithConstructor.kt - aed8b25c236f8f50f8baf190f800376e (WITH_ERRORS) LCURL("{") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/TypeInference.antlrtree.txt b/grammar/testData/diagnostics/TypeInference.antlrtree.txt index 72049a2f4..49eb7afbe 100644 --- a/grammar/testData/diagnostics/TypeInference.antlrtree.txt +++ b/grammar/testData/diagnostics/TypeInference.antlrtree.txt @@ -1,4 +1,4 @@ -File: TypeInference.kt - 8aeec2b90ab366975edb924a359a90a3 +File: TypeInference.kt - 6a7460c91daaee5d18fa2597a125d33d NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/TypeMismatchOnOverrideWithSyntaxErrors.antlrtree.txt b/grammar/testData/diagnostics/TypeMismatchOnOverrideWithSyntaxErrors.antlrtree.txt index 035c17cb1..7eb1fe6c7 100644 --- a/grammar/testData/diagnostics/TypeMismatchOnOverrideWithSyntaxErrors.antlrtree.txt +++ b/grammar/testData/diagnostics/TypeMismatchOnOverrideWithSyntaxErrors.antlrtree.txt @@ -170,6 +170,4 @@ File: TypeMismatchOnOverrideWithSyntaxErrors.kt - 5562e52794b9edc95c27f33c8e2b9d multiplicativeExpression asExpression prefixUnaryExpression - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/Underscore.antlrtree.txt b/grammar/testData/diagnostics/Underscore.antlrtree.txt index 1c5046c8f..eb2726607 100644 --- a/grammar/testData/diagnostics/Underscore.antlrtree.txt +++ b/grammar/testData/diagnostics/Underscore.antlrtree.txt @@ -1,4 +1,4 @@ -File: Underscore.kt - 754551338b246af3b5d1e8a190209784 +File: Underscore.kt - 4a42f934f6dd10f4c7fa32fe5cc4ea32 NL("\n") NL("\n") packageHeader @@ -1240,6 +1240,162 @@ File: Underscore.kt - 754551338b246af3b5d1e8a190209784 IntegerLiteral("1") RCURL("}") NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + quest + QUEST_NO_WS("?") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("_") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("`____`") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Nested") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("method") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("____") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Nested") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("method") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/UnderscoreUsageInAnnotation.antlrtree.txt b/grammar/testData/diagnostics/UnderscoreUsageInAnnotation.antlrtree.txt index ffb32d7df..07c96a6a0 100644 --- a/grammar/testData/diagnostics/UnderscoreUsageInAnnotation.antlrtree.txt +++ b/grammar/testData/diagnostics/UnderscoreUsageInAnnotation.antlrtree.txt @@ -1,4 +1,5 @@ -File: UnderscoreUsageInAnnotation.kt - 1a48d8ad0ab37e8f1cbc1415e9322496 +File: UnderscoreUsageInAnnotation.kt - 3a3898ef3dabef42e9ec11aa294dd5f8 + NL("\n") packageHeader PACKAGE("package") identifier @@ -115,6 +116,4 @@ File: UnderscoreUsageInAnnotation.kt - 1a48d8ad0ab37e8f1cbc1415e9322496 CLASS("class") simpleIdentifier Identifier("TestAnn2") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/UnderscoreUsageInCall.antlrtree.txt b/grammar/testData/diagnostics/UnderscoreUsageInCall.antlrtree.txt index 7a6365c61..b4aaaee95 100644 --- a/grammar/testData/diagnostics/UnderscoreUsageInCall.antlrtree.txt +++ b/grammar/testData/diagnostics/UnderscoreUsageInCall.antlrtree.txt @@ -1,4 +1,5 @@ -File: UnderscoreUsageInCall.kt - 26d10e404bad41a2eb3b0ee9e5be6902 +File: UnderscoreUsageInCall.kt - 08f52f827cf79770b392ba7033fda825 + NL("\n") NL("\n") NL("\n") packageHeader @@ -736,6 +737,4 @@ File: UnderscoreUsageInCall.kt - 26d10e404bad41a2eb3b0ee9e5be6902 simpleIdentifier Identifier("toString") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/UnderscoreUsageInCallableRefTypeLHS.antlrtree.txt b/grammar/testData/diagnostics/UnderscoreUsageInCallableRefTypeLHS.antlrtree.txt index 697353a78..55fdcb651 100644 --- a/grammar/testData/diagnostics/UnderscoreUsageInCallableRefTypeLHS.antlrtree.txt +++ b/grammar/testData/diagnostics/UnderscoreUsageInCallableRefTypeLHS.antlrtree.txt @@ -1,4 +1,5 @@ -File: UnderscoreUsageInCallableRefTypeLHS.kt - fb3dc844f9f04a5c0484712ae3d29ee7 +File: UnderscoreUsageInCallableRefTypeLHS.kt - f27877cc653fec66dc3bbf85a853766e + NL("\n") packageHeader importList topLevelObject @@ -192,6 +193,4 @@ File: UnderscoreUsageInCallableRefTypeLHS.kt - fb3dc844f9f04a5c0484712ae3d29ee7 memberAccessOperator COLONCOLON("::") CLASS("class") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/UnderscoreUsageInType.antlrtree.txt b/grammar/testData/diagnostics/UnderscoreUsageInType.antlrtree.txt index f4a850e65..723a5b851 100644 --- a/grammar/testData/diagnostics/UnderscoreUsageInType.antlrtree.txt +++ b/grammar/testData/diagnostics/UnderscoreUsageInType.antlrtree.txt @@ -1,4 +1,5 @@ -File: UnderscoreUsageInType.kt - b69d28aab47e583ead4cae517f608dd1 +File: UnderscoreUsageInType.kt - 72e9a252dda73108a220e7e9c228486e + NL("\n") NL("\n") NL("\n") packageHeader @@ -280,6 +281,4 @@ File: UnderscoreUsageInType.kt - b69d28aab47e583ead4cae517f608dd1 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/UnderscoreUsageInVariableAsFunctionCall.antlrtree.txt b/grammar/testData/diagnostics/UnderscoreUsageInVariableAsFunctionCall.antlrtree.txt index b8e9450e4..e4720168f 100644 --- a/grammar/testData/diagnostics/UnderscoreUsageInVariableAsFunctionCall.antlrtree.txt +++ b/grammar/testData/diagnostics/UnderscoreUsageInVariableAsFunctionCall.antlrtree.txt @@ -1,4 +1,5 @@ -File: UnderscoreUsageInVariableAsFunctionCall.kt - 85bcce50d22ccf6823067078c6554aee +File: UnderscoreUsageInVariableAsFunctionCall.kt - b17d203f7a510fd1f0a0a6d166bc29ab + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/UnitByDefaultForFunctionTypes.antlrtree.txt b/grammar/testData/diagnostics/UnitByDefaultForFunctionTypes.antlrtree.txt index c6521866b..f2963518f 100644 --- a/grammar/testData/diagnostics/UnitByDefaultForFunctionTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/UnitByDefaultForFunctionTypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: UnitByDefaultForFunctionTypes.kt - 42274ec0cf30c6735e61dd7412ce6e93 +File: UnitByDefaultForFunctionTypes.kt - cd3177d3063231dd01e65c0f04a88c5e + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/Unresolved.antlrtree.txt b/grammar/testData/diagnostics/Unresolved.antlrtree.txt index 0d46c65b3..0ed391c44 100644 --- a/grammar/testData/diagnostics/Unresolved.antlrtree.txt +++ b/grammar/testData/diagnostics/Unresolved.antlrtree.txt @@ -1,4 +1,4 @@ -File: Unresolved.kt - e56ccc56bdf9d8a464130b713d433ffa +File: Unresolved.kt - 2ad0e1688d91fc34f8b763b395eece70 packageHeader PACKAGE("package") identifier @@ -825,5 +825,5 @@ File: Unresolved.kt - e56ccc56bdf9d8a464130b713d433ffa statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/UnusedInDestructuring.antlrtree.txt b/grammar/testData/diagnostics/UnusedInDestructuring.antlrtree.txt index 81e84d4fe..cc34d7211 100644 --- a/grammar/testData/diagnostics/UnusedInDestructuring.antlrtree.txt +++ b/grammar/testData/diagnostics/UnusedInDestructuring.antlrtree.txt @@ -1,4 +1,6 @@ -File: UnusedInDestructuring.kt - cb01198d00dfbbf48d0ac808069f011a +File: UnusedInDestructuring.kt - 1d1f95280cd44b5588a82efd9a06c6d3 + NL("\n") + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/UnusedParameters.antlrtree.txt b/grammar/testData/diagnostics/UnusedParameters.antlrtree.txt index e1fd0f6b4..80e196501 100644 --- a/grammar/testData/diagnostics/UnusedParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/UnusedParameters.antlrtree.txt @@ -1,4 +1,5 @@ -File: UnusedParameters.kt - 99be1a302b582828789fbcf8e7294976 +File: UnusedParameters.kt - 4cf2eb14cbfaf7d7833e263318d33bc8 + NL("\n") packageHeader importList importHeader @@ -870,5 +871,5 @@ File: UnusedParameters.kt - 99be1a302b582828789fbcf8e7294976 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/UnusedVariables.antlrtree.txt b/grammar/testData/diagnostics/UnusedVariables.antlrtree.txt index b2e05c080..e3818485f 100644 --- a/grammar/testData/diagnostics/UnusedVariables.antlrtree.txt +++ b/grammar/testData/diagnostics/UnusedVariables.antlrtree.txt @@ -1,4 +1,6 @@ -File: UnusedVariables.kt - fe9969b912dd265c199158e813af0030 +File: UnusedVariables.kt - 7594c9f59ad6c80aace24246580f65e8 + NL("\n") + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/Varargs.antlrtree.txt b/grammar/testData/diagnostics/Varargs.antlrtree.txt index 8dfc30442..ed4e641e4 100644 --- a/grammar/testData/diagnostics/Varargs.antlrtree.txt +++ b/grammar/testData/diagnostics/Varargs.antlrtree.txt @@ -1,4 +1,4 @@ -File: Varargs.kt - 5dad99f52dafcb4b340bb415999875a3 +File: Varargs.kt - 0475d0837e126400f04895bf4d1671d2 packageHeader importList topLevelObject @@ -953,5 +953,5 @@ File: Varargs.kt - 5dad99f52dafcb4b340bb415999875a3 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/Variance.antlrtree.txt b/grammar/testData/diagnostics/Variance.antlrtree.txt index e5996bd70..6a7a1f8a4 100644 --- a/grammar/testData/diagnostics/Variance.antlrtree.txt +++ b/grammar/testData/diagnostics/Variance.antlrtree.txt @@ -1,5 +1,4 @@ -File: Variance.kt - 9993e72a37fcd68370fcc7c4b4e3d6cd - NL("\n") +File: Variance.kt - dce66921b481e735260621b1b15ff552 packageHeader PACKAGE("package") identifier @@ -1285,5 +1284,5 @@ File: Variance.kt - 9993e72a37fcd68370fcc7c4b4e3d6cd NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/AmbigiousAnnotationConstructor.antlrtree.txt b/grammar/testData/diagnostics/annotations/AmbigiousAnnotationConstructor.antlrtree.txt index 765c6000b..45da192dd 100644 --- a/grammar/testData/diagnostics/annotations/AmbigiousAnnotationConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/AmbigiousAnnotationConstructor.antlrtree.txt @@ -1,5 +1,4 @@ -File: AmbigiousAnnotationConstructor.kt - 1925556d52c671bb35e5ad5d10f6c371 - NL("\n") +File: AmbigiousAnnotationConstructor.kt - 6b3425ddeaf262e2bebddb0bd23249d0 packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/annotations/AnnotatedBlock.antlrtree.txt b/grammar/testData/diagnostics/annotations/AnnotatedBlock.antlrtree.txt new file mode 100644 index 000000000..343bea247 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/AnnotatedBlock.antlrtree.txt @@ -0,0 +1,337 @@ +File: AnnotatedBlock.kt - 1316876f49024f1551e0279caf83a740 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann2") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + NL("\n") + controlStructureBody + statement + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann2") + valueArguments + LPAREN("(") + RPAREN(")") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + NL("\n") + controlStructureBody + statement + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann2") + valueArguments + LPAREN("(") + RPAREN(")") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + statement + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann2") + valueArguments + LPAREN("(") + RPAREN(")") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/AnnotatedConstructor.antlrtree.txt b/grammar/testData/diagnostics/annotations/AnnotatedConstructor.antlrtree.txt index 5e6834366..47d905523 100644 --- a/grammar/testData/diagnostics/annotations/AnnotatedConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/AnnotatedConstructor.antlrtree.txt @@ -44,6 +44,4 @@ File: AnnotatedConstructor.kt - 5617335041d78daa6ba647b1a64e0899 simpleIdentifier Identifier("Int") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/AnnotatedConstructorParams.antlrtree.txt b/grammar/testData/diagnostics/annotations/AnnotatedConstructorParams.antlrtree.txt index 1bd654ed1..4f713d0d5 100644 --- a/grammar/testData/diagnostics/annotations/AnnotatedConstructorParams.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/AnnotatedConstructorParams.antlrtree.txt @@ -1,4 +1,5 @@ -File: AnnotatedConstructorParams.kt - dede35520551c8cf62383580935353a7 +File: AnnotatedConstructorParams.kt - ba8c91923e3c546505a94e3e3687c3a5 + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/annotations/AnnotatedResultType.antlrtree.txt b/grammar/testData/diagnostics/annotations/AnnotatedResultType.antlrtree.txt index 27a3cc507..5e170e25f 100644 --- a/grammar/testData/diagnostics/annotations/AnnotatedResultType.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/AnnotatedResultType.antlrtree.txt @@ -137,6 +137,4 @@ File: AnnotatedResultType.kt - 48e1ac3e1a5279170645cd208bb79f1e primaryExpression literalConstant IntegerLiteral("24") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/AnnotatedTryCatch.antlrtree.txt b/grammar/testData/diagnostics/annotations/AnnotatedTryCatch.antlrtree.txt index ee6aa6ff9..b49a9ac3b 100644 --- a/grammar/testData/diagnostics/annotations/AnnotatedTryCatch.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/AnnotatedTryCatch.antlrtree.txt @@ -1,5 +1,4 @@ -File: AnnotatedTryCatch.kt - 967c55908001fc46d8ffa8f6772877d9 - NL("\n") +File: AnnotatedTryCatch.kt - a4cd5dc4a23cc92d657bc7ba676d846d packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/annotations/AnnotationForClassTypeParameter_15.antlrtree.txt b/grammar/testData/diagnostics/annotations/AnnotationForClassTypeParameter_15.antlrtree.txt new file mode 100644 index 000000000..707afee5f --- /dev/null +++ b/grammar/testData/diagnostics/annotations/AnnotationForClassTypeParameter_15.antlrtree.txt @@ -0,0 +1,565 @@ +File: AnnotationForClassTypeParameter_15.kt - fca722c695708918a7717883e3650824 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE_PARAMETER") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE_PARAMETER") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("some") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("TopLevelClass") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("InnerClass") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("InFun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/AnnotationForClassTypeParameter_16.antlrtree.txt b/grammar/testData/diagnostics/annotations/AnnotationForClassTypeParameter_16.antlrtree.txt new file mode 100644 index 000000000..dd523fa60 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/AnnotationForClassTypeParameter_16.antlrtree.txt @@ -0,0 +1,1051 @@ +File: AnnotationForClassTypeParameter_16.kt - ebdae5d4590d0041c951931dcdddb6f5 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("some") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("TA1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE_PARAMETER") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("TA2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("some") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("TopLevelClass") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("InnerClass") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("InFun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("TTopLevelClass") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TA1") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("TInnerClass") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TA1") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("TInFun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TA1") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/AnnotationForClassTypeParameter_typeUseFlag.antlrtree.txt b/grammar/testData/diagnostics/annotations/AnnotationForClassTypeParameter_typeUseFlag.antlrtree.txt new file mode 100644 index 000000000..03432b414 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/AnnotationForClassTypeParameter_typeUseFlag.antlrtree.txt @@ -0,0 +1,1052 @@ +File: AnnotationForClassTypeParameter_typeUseFlag.kt - b8937db0535a16edd3876c60e7a3595d + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("some") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("TA1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE_PARAMETER") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("TA2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("some") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("TopLevelClass") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("InnerClass") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("InFun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("TTopLevelClass") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TA1") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("TInnerClass") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TA1") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("TInFun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TA1") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/AnnotationForFunctionTypeParameter.antlrtree.txt b/grammar/testData/diagnostics/annotations/AnnotationForFunctionTypeParameter.antlrtree.txt index fd5c0fe30..31d3f552a 100644 --- a/grammar/testData/diagnostics/annotations/AnnotationForFunctionTypeParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/AnnotationForFunctionTypeParameter.antlrtree.txt @@ -1,4 +1,4 @@ -File: AnnotationForFunctionTypeParameter.kt - 9e75da690b9c98e003b1b81950b9ce68 +File: AnnotationForFunctionTypeParameter.kt - f14f3bec2a6be7f35d177f19ec87fd8d packageHeader importList topLevelObject @@ -560,4 +560,637 @@ File: AnnotationForFunctionTypeParameter.kt - 9e75da690b9c98e003b1b81950b9ce68 RCURL("}") semis NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("TA") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE_PARAMETER") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("TPA") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("some") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TA") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TPA") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TPA") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TPA") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("topFunTPA") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SomeClassTPA") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TA") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TPA") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TPA") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TPA") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("method") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TA") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TPA") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TPA") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TA") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + RPAREN(")") + typeParameterModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TPA") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Test") + QUOTE_CLOSE(""") + RPAREN(")") + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("innerFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("12") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/AnnotationForObject.antlrtree.txt b/grammar/testData/diagnostics/annotations/AnnotationForObject.antlrtree.txt index c25390954..ac9f8ef45 100644 --- a/grammar/testData/diagnostics/annotations/AnnotationForObject.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/AnnotationForObject.antlrtree.txt @@ -22,6 +22,4 @@ File: AnnotationForObject.kt - 1d814af286509bb0d7459f4a52c6e1c5 NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/AnnotationIdentifier.other_c.antlrtree.txt b/grammar/testData/diagnostics/annotations/AnnotationIdentifier.other_c.antlrtree.txt index 81f41a5da..826c3d7e7 100644 --- a/grammar/testData/diagnostics/annotations/AnnotationIdentifier.other_c.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/AnnotationIdentifier.other_c.antlrtree.txt @@ -1,4 +1,4 @@ -File: AnnotationIdentifier.other_c.kt - 7b28280c8813efeacf7efa25904475f0 +File: AnnotationIdentifier.other_c.kt - 1656dfd6c03467c8aa60af062612861d packageHeader PACKAGE("package") identifier @@ -57,5 +57,5 @@ File: AnnotationIdentifier.other_c.kt - 7b28280c8813efeacf7efa25904475f0 simpleIdentifier Identifier("Our") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/AnnotationsForClasses.antlrtree.txt b/grammar/testData/diagnostics/annotations/AnnotationsForClasses.antlrtree.txt index b9e2c35a1..5a5d39787 100644 --- a/grammar/testData/diagnostics/annotations/AnnotationsForClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/AnnotationsForClasses.antlrtree.txt @@ -1,4 +1,5 @@ -File: AnnotationsForClasses.kt - b40d02523933f3f6bf71c3a55d86af92 +File: AnnotationsForClasses.kt - 4f881c0e5658d2a40b5dc13ab879de5b + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/annotations/ConstructorCall.antlrtree.txt b/grammar/testData/diagnostics/annotations/ConstructorCall.antlrtree.txt index 07dbf8469..a44ef0cb4 100644 --- a/grammar/testData/diagnostics/annotations/ConstructorCall.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/ConstructorCall.antlrtree.txt @@ -1,4 +1,5 @@ -File: ConstructorCall.kt - 3c556dd41b04dc20776171044a0feca2 +File: ConstructorCall.kt - 8b2460d7fd49bfcd5820bdebc2f81884 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/annotations/ConstructorCallAllowed.antlrtree.txt b/grammar/testData/diagnostics/annotations/ConstructorCallAllowed.antlrtree.txt new file mode 100644 index 000000000..fc9b27853 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/ConstructorCallAllowed.antlrtree.txt @@ -0,0 +1,352 @@ +File: ConstructorCallAllowed.kt - 675d824743a1a7e88193bff3917d8f99 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KClass") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("int") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("int") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("G") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("int") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KClass") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("G") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Int") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/DanglingNoBrackets.antlrtree.txt b/grammar/testData/diagnostics/annotations/DanglingNoBrackets.antlrtree.txt index 91cab0931..e96bb45fb 100644 --- a/grammar/testData/diagnostics/annotations/DanglingNoBrackets.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/DanglingNoBrackets.antlrtree.txt @@ -71,6 +71,4 @@ File: DanglingNoBrackets.kt - a2c1e3ba4db9be08a8f7cbab60a9c4c0 (WITH_ERRORS) declaration AT_PRE_WS("\n@") Identifier("Ann") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/DanglingWithBrackets.antlrtree.txt b/grammar/testData/diagnostics/annotations/DanglingWithBrackets.antlrtree.txt index 24e272b42..853e4e5aa 100644 --- a/grammar/testData/diagnostics/annotations/DanglingWithBrackets.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/DanglingWithBrackets.antlrtree.txt @@ -92,6 +92,4 @@ File: DanglingWithBrackets.kt - cbe73fbf23129bea2c5efe7c5df6a173 (WITH_ERRORS) declaration AT_PRE_WS("\n@") Identifier("Ann") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/Deprecated.antlrtree.txt b/grammar/testData/diagnostics/annotations/Deprecated.antlrtree.txt index a267bb3a2..7c87b53c0 100644 --- a/grammar/testData/diagnostics/annotations/Deprecated.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/Deprecated.antlrtree.txt @@ -1,4 +1,5 @@ -File: Deprecated.kt - 8fd8ef13b7161a154f4c33e7d994b7a2 +File: Deprecated.kt - f9ae0f425e00265f9f849ad7027b2dc7 + NL("\n") packageHeader importList importHeader @@ -74,6 +75,4 @@ File: Deprecated.kt - 8fd8ef13b7161a154f4c33e7d994b7a2 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/JavaAnnotationConstructors.antlrtree.txt b/grammar/testData/diagnostics/annotations/JavaAnnotationConstructors.antlrtree.txt index 4e9a632c9..5acb624db 100644 --- a/grammar/testData/diagnostics/annotations/JavaAnnotationConstructors.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/JavaAnnotationConstructors.antlrtree.txt @@ -1,4 +1,5 @@ -File: JavaAnnotationConstructors.kt - d20716c160673477775c264fae8f21da +File: JavaAnnotationConstructors.kt - 3331ca9f3a27d05b32cb41d482fb4392 + NL("\n") packageHeader importList importHeader @@ -221,6 +222,4 @@ File: JavaAnnotationConstructors.kt - d20716c160673477775c264fae8f21da CLASS("class") simpleIdentifier Identifier("my1") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/MultiDeclaration.antlrtree.txt b/grammar/testData/diagnostics/annotations/MultiDeclaration.antlrtree.txt index 96a81299e..5b18e0a77 100644 --- a/grammar/testData/diagnostics/annotations/MultiDeclaration.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/MultiDeclaration.antlrtree.txt @@ -316,6 +316,4 @@ File: MultiDeclaration.kt - e779fae17b6beec77d82cd7b14ed76e7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/MutuallyRecursivelyAnnotatedGlobalFunction.antlrtree.txt b/grammar/testData/diagnostics/annotations/MutuallyRecursivelyAnnotatedGlobalFunction.antlrtree.txt index d23dc89af..8d454e96c 100644 --- a/grammar/testData/diagnostics/annotations/MutuallyRecursivelyAnnotatedGlobalFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/MutuallyRecursivelyAnnotatedGlobalFunction.antlrtree.txt @@ -1,5 +1,4 @@ -File: MutuallyRecursivelyAnnotatedGlobalFunction.kt - a237844de40e2dc4c5f9c53993e78925 - NL("\n") +File: MutuallyRecursivelyAnnotatedGlobalFunction.kt - 2aef41bb726038411fab5712042a8b72 NL("\n") packageHeader importList @@ -161,5 +160,5 @@ File: MutuallyRecursivelyAnnotatedGlobalFunction.kt - a237844de40e2dc4c5f9c53993 literalConstant IntegerLiteral("2") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/NonAnnotationClass.antlrtree.txt b/grammar/testData/diagnostics/annotations/NonAnnotationClass.antlrtree.txt index 5b24a8b6f..1bb66e250 100644 --- a/grammar/testData/diagnostics/annotations/NonAnnotationClass.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/NonAnnotationClass.antlrtree.txt @@ -1,5 +1,4 @@ -File: NonAnnotationClass.kt - 2dd72f5ebd4a801267a42e5a2892fbff - NL("\n") +File: NonAnnotationClass.kt - 462f7a85c053947b0f41c3070db41cf0 packageHeader importList topLevelObject @@ -26,5 +25,5 @@ File: NonAnnotationClass.kt - 2dd72f5ebd4a801267a42e5a2892fbff simpleIdentifier Identifier("Bar") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/RecursivelyAnnotated.antlrtree.txt b/grammar/testData/diagnostics/annotations/RecursivelyAnnotated.antlrtree.txt index 4007ca143..8f38feabf 100644 --- a/grammar/testData/diagnostics/annotations/RecursivelyAnnotated.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/RecursivelyAnnotated.antlrtree.txt @@ -59,6 +59,4 @@ File: RecursivelyAnnotated.kt - e01d2799f76c702b1c7bacbb055e3160 simpleIdentifier Identifier("Int") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedFunctionParameter.antlrtree.txt b/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedFunctionParameter.antlrtree.txt index f7b7904fb..3e33f1c61 100644 --- a/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedFunctionParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedFunctionParameter.antlrtree.txt @@ -133,6 +133,4 @@ File: RecursivelyAnnotatedFunctionParameter.kt - 27cd707d09f85cf3629312aa1531394 primaryExpression simpleIdentifier Identifier("x") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedGlobalFunction.antlrtree.txt b/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedGlobalFunction.antlrtree.txt index f46fc1a3f..496bae178 100644 --- a/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedGlobalFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedGlobalFunction.antlrtree.txt @@ -1,5 +1,4 @@ -File: RecursivelyAnnotatedGlobalFunction.kt - d8be70da27178e5c2977b629c5619922 - NL("\n") +File: RecursivelyAnnotatedGlobalFunction.kt - 41900c085a6e47edcd34429c4fb61f55 NL("\n") packageHeader importList @@ -95,5 +94,5 @@ File: RecursivelyAnnotatedGlobalFunction.kt - d8be70da27178e5c2977b629c5619922 literalConstant IntegerLiteral("1") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedGlobalProperty.antlrtree.txt b/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedGlobalProperty.antlrtree.txt index a40bc0438..cc4acc2dc 100644 --- a/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedGlobalProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedGlobalProperty.antlrtree.txt @@ -96,6 +96,4 @@ File: RecursivelyAnnotatedGlobalProperty.kt - 1f494191755e7b28039e09f326aa8d99 primaryExpression literalConstant IntegerLiteral("1") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedParameter.antlrtree.txt b/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedParameter.antlrtree.txt index 772bdb96f..b94ea71fa 100644 --- a/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedParameter.antlrtree.txt @@ -60,6 +60,4 @@ File: RecursivelyAnnotatedParameter.kt - 8ca92210108d918186dc9a5b05285aae simpleIdentifier Identifier("Int") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedParameterWithAt.antlrtree.txt b/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedParameterWithAt.antlrtree.txt index 3886742d8..8eee94668 100644 --- a/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedParameterWithAt.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedParameterWithAt.antlrtree.txt @@ -60,6 +60,4 @@ File: RecursivelyAnnotatedParameterWithAt.kt - 8ca92210108d918186dc9a5b05285aae simpleIdentifier Identifier("Int") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedProperty.antlrtree.txt b/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedProperty.antlrtree.txt index 30de67756..186e57477 100644 --- a/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/RecursivelyAnnotatedProperty.antlrtree.txt @@ -107,6 +107,4 @@ File: RecursivelyAnnotatedProperty.kt - 42737cdfa29fadee9b67bf28d0f74c91 IntegerLiteral("1") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/RetentionsOfAnnotationWithExpressionTarget_after.antlrtree.txt b/grammar/testData/diagnostics/annotations/RetentionsOfAnnotationWithExpressionTarget_after.antlrtree.txt index 0ab3d1cc2..b6896bba3 100644 --- a/grammar/testData/diagnostics/annotations/RetentionsOfAnnotationWithExpressionTarget_after.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/RetentionsOfAnnotationWithExpressionTarget_after.antlrtree.txt @@ -1,4 +1,5 @@ -File: RetentionsOfAnnotationWithExpressionTarget_after.kt - a446bf48e1f144b6d0662a576f078099 +File: RetentionsOfAnnotationWithExpressionTarget_after.kt - 555ac5ae163ceaee55523bbfc250a6a9 + NL("\n") NL("\n") packageHeader importList @@ -262,5 +263,5 @@ File: RetentionsOfAnnotationWithExpressionTarget_after.kt - a446bf48e1f144b6d066 simpleIdentifier Identifier("TestRetentionRuntime") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/RetentionsOfAnnotationWithExpressionTarget_before.antlrtree.txt b/grammar/testData/diagnostics/annotations/RetentionsOfAnnotationWithExpressionTarget_before.antlrtree.txt index 61c9157d2..8149b3093 100644 --- a/grammar/testData/diagnostics/annotations/RetentionsOfAnnotationWithExpressionTarget_before.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/RetentionsOfAnnotationWithExpressionTarget_before.antlrtree.txt @@ -1,4 +1,5 @@ -File: RetentionsOfAnnotationWithExpressionTarget_before.kt - 98ff510521edd89d585045f4f08f413b +File: RetentionsOfAnnotationWithExpressionTarget_before.kt - 60ebfe0c0225a1a3eadd78288bee7057 + NL("\n") NL("\n") packageHeader importList @@ -261,6 +262,4 @@ File: RetentionsOfAnnotationWithExpressionTarget_before.kt - 98ff510521edd89d585 CLASS("class") simpleIdentifier Identifier("TestRetentionRuntime") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/UnresolvedAnnotationOnObject.antlrtree.txt b/grammar/testData/diagnostics/annotations/UnresolvedAnnotationOnObject.antlrtree.txt index cfa9fd067..76962b0e8 100644 --- a/grammar/testData/diagnostics/annotations/UnresolvedAnnotationOnObject.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/UnresolvedAnnotationOnObject.antlrtree.txt @@ -56,6 +56,4 @@ File: UnresolvedAnnotationOnObject.kt - a6042dad31ec0d5b32f8b7f2525dc5c0 primaryExpression simpleIdentifier Identifier("SomeObject") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/annotatedExpressionInsideAnnotation.antlrtree.txt b/grammar/testData/diagnostics/annotations/annotatedExpressionInsideAnnotation.antlrtree.txt index 9e580b08a..1f2821da0 100644 --- a/grammar/testData/diagnostics/annotations/annotatedExpressionInsideAnnotation.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/annotatedExpressionInsideAnnotation.antlrtree.txt @@ -1,4 +1,5 @@ -File: annotatedExpressionInsideAnnotation.kt - c69d118dfcd92b998f32d3c52b63376b (WITH_ERRORS) +File: annotatedExpressionInsideAnnotation.kt - 408aaa010b737c43c67607019bde462f (WITH_ERRORS) + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/annotations/annotationInheritance.antlrtree.txt b/grammar/testData/diagnostics/annotations/annotationInheritance.antlrtree.txt index b41e4bbf9..a1aee72c2 100644 --- a/grammar/testData/diagnostics/annotations/annotationInheritance.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/annotationInheritance.antlrtree.txt @@ -174,6 +174,4 @@ File: annotationInheritance.kt - 90229a05344bcff5c035ce82d7f31c45 simpleUserType simpleIdentifier Identifier("T") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/annotationModifier.antlrtree.txt b/grammar/testData/diagnostics/annotations/annotationModifier.antlrtree.txt index d40158661..0d35b6cb9 100644 --- a/grammar/testData/diagnostics/annotations/annotationModifier.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/annotationModifier.antlrtree.txt @@ -1,4 +1,5 @@ -File: annotationModifier.kt - a43c98b659ca18904ece7c93b0b359dd +File: annotationModifier.kt - a56cc0bbf2b36c0275a9bb1765f9a2ef + NL("\n") packageHeader importList topLevelObject @@ -174,6 +175,4 @@ File: annotationModifier.kt - a43c98b659ca18904ece7c93b0b359dd primaryExpression literalConstant IntegerLiteral("0") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/annotationOnParameterInFunctionType.antlrtree.txt b/grammar/testData/diagnostics/annotations/annotationOnParameterInFunctionType.antlrtree.txt index 5179421cd..ba6f29564 100644 --- a/grammar/testData/diagnostics/annotations/annotationOnParameterInFunctionType.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/annotationOnParameterInFunctionType.antlrtree.txt @@ -1,4 +1,4 @@ -File: annotationOnParameterInFunctionType.kt - 72e80412ba84190cc740c402a44c3349 (WITH_ERRORS) +File: annotationOnParameterInFunctionType.kt - 2bfcd9f3ed9d6b8c67a86e9a2f31a9b5 (WITH_ERRORS) NL("\n") NL("\n") packageHeader @@ -567,5 +567,473 @@ File: annotationOnParameterInFunctionType.kt - 72e80412ba84190cc740c402a44c3349 literalConstant NullLiteral("null") semis - EOF("") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("TypeAnnWithArg") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("badArgs") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnnWithArg") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("unresolved") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BadArgsInTypeAlias") + ASSIGNMENT("=") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnnWithArg") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("badArgsInTypeAlias") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BadArgsInTypeAlias") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("T") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + ASSIGNMENT("=") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("badArgsInTypeAliasInstance") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnnWithArg") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("arg") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("123") + RPAREN(")") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BadArgsInRecursive") + ASSIGNMENT("=") + type + functionType + functionTypeParameters + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnnWithArg") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + ARROW("->") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnnWithArg") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BadArgsMultiple") + ASSIGNMENT("=") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnnWithArg") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnnWithArg") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("arg") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("123") + RPAREN(")") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/annotationConstructorDefaultParameter.antlrtree.txt b/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/annotationConstructorDefaultParameter.antlrtree.txt index 7f1e2ee3a..230d1c7c3 100644 --- a/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/annotationConstructorDefaultParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/annotationConstructorDefaultParameter.antlrtree.txt @@ -1,4 +1,5 @@ -File: annotationConstructorDefaultParameter.kt - fb5bc10b54b871d75fcabe95c6042c6d +File: annotationConstructorDefaultParameter.kt - 687c4493f7de1e98d3640f38bf58c3ca + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/booleanLocalVal.antlrtree.txt b/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/booleanLocalVal.antlrtree.txt index a491c1537..4f4ca63fa 100644 --- a/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/booleanLocalVal.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/booleanLocalVal.antlrtree.txt @@ -1,4 +1,5 @@ -File: booleanLocalVal.kt - 447d1cc1c3d9186bdf6f7a51da5bd5c8 +File: booleanLocalVal.kt - dcd8dc2c19abed799cb5330bfe266df2 + NL("\n") packageHeader importList topLevelObject @@ -135,5 +136,5 @@ File: booleanLocalVal.kt - 447d1cc1c3d9186bdf6f7a51da5bd5c8 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/compareAndEquals.antlrtree.txt b/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/compareAndEquals.antlrtree.txt index 7d137065b..514a9fa4e 100644 --- a/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/compareAndEquals.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/compareAndEquals.antlrtree.txt @@ -393,6 +393,4 @@ File: compareAndEquals.kt - 972bb26b9b1885d8113eeefe7ee8a665 IntegerLiteral("1") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/kotlinProperties.antlrtree.txt b/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/kotlinProperties.antlrtree.txt index a00c005ac..7bc0d1993 100644 --- a/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/kotlinProperties.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/kotlinProperties.antlrtree.txt @@ -345,6 +345,4 @@ File: kotlinProperties.kt - 90b88ee3b78461ed6152d616627c19a4 simpleIdentifier Identifier("i2") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/standaloneInExpression.antlrtree.txt b/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/standaloneInExpression.antlrtree.txt index c7b93d0bc..dccef30e5 100644 --- a/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/standaloneInExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/standaloneInExpression.antlrtree.txt @@ -1,5 +1,4 @@ -File: standaloneInExpression.kt - 8792bce5fdfa1efb3feda01241d183e3 - NL("\n") +File: standaloneInExpression.kt - 0f9bc53f35d1a18e2ee0b2aeb4cf8644 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/strings.antlrtree.txt b/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/strings.antlrtree.txt index cab16ee8b..dc9a23082 100644 --- a/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/strings.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/annotationParameterMustBeConstant/strings.antlrtree.txt @@ -595,6 +595,4 @@ File: strings.kt - 1356dea0990d90be245162376934ff33 IntegerLiteral("1") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/annotationRenderingInTypes.antlrtree.txt b/grammar/testData/diagnostics/annotations/annotationRenderingInTypes.antlrtree.txt index c79759bd0..5fac3689a 100644 --- a/grammar/testData/diagnostics/annotations/annotationRenderingInTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/annotationRenderingInTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: annotationRenderingInTypes.kt - bb74e9d3b63e2e6f867ef063ec165d36 - NL("\n") +File: annotationRenderingInTypes.kt - 2052f7a8ac3967eb90a789764b2b662b NL("\n") NL("\n") NL("\n") @@ -644,6 +643,4 @@ File: annotationRenderingInTypes.kt - bb74e9d3b63e2e6f867ef063ec165d36 statements RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/annotationsOnNullableTypes.antlrtree.txt b/grammar/testData/diagnostics/annotations/annotationsOnNullableTypes.antlrtree.txt index 1a1eff021..3551994fa 100644 --- a/grammar/testData/diagnostics/annotations/annotationsOnNullableTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/annotationsOnNullableTypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: annotationsOnNullableTypes.kt - f01da808af608a998b9902f308da650e +File: annotationsOnNullableTypes.kt - 6ff06dcf5b3e74db471ef920e14762be + NL("\n") NL("\n") packageHeader importList @@ -1052,6 +1053,4 @@ File: annotationsOnNullableTypes.kt - f01da808af608a998b9902f308da650e primaryExpression literalConstant IntegerLiteral("1") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/arrayLiteralInAnnotationCompanion_after.antlrtree.txt b/grammar/testData/diagnostics/annotations/arrayLiteralInAnnotationCompanion_after.antlrtree.txt new file mode 100644 index 000000000..1612ff175 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/arrayLiteralInAnnotationCompanion_after.antlrtree.txt @@ -0,0 +1,1413 @@ +File: arrayLiteralInAnnotationCompanion_after.kt - 42d93f077ec81cac22bd01e4b3b9c241 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/arrayLiteralInAnnotationCompanion_before.antlrtree.txt b/grammar/testData/diagnostics/annotations/arrayLiteralInAnnotationCompanion_before.antlrtree.txt new file mode 100644 index 000000000..7c0cdc092 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/arrayLiteralInAnnotationCompanion_before.antlrtree.txt @@ -0,0 +1,1412 @@ +File: arrayLiteralInAnnotationCompanion_before.kt - 1e8cb89f6ac7131d2a2280a823303995 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntArray") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RSQUARE("]") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/cycleInParameters_after.antlrtree.txt b/grammar/testData/diagnostics/annotations/cycleInParameters_after.antlrtree.txt new file mode 100644 index 000000000..8f712f079 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/cycleInParameters_after.antlrtree.txt @@ -0,0 +1,256 @@ +File: cycleInParameters_after.kt - 17e164fe32b834cea35614367f1b27fd + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KClass") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("X") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Y") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Y") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Z1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Z2") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Z2") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Z2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Z1") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KClass") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KClass") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/cycleInParameters_array.antlrtree.txt b/grammar/testData/diagnostics/annotations/cycleInParameters_array.antlrtree.txt new file mode 100644 index 000000000..89c5e4a78 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/cycleInParameters_array.antlrtree.txt @@ -0,0 +1,77 @@ +File: cycleInParameters_array.kt - fa0de65a31381da1d4ac90ef8049ac1d + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("AnnotationWithArray") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("array") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AnnotationWithArray") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("AnnotationWithVararg") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + parameterModifier + VARARG("vararg") + VAL("val") + simpleIdentifier + Identifier("args") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AnnotationWithVararg") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/cycleInParameters_before.antlrtree.txt b/grammar/testData/diagnostics/annotations/cycleInParameters_before.antlrtree.txt new file mode 100644 index 000000000..9f201fbbc --- /dev/null +++ b/grammar/testData/diagnostics/annotations/cycleInParameters_before.antlrtree.txt @@ -0,0 +1,256 @@ +File: cycleInParameters_before.kt - 2d2037200c5e17965cbac64c15d6a5bf + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KClass") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("X") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Y") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Y") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Z1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Z2") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Z2") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Z2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Z1") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KClass") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KClass") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/extensionFunctionType.antlrtree.txt b/grammar/testData/diagnostics/annotations/extensionFunctionType.antlrtree.txt index 29b1c8fa6..2b9b2a71f 100644 --- a/grammar/testData/diagnostics/annotations/extensionFunctionType.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/extensionFunctionType.antlrtree.txt @@ -1,4 +1,5 @@ -File: extensionFunctionType.kt - 0921f6f972961f99b84d51d2d0e76c2b +File: extensionFunctionType.kt - 1791a98f768f8007c7c3a1463e5ebd31 + NL("\n") NL("\n") NL("\n") packageHeader @@ -243,6 +244,216 @@ File: extensionFunctionType.kt - 0921f6f972961f99b84d51d2d0e76c2b RPAREN(")") semis NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f5") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ExtensionFunctionType") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f6") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ExtensionFunctionType") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f7") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ExtensionFunctionType") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Function0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f8") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ExtensionFunctionType") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") RCURL("}") semis NL("\n") diff --git a/grammar/testData/diagnostics/annotations/functionalTypes/nonParenthesizedAnnotationsWithError.antlrtree.txt b/grammar/testData/diagnostics/annotations/functionalTypes/nonParenthesizedAnnotationsWithError.antlrtree.txt index a3e11a0eb..d3a9183c4 100644 --- a/grammar/testData/diagnostics/annotations/functionalTypes/nonParenthesizedAnnotationsWithError.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/functionalTypes/nonParenthesizedAnnotationsWithError.antlrtree.txt @@ -2494,6 +2494,4 @@ File: nonParenthesizedAnnotationsWithError.kt - 19be95ce15ee4f2937c718bc8eaa3d9a statements RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/functionalTypes/nonParenthesizedAnnotationsWithoutError.antlrtree.txt b/grammar/testData/diagnostics/annotations/functionalTypes/nonParenthesizedAnnotationsWithoutError.antlrtree.txt index ab021908b..fe720d6df 100644 --- a/grammar/testData/diagnostics/annotations/functionalTypes/nonParenthesizedAnnotationsWithoutError.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/functionalTypes/nonParenthesizedAnnotationsWithoutError.antlrtree.txt @@ -2324,6 +2324,4 @@ File: nonParenthesizedAnnotationsWithoutError.kt - 75d2f6caa6fc0fc1dba822bab9f06 statements RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/javaAnnotationWithClassArray.main.antlrtree.txt b/grammar/testData/diagnostics/annotations/javaAnnotationWithClassArray.main.antlrtree.txt new file mode 100644 index 000000000..09f724efc --- /dev/null +++ b/grammar/testData/diagnostics/annotations/javaAnnotationWithClassArray.main.antlrtree.txt @@ -0,0 +1,231 @@ +File: javaAnnotationWithClassArray.main.kt - 8f56de124d32d2f66c25b525c066ac5c + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("X") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("X") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("AnnRaw") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("X") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Utils") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("X") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("java") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Utils") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("fooRaw") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("X") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("java") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/kt1860-negative.antlrtree.txt b/grammar/testData/diagnostics/annotations/kt1860-negative.antlrtree.txt index 077fc56b5..2167c9fc6 100644 --- a/grammar/testData/diagnostics/annotations/kt1860-negative.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/kt1860-negative.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt1860-negative.kt - 492171e8d30a9085c2aef0ab540b485e +File: kt1860-negative.kt - ed47217ffb0836eafac28931e4050c95 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/annotations/kt1860-positive.antlrtree.txt b/grammar/testData/diagnostics/annotations/kt1860-positive.antlrtree.txt index 4901791b6..b4b2e8df9 100644 --- a/grammar/testData/diagnostics/annotations/kt1860-positive.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/kt1860-positive.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt1860-positive.kt - 3def5b4ad7bbe59824035e6ea1027a37 +File: kt1860-positive.kt - 6f87f4c02116cb4d829a13382c71fac1 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/annotations/nestedClassesInAnnotations.antlrtree.txt b/grammar/testData/diagnostics/annotations/nestedClassesInAnnotations.antlrtree.txt index c678cc983..49b7e0715 100644 --- a/grammar/testData/diagnostics/annotations/nestedClassesInAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/nestedClassesInAnnotations.antlrtree.txt @@ -1,4 +1,5 @@ -File: nestedClassesInAnnotations.kt - 4e982353b00c24963cf7fcc575def549 +File: nestedClassesInAnnotations.kt - e5f3fc1dd1842e830f6a1efc7743150a + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/annotations/noNameProperty.antlrtree.txt b/grammar/testData/diagnostics/annotations/noNameProperty.antlrtree.txt index cf659c6da..8205fa9c6 100644 --- a/grammar/testData/diagnostics/annotations/noNameProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/noNameProperty.antlrtree.txt @@ -30,6 +30,4 @@ File: noNameProperty.kt - 849020f9b776c1cd2a899d9df294ae54 (WITH_ERRORS) classParameter VAL("val") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/onExpression.antlrtree.txt b/grammar/testData/diagnostics/annotations/onExpression.antlrtree.txt index c2fcc0709..468f08430 100644 --- a/grammar/testData/diagnostics/annotations/onExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/onExpression.antlrtree.txt @@ -127,6 +127,4 @@ File: onExpression.kt - 198263c5531db5a782e870eac46a20b3 CLASS("class") simpleIdentifier Identifier("ann") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/onFunctionParameter.antlrtree.txt b/grammar/testData/diagnostics/annotations/onFunctionParameter.antlrtree.txt index 5d9136cd3..4a6d47fb5 100644 --- a/grammar/testData/diagnostics/annotations/onFunctionParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/onFunctionParameter.antlrtree.txt @@ -1,4 +1,5 @@ -File: onFunctionParameter.kt - 4c968116d68c0dc1248237bf6152f734 +File: onFunctionParameter.kt - d4c2b33d854c8f38c7dd74d6ea163c60 + NL("\n") packageHeader importList topLevelObject @@ -109,6 +110,4 @@ File: onFunctionParameter.kt - 4c968116d68c0dc1248237bf6152f734 statements RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/onLoops.antlrtree.txt b/grammar/testData/diagnostics/annotations/onLoops.antlrtree.txt index 9fe214c4a..f4f3027f9 100644 --- a/grammar/testData/diagnostics/annotations/onLoops.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/onLoops.antlrtree.txt @@ -1,4 +1,5 @@ -File: onLoops.kt - cf21e194ebba2630ba287795f3401722 +File: onLoops.kt - d651091a189dffb7c6b3d0c5157bfd4a + NL("\n") NL("\n") packageHeader importList @@ -197,5 +198,5 @@ File: onLoops.kt - cf21e194ebba2630ba287795f3401722 simpleIdentifier Identifier("ann") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/onLoopsUnreachable.antlrtree.txt b/grammar/testData/diagnostics/annotations/onLoopsUnreachable.antlrtree.txt index 8033a5c61..aacbac3c3 100644 --- a/grammar/testData/diagnostics/annotations/onLoopsUnreachable.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/onLoopsUnreachable.antlrtree.txt @@ -1,4 +1,5 @@ -File: onLoopsUnreachable.kt - 5379505eca86a603f90d7d5e462165f2 +File: onLoopsUnreachable.kt - 342e4a02daf095458d2a76a1cc53e527 + NL("\n") packageHeader importList topLevelObject @@ -196,5 +197,5 @@ File: onLoopsUnreachable.kt - 5379505eca86a603f90d7d5e462165f2 simpleIdentifier Identifier("ann") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/onMultiDeclaration.antlrtree.txt b/grammar/testData/diagnostics/annotations/onMultiDeclaration.antlrtree.txt index 15bea004d..98b75f46b 100644 --- a/grammar/testData/diagnostics/annotations/onMultiDeclaration.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/onMultiDeclaration.antlrtree.txt @@ -213,6 +213,4 @@ File: onMultiDeclaration.kt - 9d30d347769a409b5a0ed2629888b532 simpleIdentifier Identifier("Int") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/functionExpression.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/functionExpression.antlrtree.txt index 360d90607..97c969052 100644 --- a/grammar/testData/diagnostics/annotations/options/functionExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/functionExpression.antlrtree.txt @@ -341,6 +341,4 @@ File: functionExpression.kt - db0b3145f562e1a29e8fbd5d68d17d83 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/functions.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/functions.antlrtree.txt index b172f2a12..694c3c6c2 100644 --- a/grammar/testData/diagnostics/annotations/options/functions.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/functions.antlrtree.txt @@ -1,4 +1,4 @@ -File: functions.kt - f0c0486851202662434ab1a2dc88b731 +File: functions.kt - ee6f530f4ce2ba9e4410075ee4a4e09a packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: functions.kt - f0c0486851202662434ab1a2dc88b731 modifiers annotation singleAnnotation - AT_PRE_WS("\n@") + AT_NO_WS("@") unescapedAnnotation constructorInvocation userType diff --git a/grammar/testData/diagnostics/annotations/options/javaKotlinTargetRetention.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/javaKotlinTargetRetention.antlrtree.txt index fa0feaba0..f11fa9131 100644 --- a/grammar/testData/diagnostics/annotations/options/javaKotlinTargetRetention.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/javaKotlinTargetRetention.antlrtree.txt @@ -1,4 +1,5 @@ -File: javaKotlinTargetRetention.kt - 3afab71d1cf3408275484e61f4486af2 +File: javaKotlinTargetRetention.kt - cdeeba1df2c433a5ab64e6ae365f258c + NL("\n") packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/annotations/options/multiDeclaration.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/multiDeclaration.antlrtree.txt index 704a9f599..36466c239 100644 --- a/grammar/testData/diagnostics/annotations/options/multiDeclaration.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/multiDeclaration.antlrtree.txt @@ -1,4 +1,4 @@ -File: multiDeclaration.kt - d5e40d3f4759489b43371c181f76374a (WITH_ERRORS) +File: multiDeclaration.kt - 6e720363042b6750725339e8c95a6cdb (WITH_ERRORS) packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: multiDeclaration.kt - d5e40d3f4759489b43371c181f76374a (WITH_ERRORS) modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType diff --git a/grammar/testData/diagnostics/annotations/options/objectLiteral.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/objectLiteral.antlrtree.txt index 5dee18d65..e6b883675 100644 --- a/grammar/testData/diagnostics/annotations/options/objectLiteral.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/objectLiteral.antlrtree.txt @@ -170,6 +170,4 @@ File: objectLiteral.kt - 695bcfa0dc35bfb765857f4c7a42bd3c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/prefix.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/prefix.antlrtree.txt index 7333b40ae..4858fbe75 100644 --- a/grammar/testData/diagnostics/annotations/options/prefix.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/prefix.antlrtree.txt @@ -1,4 +1,4 @@ -File: prefix.kt - a248b21d667971d8dea59c3044a07357 +File: prefix.kt - 68bc3ad9841fcf490497de0328d3435d packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: prefix.kt - a248b21d667971d8dea59c3044a07357 modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType @@ -292,6 +292,4 @@ File: prefix.kt - a248b21d667971d8dea59c3044a07357 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/setterParam.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/setterParam.antlrtree.txt index d7d984f92..add2c54be 100644 --- a/grammar/testData/diagnostics/annotations/options/setterParam.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/setterParam.antlrtree.txt @@ -1,4 +1,5 @@ -File: setterParam.kt - c8a4531fcd87e7d277f51c21d6d88d0b (WITH_ERRORS) +File: setterParam.kt - 89fc64c89fe0baad9b99a9070748fa9c (WITH_ERRORS) + NL("\n") NL("\n") packageHeader importList @@ -112,5 +113,5 @@ File: setterParam.kt - c8a4531fcd87e7d277f51c21d6d88d0b (WITH_ERRORS) LCURL("{") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/target.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/target.antlrtree.txt index 08c79cac1..05ed7f9f2 100644 --- a/grammar/testData/diagnostics/annotations/options/target.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/target.antlrtree.txt @@ -84,6 +84,4 @@ File: target.kt - 80bee05087944b5967dd208e1a835ffd simpleIdentifier Identifier("Int") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/targets/accessors.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/targets/accessors.antlrtree.txt index ebbe76d54..f3ea45dbd 100644 --- a/grammar/testData/diagnostics/annotations/options/targets/accessors.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/targets/accessors.antlrtree.txt @@ -1,4 +1,4 @@ -File: accessors.kt - 08f76bcfff4289c95213275af7b15d0d +File: accessors.kt - 0d9d28c78ba5865d6bf915bbfe5eeb8c packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: accessors.kt - 08f76bcfff4289c95213275af7b15d0d modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType @@ -327,6 +327,4 @@ File: accessors.kt - 08f76bcfff4289c95213275af7b15d0d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/targets/annotation.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/targets/annotation.antlrtree.txt index ccc8ce5fe..721868d14 100644 --- a/grammar/testData/diagnostics/annotations/options/targets/annotation.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/targets/annotation.antlrtree.txt @@ -1,4 +1,4 @@ -File: annotation.kt - 3e2648d779e7d28b331743241dc67044 +File: annotation.kt - 5283d36e3fd048cd973ba2d226ab6b22 packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: annotation.kt - 3e2648d779e7d28b331743241dc67044 modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType @@ -485,6 +485,4 @@ File: annotation.kt - 3e2648d779e7d28b331743241dc67044 literalConstant IntegerLiteral("0") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/targets/classifier.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/targets/classifier.antlrtree.txt index bde75e687..f3678ec7c 100644 --- a/grammar/testData/diagnostics/annotations/options/targets/classifier.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/targets/classifier.antlrtree.txt @@ -1,4 +1,5 @@ -File: classifier.kt - c45dcd7f430dde7bf6925280ead73f62 +File: classifier.kt - 4e259a1293d950007c4745d3b3a996d4 + NL("\n") packageHeader importList topLevelObject @@ -549,6 +550,4 @@ File: classifier.kt - c45dcd7f430dde7bf6925280ead73f62 literalConstant IntegerLiteral("0") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/targets/constructor.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/targets/constructor.antlrtree.txt index 996e3eca9..bbb262094 100644 --- a/grammar/testData/diagnostics/annotations/options/targets/constructor.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/targets/constructor.antlrtree.txt @@ -1,4 +1,4 @@ -File: constructor.kt - 28a0e38dce06ebe69e821bb1a3d0ef29 +File: constructor.kt - e0fcb505fb099b7dc176024857a16f99 packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: constructor.kt - 28a0e38dce06ebe69e821bb1a3d0ef29 modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType @@ -499,6 +499,4 @@ File: constructor.kt - 28a0e38dce06ebe69e821bb1a3d0ef29 literalConstant IntegerLiteral("0") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/targets/empty.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/targets/empty.antlrtree.txt index df8448877..cbe152016 100644 --- a/grammar/testData/diagnostics/annotations/options/targets/empty.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/targets/empty.antlrtree.txt @@ -1,4 +1,5 @@ -File: empty.kt - 02bcf564801b6ecb6ddef3970382f8cf +File: empty.kt - 1a31c956acafbe20a85777581474efad + NL("\n") packageHeader importList topLevelObject @@ -533,6 +534,4 @@ File: empty.kt - 02bcf564801b6ecb6ddef3970382f8cf literalConstant IntegerLiteral("0") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/targets/field.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/targets/field.antlrtree.txt index b27f4ed06..7f3cb2ec2 100644 --- a/grammar/testData/diagnostics/annotations/options/targets/field.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/targets/field.antlrtree.txt @@ -1,4 +1,4 @@ -File: field.kt - 240f1bb1f03407d549897c81ef8fadd1 +File: field.kt - 70864c2fe5af5f9696736c2455561f62 packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: field.kt - 240f1bb1f03407d549897c81ef8fadd1 modifiers annotation singleAnnotation - AT_PRE_WS("\n@") + AT_NO_WS("@") unescapedAnnotation constructorInvocation userType diff --git a/grammar/testData/diagnostics/annotations/options/targets/function.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/targets/function.antlrtree.txt index 3790c33cb..ba5059cbb 100644 --- a/grammar/testData/diagnostics/annotations/options/targets/function.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/targets/function.antlrtree.txt @@ -1,4 +1,4 @@ -File: function.kt - e819e30fc187de17396c20a647050171 +File: function.kt - 7d8301d32450b7892d69a62cfb8f5586 packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: function.kt - e819e30fc187de17396c20a647050171 modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType @@ -527,6 +527,4 @@ File: function.kt - e819e30fc187de17396c20a647050171 primaryExpression literalConstant IntegerLiteral("0") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/targets/incorrect.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/targets/incorrect.antlrtree.txt index 05d51bfb8..c1c07d82e 100644 --- a/grammar/testData/diagnostics/annotations/options/targets/incorrect.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/targets/incorrect.antlrtree.txt @@ -1,4 +1,5 @@ -File: incorrect.kt - 55143068f38261c4f48dcb024483c0cd +File: incorrect.kt - 22f2474766730e88591f6c3d18f6267b + NL("\n") packageHeader importList topLevelObject @@ -558,6 +559,4 @@ File: incorrect.kt - 55143068f38261c4f48dcb024483c0cd literalConstant IntegerLiteral("0") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/targets/local.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/targets/local.antlrtree.txt index fe6305ec5..18f6d6742 100644 --- a/grammar/testData/diagnostics/annotations/options/targets/local.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/targets/local.antlrtree.txt @@ -1,4 +1,4 @@ -File: local.kt - edfb0292ec2d6e1da66b7a8f528a54fc +File: local.kt - 7e0391472cf7ad28fe3965f81d1b134c packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: local.kt - edfb0292ec2d6e1da66b7a8f528a54fc modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType @@ -485,6 +485,4 @@ File: local.kt - edfb0292ec2d6e1da66b7a8f528a54fc literalConstant IntegerLiteral("0") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/targets/nested.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/targets/nested.antlrtree.txt index 7530ba846..1f51a8f00 100644 --- a/grammar/testData/diagnostics/annotations/options/targets/nested.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/targets/nested.antlrtree.txt @@ -1,4 +1,4 @@ -File: nested.kt - 52f9558569980f1ba29eb30bb6186ec1 +File: nested.kt - ce903e4238b8f0d57b3604dc53d34259 packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: nested.kt - 52f9558569980f1ba29eb30bb6186ec1 modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType diff --git a/grammar/testData/diagnostics/annotations/options/targets/property.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/targets/property.antlrtree.txt index 5da618d0c..96dad5101 100644 --- a/grammar/testData/diagnostics/annotations/options/targets/property.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/targets/property.antlrtree.txt @@ -1,4 +1,5 @@ -File: property.kt - 844e14ee6abfb8ba03e1f706796c0de1 +File: property.kt - 5e8d445dd6288365fc345cbff915edef + NL("\n") packageHeader importList topLevelObject @@ -525,6 +526,4 @@ File: property.kt - 844e14ee6abfb8ba03e1f706796c0de1 literalConstant IntegerLiteral("0") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/targets/returntype.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/targets/returntype.antlrtree.txt index a96cc565c..4e1089a65 100644 --- a/grammar/testData/diagnostics/annotations/options/targets/returntype.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/targets/returntype.antlrtree.txt @@ -1,4 +1,5 @@ -File: returntype.kt - a9d9b601dc5a82d28986d19b4ac6994a +File: returntype.kt - a777a183d209dfaadee439e87309f8e8 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/annotations/options/targets/type.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/targets/type.antlrtree.txt index 544e1051d..b95870bd3 100644 --- a/grammar/testData/diagnostics/annotations/options/targets/type.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/targets/type.antlrtree.txt @@ -1,4 +1,4 @@ -File: type.kt - dbd590b70fbd416d3b7f250b3d6bea1a +File: type.kt - 17020582fbdf934ced41ee6b104faeb3 packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: type.kt - dbd590b70fbd416d3b7f250b3d6bea1a modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType @@ -509,6 +509,4 @@ File: type.kt - dbd590b70fbd416d3b7f250b3d6bea1a literalConstant IntegerLiteral("0") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/targets/typeParams.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/targets/typeParams.antlrtree.txt index 8bf4826d2..cf058cf60 100644 --- a/grammar/testData/diagnostics/annotations/options/targets/typeParams.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/targets/typeParams.antlrtree.txt @@ -1,4 +1,4 @@ -File: typeParams.kt - dda96787be3850bb70305fa5c3d1c1da +File: typeParams.kt - f30612477293fa810ce617de24049a20 NL("\n") packageHeader importList @@ -910,5 +910,5 @@ File: typeParams.kt - dda96787be3850bb70305fa5c3d1c1da simpleIdentifier Identifier("t") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/targets/typeargs.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/targets/typeargs.antlrtree.txt index 8013ba4fb..081525d8d 100644 --- a/grammar/testData/diagnostics/annotations/options/targets/typeargs.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/targets/typeargs.antlrtree.txt @@ -1,4 +1,5 @@ -File: typeargs.kt - 8f5b7424759a2f45892ffc12d5f9e247 +File: typeargs.kt - 1279febc89c02590b8239e56e246a00b + NL("\n") packageHeader importList topLevelObject @@ -242,6 +243,4 @@ File: typeargs.kt - 8f5b7424759a2f45892ffc12d5f9e247 primaryExpression simpleIdentifier Identifier("list") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/targets/valueparam.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/targets/valueparam.antlrtree.txt index 3d1b65967..8403c45c9 100644 --- a/grammar/testData/diagnostics/annotations/options/targets/valueparam.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/targets/valueparam.antlrtree.txt @@ -1,4 +1,5 @@ -File: valueparam.kt - 11a573a6ae52dc14c5633c05b900dd0a +File: valueparam.kt - 7f79149004345aaa4ac94a3754ced588 + NL("\n") packageHeader importList topLevelObject @@ -525,6 +526,4 @@ File: valueparam.kt - 11a573a6ae52dc14c5633c05b900dd0a literalConstant IntegerLiteral("0") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/options/unrepeatable.antlrtree.txt b/grammar/testData/diagnostics/annotations/options/unrepeatable.antlrtree.txt index 4e143eb53..3f3286c1e 100644 --- a/grammar/testData/diagnostics/annotations/options/unrepeatable.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/options/unrepeatable.antlrtree.txt @@ -1,4 +1,5 @@ -File: unrepeatable.kt - dea40a1e0e173a635244f58a88658803 +File: unrepeatable.kt - b24537e53bdb1c8667f1df597993fb10 + NL("\n") packageHeader importList topLevelObject @@ -720,6 +721,4 @@ File: unrepeatable.kt - dea40a1e0e173a635244f58a88658803 literalConstant IntegerLiteral("2") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/byte.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/byte.antlrtree.txt new file mode 100644 index 000000000..3a47cbdfe --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/byte.antlrtree.txt @@ -0,0 +1,197 @@ +File: byte.kt - e776c986a5d93145467dd0cbe41b6812 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("128") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("128") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/char.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/char.antlrtree.txt new file mode 100644 index 000000000..6345d760b --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/char.antlrtree.txt @@ -0,0 +1,381 @@ +File: char.kt - 4ae4718936a749169584c3a77e907946 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Char") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Char") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b6") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b7") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b8") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'c'") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("99") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toChar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'c'") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'c'") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'c'") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'c'") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'c'") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toDouble") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'c'") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/double.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/double.antlrtree.txt new file mode 100644 index 000000000..3a820d2d0 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/double.antlrtree.txt @@ -0,0 +1,197 @@ +File: double.kt - de48df805ce1ac71f3f1a922c61a0d45 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toDouble") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.7976931348623157E309") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toDouble") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.7976931348623157E309") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/andAnd.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/andAnd.antlrtree.txt new file mode 100644 index 000000000..f7c09744e --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/andAnd.antlrtree.txt @@ -0,0 +1,146 @@ +File: andAnd.kt - f66a5de03848391037e6114a85e69682 + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/boolean.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/boolean.antlrtree.txt new file mode 100644 index 000000000..73adaeb3d --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/boolean.antlrtree.txt @@ -0,0 +1,179 @@ +File: boolean.kt - 9d6b0bb7eda412e50d56f008ba8a8739 + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + simpleIdentifier + Identifier("and") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + simpleIdentifier + Identifier("or") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + simpleIdentifier + Identifier("xor") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/char.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/char.antlrtree.txt new file mode 100644 index 000000000..c5f26a0b5 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/char.antlrtree.txt @@ -0,0 +1,89 @@ +File: char.kt - 8aae8e2efa53937d91bb1b07060dc0c7 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("c1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Char") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'a'") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'a'") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/compositeCallBinary.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/compositeCallBinary.antlrtree.txt new file mode 100644 index 000000000..97ab964ba --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/compositeCallBinary.antlrtree.txt @@ -0,0 +1,279 @@ +File: compositeCallBinary.kt - 67d17cfe2d9faff61a125ae9536c06f6 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("p1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("plus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("minus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("times") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/divide.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/divide.antlrtree.txt new file mode 100644 index 000000000..91652794d --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/divide.antlrtree.txt @@ -0,0 +1,209 @@ +File: divide.kt - 2fae9823d822eceb8b6d3eb86e661dd8 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("l") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/double.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/double.antlrtree.txt new file mode 100644 index 000000000..6cba035da --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/double.antlrtree.txt @@ -0,0 +1,172 @@ +File: double.kt - 43c29b1238c449e4d6b69976d05ebb28 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("d1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("d2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("d3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/eqeq.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/eqeq.antlrtree.txt new file mode 100644 index 000000000..fd7ac5338 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/eqeq.antlrtree.txt @@ -0,0 +1,306 @@ +File: eqeq.kt - 6c3fa81a7d277bc49b7061db8d09e53e + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'b'") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'a'") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("b") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/escapedString.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/escapedString.antlrtree.txt new file mode 100644 index 000000000..c38f5d75a --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/escapedString.antlrtree.txt @@ -0,0 +1,90 @@ +File: escapedString.kt - dcd1bdccab5f1a5b7dba135c938904ec + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("s1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("s1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrEscapedChar("\$") + lineStringContent + LineStrText("ab") + QUOTE_CLOSE(""") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/float.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/float.antlrtree.txt new file mode 100644 index 000000000..3fc3228b7 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/float.antlrtree.txt @@ -0,0 +1,217 @@ +File: float.kt - ffbcf55ec7411b3044826b5062b3d8fe + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("d1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("d2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("d3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/gt.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/gt.antlrtree.txt new file mode 100644 index 000000000..00aec25bc --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/gt.antlrtree.txt @@ -0,0 +1,395 @@ +File: gt.kt - 9a3ae7fdbb6e190f0cee7bf2424291ea + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b6") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'b'") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'a'") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("b") + QUOTE_CLOSE(""") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/gteq.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/gteq.antlrtree.txt new file mode 100644 index 000000000..ad27e0212 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/gteq.antlrtree.txt @@ -0,0 +1,238 @@ +File: gteq.kt - 9f17db63b6a2838172a4aa20d67db37e + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + comparisonOperator + GE(">=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + comparisonOperator + GE(">=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + comparisonOperator + GE(">=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + comparisonOperator + GE(">=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/intrincics.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/intrincics.antlrtree.txt new file mode 100644 index 000000000..b4e853b3b --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/intrincics.antlrtree.txt @@ -0,0 +1,301 @@ +File: intrincics.kt - 23a75d74013b8964d5f94e5a7a63e66f + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("p1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + simpleIdentifier + Identifier("p2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + COMMA(",") + classParameter + simpleIdentifier + Identifier("p3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + COMMA(",") + classParameter + simpleIdentifier + Identifier("p4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + simpleIdentifier + Identifier("p5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + simpleIdentifier + Identifier("p6") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + simpleIdentifier + Identifier("or") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + simpleIdentifier + Identifier("and") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + simpleIdentifier + Identifier("xor") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + simpleIdentifier + Identifier("shl") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + simpleIdentifier + Identifier("shr") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + simpleIdentifier + Identifier("ushr") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/labeled.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/labeled.antlrtree.txt new file mode 100644 index 000000000..6c2c2de9b --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/labeled.antlrtree.txt @@ -0,0 +1,85 @@ +File: labeled.kt - 3c5ef0f25e1d249949712999356d2e2f + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("A") + AT_POST_WS("@ ") + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/long.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/long.antlrtree.txt new file mode 100644 index 000000000..f5ef7439c --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/long.antlrtree.txt @@ -0,0 +1,217 @@ +File: long.kt - d2e94634d31fb68678aac033b5e11575 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("l1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("l2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("l3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Long") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Long") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/lt.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/lt.antlrtree.txt new file mode 100644 index 000000000..ecdb1debc --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/lt.antlrtree.txt @@ -0,0 +1,395 @@ +File: lt.kt - 469af778e8e176e7b338d1af74da99ae + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b6") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'b'") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'a'") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("b") + QUOTE_CLOSE(""") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/lteq.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/lteq.antlrtree.txt new file mode 100644 index 000000000..addbfab5b --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/lteq.antlrtree.txt @@ -0,0 +1,238 @@ +File: lteq.kt - 72e2b0edb325343dad5ca058eec7c1d1 + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + comparisonOperator + LE("<=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + comparisonOperator + LE("<=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + comparisonOperator + LE("<=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + comparisonOperator + LE("<=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/maxValue.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/maxValue.antlrtree.txt new file mode 100644 index 000000000..4bfa582eb --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/maxValue.antlrtree.txt @@ -0,0 +1,431 @@ +File: maxValue.kt - 5245575f8194b23e36ee0bc8d8601bed + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("p1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p6") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("p1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("p2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Short") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("p3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Integer") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("p4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Integer") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("p5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Integer") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("p6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Long") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/maxValueByte.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/maxValueByte.antlrtree.txt new file mode 100644 index 000000000..ae730f25a --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/maxValueByte.antlrtree.txt @@ -0,0 +1,349 @@ +File: maxValueByte.kt - fe3605cc9785bdd6ebdc8c2c9a601a43 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("p1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("p1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("p2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("p3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("p4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("p5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/maxValueInt.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/maxValueInt.antlrtree.txt new file mode 100644 index 000000000..39f726ebc --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/maxValueInt.antlrtree.txt @@ -0,0 +1,349 @@ +File: maxValueInt.kt - fed6788bd028887098938720e4c1bbfb + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("p1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("p1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Integer") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("p2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("p3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Integer") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("p4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("p5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/miltiply.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/miltiply.antlrtree.txt new file mode 100644 index 000000000..90ce87f71 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/miltiply.antlrtree.txt @@ -0,0 +1,209 @@ +File: miltiply.kt - f77f6daea621ff58b9ead1f94572f810 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("l") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/minus.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/minus.antlrtree.txt new file mode 100644 index 000000000..57b52bebf --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/minus.antlrtree.txt @@ -0,0 +1,213 @@ +File: minus.kt - e93576e5f108394b725b09d36b1baeda + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("l") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/mod.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/mod.antlrtree.txt new file mode 100644 index 000000000..766597acc --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/mod.antlrtree.txt @@ -0,0 +1,209 @@ +File: mod.kt - c27ac8e53612dfb992255cb197b43122 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("l") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/multilineString.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/multilineString.antlrtree.txt new file mode 100644 index 000000000..ff2153d44 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/multilineString.antlrtree.txt @@ -0,0 +1,101 @@ +File: multilineString.kt - eda60f6535bdfe248a99819046d20221 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("s1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("s1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + multiLineStringLiteral + TRIPLE_QUOTE_OPEN(""""") + multiLineStringContent + MultiLineStrText("a") + TRIPLE_QUOTE_CLOSE(""""") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("b") + QUOTE_CLOSE(""") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/not.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/not.antlrtree.txt new file mode 100644 index 000000000..1480775a1 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/not.antlrtree.txt @@ -0,0 +1,134 @@ +File: not.kt - 0615039e0d79b59f73e9a6eb4e18904a + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + excl + EXCL_NO_WS("!") + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + excl + EXCL_NO_WS("!") + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/noteq.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/noteq.antlrtree.txt new file mode 100644 index 000000000..e73c8d1b4 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/noteq.antlrtree.txt @@ -0,0 +1,306 @@ +File: noteq.kt - c96bb5b6cf32bf72a34f00c39e2d015e + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'b'") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'a'") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("b") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/orOr.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/orOr.antlrtree.txt new file mode 100644 index 000000000..082155bb5 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/orOr.antlrtree.txt @@ -0,0 +1,148 @@ +File: orOr.kt - 2d49e809daaa1485f0155aa0af816edd + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/paranthesized.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/paranthesized.antlrtree.txt new file mode 100644 index 000000000..a2d530a75 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/paranthesized.antlrtree.txt @@ -0,0 +1,116 @@ +File: paranthesized.kt - 592d0cc74402e3116314768fc94973c1 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/plus.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/plus.antlrtree.txt new file mode 100644 index 000000000..2af7ddd68 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/plus.antlrtree.txt @@ -0,0 +1,213 @@ +File: plus.kt - ab1669a833e7bfffe53c548bd3c3e28f + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("l") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/simpleCallBinary.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/simpleCallBinary.antlrtree.txt new file mode 100644 index 000000000..f1386514d --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/simpleCallBinary.antlrtree.txt @@ -0,0 +1,359 @@ +File: simpleCallBinary.kt - 894dcf6905c522d7542de79ce8382d28 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("p1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("p5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("plus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("minus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("times") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("div") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("rem") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/stringPlusInt.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/stringPlusInt.antlrtree.txt new file mode 100644 index 000000000..8e15b79ac --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/stringPlusInt.antlrtree.txt @@ -0,0 +1,97 @@ +File: stringPlusInt.kt - f32bdf4f08b81c1c2f6b8ad2036317f8 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("s1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("s1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/stringTemplate.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/stringTemplate.antlrtree.txt new file mode 100644 index 000000000..1950df8c6 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/stringTemplate.antlrtree.txt @@ -0,0 +1,263 @@ +File: stringTemplate.kt - 7253542f06aa02a3e5347d3127804b21 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("s1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("s2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("s3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("s4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("s1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + lineStringContent + LineStrRef("$i") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("s2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + lineStringContent + LineStrRef("$i") + lineStringContent + LineStrText(" b") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("s3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrRef("$i") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("s4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + lineStringExpression + LineStrExprStart("${") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + RCURL("}") + lineStringContent + LineStrText("a") + lineStringContent + LineStrRef("$i") + QUOTE_CLOSE(""") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/strings.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/strings.antlrtree.txt new file mode 100644 index 000000000..076a0d79b --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/strings.antlrtree.txt @@ -0,0 +1,182 @@ +File: strings.kt - 0f951f87bbf84d0182dc46633d75d696 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("s1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("s2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("s1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("b") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("s2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + lineStringContent + LineStrRef("$i") + QUOTE_CLOSE(""") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/unaryMinus.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/unaryMinus.antlrtree.txt new file mode 100644 index 000000000..4568d4d3e --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/unaryMinus.antlrtree.txt @@ -0,0 +1,270 @@ +File: unaryMinus.kt - 572571cc0d3a577f577a31ac30ff78ab + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b6") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/expressions/unaryPlus.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/expressions/unaryPlus.antlrtree.txt new file mode 100644 index 000000000..f01d5bd43 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/expressions/unaryPlus.antlrtree.txt @@ -0,0 +1,270 @@ +File: unaryPlus.kt - 7477ff18e3805e568a72649fe36ce241 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b6") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + ADD("+") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + ADD("+") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + ADD("+") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + ADD("+") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + ADD("+") + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + ADD("+") + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/float.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/float.antlrtree.txt new file mode 100644 index 000000000..a704466f2 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/float.antlrtree.txt @@ -0,0 +1,134 @@ +File: float.kt - fdb7f36d0cfb537b5c4d68e09a2e26a9 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/int.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/int.antlrtree.txt new file mode 100644 index 000000000..94873f9d1 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/int.antlrtree.txt @@ -0,0 +1,197 @@ +File: int.kt - b6cb0606448b4722411f6131c838dc3d + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2147483648") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2147483648") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/long.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/long.antlrtree.txt new file mode 100644 index 000000000..e23b9e204 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/long.antlrtree.txt @@ -0,0 +1,123 @@ +File: long.kt - c43bb1e6d2ab98c3e8cf40af1d87aa6a + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/parameters/short.antlrtree.txt b/grammar/testData/diagnostics/annotations/parameters/short.antlrtree.txt new file mode 100644 index 000000000..79d92af82 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/parameters/short.antlrtree.txt @@ -0,0 +1,197 @@ +File: short.kt - fa551badda9447e069c2601426e7c6d0 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("b4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("32768") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("32768") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/rendering/conflictingOverloads.antlrtree.txt b/grammar/testData/diagnostics/annotations/rendering/conflictingOverloads.antlrtree.txt index e318949e8..d149fc004 100644 --- a/grammar/testData/diagnostics/annotations/rendering/conflictingOverloads.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/rendering/conflictingOverloads.antlrtree.txt @@ -285,6 +285,4 @@ File: conflictingOverloads.kt - 535ae0aef70d69a12e3654990d9239cf semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/rendering/memberProjectedOut.antlrtree.txt b/grammar/testData/diagnostics/annotations/rendering/memberProjectedOut.antlrtree.txt index 0913ad617..b8174efad 100644 --- a/grammar/testData/diagnostics/annotations/rendering/memberProjectedOut.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/rendering/memberProjectedOut.antlrtree.txt @@ -1,5 +1,4 @@ -File: memberProjectedOut.kt - e59f51e72cf39170f6cc79416283ceb8 - NL("\n") +File: memberProjectedOut.kt - b6ecd261a41e4d7e08839bf80905b7dd NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/annotations/rendering/multipleInheritedDefaults.antlrtree.txt b/grammar/testData/diagnostics/annotations/rendering/multipleInheritedDefaults.antlrtree.txt index a3baedc64..43d021123 100644 --- a/grammar/testData/diagnostics/annotations/rendering/multipleInheritedDefaults.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/rendering/multipleInheritedDefaults.antlrtree.txt @@ -543,6 +543,4 @@ File: multipleInheritedDefaults.kt - e12f15e23054bd42f3d7251cd77b361b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/rendering/notImplementedMembersAroundJava.main.antlrtree.txt b/grammar/testData/diagnostics/annotations/rendering/notImplementedMembersAroundJava.main.antlrtree.txt new file mode 100644 index 000000000..5e592faa6 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/rendering/notImplementedMembersAroundJava.main.antlrtree.txt @@ -0,0 +1,97 @@ +File: notImplementedMembersAroundJava.main.kt - c59db3114f1cbefd23b0ca988b04c20e + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("KotlinTestSuccess") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("PlaceholderException") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + RPAREN(")") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("KotlinTestFailure") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ExceptionWithAbstractMessage") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("FAIL") + QUOTE_CLOSE(""") + RPAREN(")") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/rendering/tooManyArguments.antlrtree.txt b/grammar/testData/diagnostics/annotations/rendering/tooManyArguments.antlrtree.txt index 06a28562c..991365fa2 100644 --- a/grammar/testData/diagnostics/annotations/rendering/tooManyArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/rendering/tooManyArguments.antlrtree.txt @@ -244,6 +244,4 @@ File: tooManyArguments.kt - 904e5e80fa960610237a124e4d1e17d0 literalConstant IntegerLiteral("15") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/rendering/typeMismatchDueToTypeProjections.antlrtree.txt b/grammar/testData/diagnostics/annotations/rendering/typeMismatchDueToTypeProjections.antlrtree.txt index 200872b6f..3f1c98fce 100644 --- a/grammar/testData/diagnostics/annotations/rendering/typeMismatchDueToTypeProjections.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/rendering/typeMismatchDueToTypeProjections.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeMismatchDueToTypeProjections.kt - 659a655eddb3cc612129b598043b894a - NL("\n") +File: typeMismatchDueToTypeProjections.kt - a698dbc3f0dc874445f262155c2007e6 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/annotations/rendering/unusedValue.antlrtree.txt b/grammar/testData/diagnostics/annotations/rendering/unusedValue.antlrtree.txt index 636b50ff9..b0766e791 100644 --- a/grammar/testData/diagnostics/annotations/rendering/unusedValue.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/rendering/unusedValue.antlrtree.txt @@ -1,4 +1,4 @@ -File: unusedValue.kt - b3f9063aa46624c3eb298690ef9ef586 +File: unusedValue.kt - 70a616bf55f06f0dbabce407f0341b0b NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_5.KR.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_5.KR.antlrtree.txt new file mode 100644 index 000000000..10a01fea3 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_5.KR.antlrtree.txt @@ -0,0 +1,152 @@ +File: containerAndAnnotationAreBothApplied_1_5.KR.kt - 394692ab590d74c67153e777168751e3 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Repeatable") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KR") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationRetention") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("RUNTIME") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("KR") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Container") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KR") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_5.KS.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_5.KS.antlrtree.txt new file mode 100644 index 000000000..99bbfc473 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_5.KS.antlrtree.txt @@ -0,0 +1,152 @@ +File: containerAndAnnotationAreBothApplied_1_5.KS.kt - adca0c8f2e4064f18c96114c02612030 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Repeatable") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KS") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationRetention") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("SOURCE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("KS") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Container") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KS") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_5.test.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_5.test.antlrtree.txt new file mode 100644 index 000000000..d995cc8dd --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_5.test.antlrtree.txt @@ -0,0 +1,1498 @@ +File: containerAndAnnotationAreBothApplied_1_5.test.kt - c8741c76a228e1967b0d821a4eb2e9f0 + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("jr1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("jr2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JR") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("jr3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JR") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("jr4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JR") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JR") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("jr5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("js1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("js2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JS") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("js3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JS") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("js4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JS") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JS") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("js5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + RSQUARE("]") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("kr1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + RSQUARE("]") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("kr2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KR") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RSQUARE("]") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("kr3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KR") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RSQUARE("]") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("kr4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KR") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KR") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RSQUARE("]") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("kr5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + RSQUARE("]") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("ks1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + RSQUARE("]") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("ks2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KS") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RSQUARE("]") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("ks3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KS") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RSQUARE("]") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("ks4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KS") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KS") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RSQUARE("]") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("ks5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_6.KR.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_6.KR.antlrtree.txt new file mode 100644 index 000000000..6e5a2068c --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_6.KR.antlrtree.txt @@ -0,0 +1,152 @@ +File: containerAndAnnotationAreBothApplied_1_6.KR.kt - 394692ab590d74c67153e777168751e3 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Repeatable") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KR") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationRetention") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("RUNTIME") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("KR") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Container") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KR") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_6.KS.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_6.KS.antlrtree.txt new file mode 100644 index 000000000..ed2116250 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_6.KS.antlrtree.txt @@ -0,0 +1,152 @@ +File: containerAndAnnotationAreBothApplied_1_6.KS.kt - adca0c8f2e4064f18c96114c02612030 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Repeatable") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KS") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Container") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationRetention") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("SOURCE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("KS") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Container") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KS") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_6.test.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_6.test.antlrtree.txt new file mode 100644 index 000000000..16784ffb5 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/containerAndAnnotationAreBothApplied_1_6.test.antlrtree.txt @@ -0,0 +1,1498 @@ +File: containerAndAnnotationAreBothApplied_1_6.test.kt - c8741c76a228e1967b0d821a4eb2e9f0 + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("jr1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("jr2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JR") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("jr3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JR") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("jr4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JR") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JR") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("jr5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("js1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("js2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JS") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("js3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JS") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("js4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JS") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JS") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("js5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + RSQUARE("]") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("kr1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + RSQUARE("]") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("kr2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KR") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RSQUARE("]") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("kr3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KR") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RSQUARE("]") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("kr4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KR") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KR") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KR") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RSQUARE("]") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("kr5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + RSQUARE("]") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("ks1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + RSQUARE("]") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("ks2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KS") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RSQUARE("]") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("ks3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KS") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RSQUARE("]") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("ks4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KS") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Container") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KS") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KS") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RSQUARE("]") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("ks5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/containerArguments_1_5.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/containerArguments_1_5.antlrtree.txt new file mode 100644 index 000000000..e04f0e59f --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/containerArguments_1_5.antlrtree.txt @@ -0,0 +1,1110 @@ +File: containerArguments_1_5.kt - 45e860ad37d9e72c4a3f0f6a31726862 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("java") + DOT(".") + simpleIdentifier + Identifier("lang") + DOT(".") + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleIdentifier + Identifier("Repeatable") + importAlias + AS("as") + simpleIdentifier + Identifier("R") + semi + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A2") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A2") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A3") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C4") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A4") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("notValue") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A4") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C5") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A5") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C5") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A5") + RANGLE(">") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("irrelevant") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C6") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A6") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C6") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("irrelevant") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A6") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + RSQUARE("]") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A7") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A7") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A7") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B1") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B2") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B2") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + RSQUARE("]") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B3") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B3") + RANGLE(">") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("other1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("other2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D4") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B4") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("value1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B4") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + RSQUARE("]") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B4") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/containerArguments_1_6.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/containerArguments_1_6.antlrtree.txt new file mode 100644 index 000000000..b95b0a9b3 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/containerArguments_1_6.antlrtree.txt @@ -0,0 +1,1110 @@ +File: containerArguments_1_6.kt - 5e225c4cc1ac7dc0366c6ea671578081 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("java") + DOT(".") + simpleIdentifier + Identifier("lang") + DOT(".") + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleIdentifier + Identifier("Repeatable") + importAlias + AS("as") + simpleIdentifier + Identifier("R") + semi + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A2") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A2") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A3") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C4") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A4") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("notValue") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A4") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C5") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A5") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C5") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A5") + RANGLE(">") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("irrelevant") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C6") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A6") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C6") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("irrelevant") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A6") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + RSQUARE("]") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A7") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A7") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A7") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B1") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B2") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B2") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + RSQUARE("]") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B3") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B3") + RANGLE(">") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("other1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("other2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D4") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B4") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("value1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B4") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + RSQUARE("]") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B4") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/containerRetention_1_5.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/containerRetention_1_5.antlrtree.txt new file mode 100644 index 000000000..643adb56b --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/containerRetention_1_5.antlrtree.txt @@ -0,0 +1,841 @@ +File: containerRetention_1_5.kt - 4bed71c1a4943a379c86e7e4dadf2249 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("java") + DOT(".") + simpleIdentifier + Identifier("lang") + DOT(".") + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleIdentifier + Identifier("Repeatable") + importAlias + AS("as") + simpleIdentifier + Identifier("R") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleIdentifier + Identifier("AnnotationRetention") + DOT(".") + MULT("*") + semi + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("RUNTIME") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A1") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BINARY") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A1") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BINARY") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A2") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SOURCE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A2") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A3") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SOURCE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A3") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B1") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("RUNTIME") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B1") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SOURCE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B2") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BINARY") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B2") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BINARY") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B3") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B3") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/containerRetention_1_6.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/containerRetention_1_6.antlrtree.txt new file mode 100644 index 000000000..61507bd0b --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/containerRetention_1_6.antlrtree.txt @@ -0,0 +1,841 @@ +File: containerRetention_1_6.kt - 4d03b4ec3b54bd01444582456e5e1e1d + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("java") + DOT(".") + simpleIdentifier + Identifier("lang") + DOT(".") + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleIdentifier + Identifier("Repeatable") + importAlias + AS("as") + simpleIdentifier + Identifier("R") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleIdentifier + Identifier("AnnotationRetention") + DOT(".") + MULT("*") + semi + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("RUNTIME") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A1") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BINARY") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A1") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BINARY") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A2") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SOURCE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A2") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A3") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SOURCE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A3") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B1") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("RUNTIME") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B1") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SOURCE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B2") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BINARY") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B2") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("BINARY") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B3") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B3") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/containerTarget_1_6.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/containerTarget_1_6.antlrtree.txt new file mode 100644 index 000000000..dc9518d10 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/containerTarget_1_6.antlrtree.txt @@ -0,0 +1,1398 @@ +File: containerTarget_1_6.kt - b019af5d7e338395504d885d27b399e1 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("java") + DOT(".") + simpleIdentifier + Identifier("lang") + DOT(".") + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleIdentifier + Identifier("Repeatable") + importAlias + AS("as") + simpleIdentifier + Identifier("R") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleIdentifier + Identifier("AnnotationTarget") + DOT(".") + MULT("*") + semi + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A1") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("FILE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A1") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CLASS") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A2") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CLASS") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("FUNCTION") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A2") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A3") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A3") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C4") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ANNOTATION_CLASS") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A4") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CLASS") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("C4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A4") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B1") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CLASS") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ANNOTATION_CLASS") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("PROPERTY") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("FIELD") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("LOCAL_VARIABLE") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("VALUE_PARAMETER") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CONSTRUCTOR") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("FUNCTION") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("PROPERTY_GETTER") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("PROPERTY_SETTER") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B1") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CLASS") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("FILE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B2") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CLASS") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B2") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CLASS") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B3") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ANNOTATION_CLASS") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B3") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("R") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D4") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B4") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ANNOTATION_CLASS") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CLASS") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TYPE_PARAMETER") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B4") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/javaRepeatableJvmTarget6.usage.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/javaRepeatableJvmTarget6.usage.antlrtree.txt new file mode 100644 index 000000000..1eb5c3510 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/javaRepeatableJvmTarget6.usage.antlrtree.txt @@ -0,0 +1,82 @@ +File: javaRepeatableJvmTarget6.usage.kt - 3cdb75b68dfefe3462c1826925c7631e + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Runtime") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Runtime") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("UseRuntime") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Clazz") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Clazz") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("UseClazz") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Source") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Source") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("UseSource") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/javaRepeatable_1_5.usage.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/javaRepeatable_1_5.usage.antlrtree.txt new file mode 100644 index 000000000..7a585eba3 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/javaRepeatable_1_5.usage.antlrtree.txt @@ -0,0 +1,82 @@ +File: javaRepeatable_1_5.usage.kt - 3cdb75b68dfefe3462c1826925c7631e + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Runtime") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Runtime") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("UseRuntime") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Clazz") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Clazz") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("UseClazz") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Source") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Source") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("UseSource") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/javaRepeatable_1_6.usage.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/javaRepeatable_1_6.usage.antlrtree.txt new file mode 100644 index 000000000..778d9f962 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/javaRepeatable_1_6.usage.antlrtree.txt @@ -0,0 +1,82 @@ +File: javaRepeatable_1_6.usage.kt - 3cdb75b68dfefe3462c1826925c7631e + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Runtime") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Runtime") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("UseRuntime") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Clazz") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Clazz") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("UseClazz") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Source") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Source") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("UseSource") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/javaUnrepeatable_1_5.usage.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/javaUnrepeatable_1_5.usage.antlrtree.txt new file mode 100644 index 000000000..11627871b --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/javaUnrepeatable_1_5.usage.antlrtree.txt @@ -0,0 +1,82 @@ +File: javaUnrepeatable_1_5.usage.kt - 3cdb75b68dfefe3462c1826925c7631e + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Runtime") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Runtime") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("UseRuntime") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Clazz") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Clazz") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("UseClazz") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Source") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Source") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("UseSource") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/javaUnrepeatable_1_6.usage.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/javaUnrepeatable_1_6.usage.antlrtree.txt new file mode 100644 index 000000000..64876ced6 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/javaUnrepeatable_1_6.usage.antlrtree.txt @@ -0,0 +1,82 @@ +File: javaUnrepeatable_1_6.usage.kt - 3cdb75b68dfefe3462c1826925c7631e + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Runtime") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Runtime") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("UseRuntime") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Clazz") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Clazz") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("UseClazz") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Source") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Source") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("UseSource") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/kotlinRepeatable_1_5.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/kotlinRepeatable_1_5.antlrtree.txt new file mode 100644 index 000000000..d61564382 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/kotlinRepeatable_1_5.antlrtree.txt @@ -0,0 +1,735 @@ +File: kotlinRepeatable_1_5.kt - dda019c058fd483aef425f2c0f6de954 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("repann") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationRetention") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("SOURCE") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("repann1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationRetention") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("SOURCE") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("repann2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationRetention") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("BINARY") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("binrepann") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("EXPRESSION") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationRetention") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("SOURCE") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("repexpr") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("repann") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("repann") + CLASS("class") + simpleIdentifier + Identifier("DoubleAnnotated") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("repann1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("repann1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("repann1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("TripleAnnotated") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("repann2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("repann2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("repann2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("repann2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("FourTimesAnnotated") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("binrepann") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("binrepann") + CLASS("class") + simpleIdentifier + Identifier("BinaryAnnotated") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("repann") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("repann") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("repann") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("repann") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("repexpr") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("repexpr") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/kotlinRepeatable_1_6.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/kotlinRepeatable_1_6.antlrtree.txt new file mode 100644 index 000000000..4d8655c22 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/kotlinRepeatable_1_6.antlrtree.txt @@ -0,0 +1,735 @@ +File: kotlinRepeatable_1_6.kt - 53d6ecc6b41404c34e50dbe07d4ef0e0 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("repann") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationRetention") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("SOURCE") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("repann1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationRetention") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("SOURCE") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("repann2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationRetention") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("BINARY") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("binrepann") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("EXPRESSION") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Retention") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationRetention") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("SOURCE") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("repexpr") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("repann") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("repann") + CLASS("class") + simpleIdentifier + Identifier("DoubleAnnotated") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("repann1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("repann1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("repann1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("TripleAnnotated") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("repann2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("repann2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("repann2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("repann2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + CLASS("class") + simpleIdentifier + Identifier("FourTimesAnnotated") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("binrepann") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("binrepann") + CLASS("class") + simpleIdentifier + Identifier("BinaryAnnotated") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("repann") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("repann") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("repann") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("repann") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("repexpr") + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("repexpr") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/nestedClassContainer_1_5.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/nestedClassContainer_1_5.antlrtree.txt new file mode 100644 index 000000000..4c88cf07a --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/nestedClassContainer_1_5.antlrtree.txt @@ -0,0 +1,274 @@ +File: nestedClassContainer_1_5.kt - 114c294ea2287e51a108fa02600fd88d + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A1") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Container") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Repeatable") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B1") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Container") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B1") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Repeatable") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Container") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B2") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/repeatable/nestedClassContainer_1_6.antlrtree.txt b/grammar/testData/diagnostics/annotations/repeatable/nestedClassContainer_1_6.antlrtree.txt new file mode 100644 index 000000000..f17da6ebc --- /dev/null +++ b/grammar/testData/diagnostics/annotations/repeatable/nestedClassContainer_1_6.antlrtree.txt @@ -0,0 +1,274 @@ +File: nestedClassContainer_1_6.kt - b2847750605222537fa9f26b2f5dda26 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A1") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Container") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Repeatable") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B1") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Container") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B1") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + ANNOTATION("annotation") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Repeatable") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("B2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Container") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("D2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B2") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/requireKotlin.antlrtree.txt b/grammar/testData/diagnostics/annotations/requireKotlin.antlrtree.txt new file mode 100644 index 000000000..5201d04dc --- /dev/null +++ b/grammar/testData/diagnostics/annotations/requireKotlin.antlrtree.txt @@ -0,0 +1,229 @@ +File: requireKotlin.kt - c51d541e584830b79f54e0fa0340bb5b + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("io") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + INTERNAL("internal") + DOT(".") + MULT("*") + semi + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("RequireKotlin") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1.x") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("IllegalVersion") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("RequireKotlin") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1.2") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("LegalMinimum") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("RequireKotlin") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1.2") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("versionKind") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("RequireKotlinVersionKind") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("COMPILER_VERSION") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("message") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Requires newer compiler version to be inlined correctly.") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("LegalStdLib") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/typeAnnotations.antlrtree.txt b/grammar/testData/diagnostics/annotations/typeAnnotations.antlrtree.txt index 5a60ca748..0b621a67b 100644 --- a/grammar/testData/diagnostics/annotations/typeAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/typeAnnotations.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeAnnotations.kt - 1240a2eb86213649e0683358edcd6d40 - NL("\n") +File: typeAnnotations.kt - eb134fcc1bb7521c4a5582546b9aa73e NL("\n") packageHeader importList @@ -516,5 +515,614 @@ File: typeAnnotations.kt - 1240a2eb86213649e0683358edcd6d40 literalConstant IntegerLiteral("42") semis - EOF("") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("TypeAnnWithArg") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("badArgs") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnnWithArg") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("unresolved") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("badArgsWithProjection") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + typeProjectionModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnnWithArg") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("unresolved") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BadArgsInTypeAlias") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnnWithArg") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("badArgsInTypeAlias") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BadArgsInTypeAlias") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("T") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("badArgsInTypeAliasInstance") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnnWithArg") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("arg") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("123") + RPAREN(")") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BadArgsInTypeParameter") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnnWithArg") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("arg") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("123") + RPAREN(")") + simpleIdentifier + Identifier("X") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BadArgsInRecursive") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Map") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnnWithArg") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnnWithArg") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BadArgsMultiple") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Map") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnnWithArg") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnnWithArg") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("arg") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("123") + RPAREN(")") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/typeArgumentsInAnnotation.antlrtree.txt b/grammar/testData/diagnostics/annotations/typeArgumentsInAnnotation.antlrtree.txt new file mode 100644 index 000000000..ee5bc41bf --- /dev/null +++ b/grammar/testData/diagnostics/annotations/typeArgumentsInAnnotation.antlrtree.txt @@ -0,0 +1,100 @@ +File: typeArgumentsInAnnotation.kt - 27d0413ec1bfc95ad11dbbc6df4f5f52 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/typeParameterAsAnnotation.antlrtree.txt b/grammar/testData/diagnostics/annotations/typeParameterAsAnnotation.antlrtree.txt index 33524cb1c..acd19d21b 100644 --- a/grammar/testData/diagnostics/annotations/typeParameterAsAnnotation.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/typeParameterAsAnnotation.antlrtree.txt @@ -1,4 +1,5 @@ -File: typeParameterAsAnnotation.kt - ded5f11ae32d4b04cf90d949b64a4f4b +File: typeParameterAsAnnotation.kt - 40aad75bdc5e7723917a1dcb08221ca7 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/annotations/typeUse/kt19455.antlrtree.txt b/grammar/testData/diagnostics/annotations/typeUse/kt19455.antlrtree.txt new file mode 100644 index 000000000..eeb8fb770 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/typeUse/kt19455.antlrtree.txt @@ -0,0 +1,188 @@ +File: kt19455.kt - 6e71b4d9159194c6002d87fa47c8c9d9 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("TypeAnn") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("TypeToken") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Test") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TypeToken") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnn") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TypeToken") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("TypeAnn") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/typeUse/kt25876.antlrtree.txt b/grammar/testData/diagnostics/annotations/typeUse/kt25876.antlrtree.txt new file mode 100644 index 000000000..281a209bc --- /dev/null +++ b/grammar/testData/diagnostics/annotations/typeUse/kt25876.antlrtree.txt @@ -0,0 +1,373 @@ +File: kt25876.kt - c329b9458eeb2121af460e53a5ed3ce6 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Anno") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Lorem") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ipsum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("dolor") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("sit") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("amet") + RPAREN(")") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Foo") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("o_O") + RPAREN(")") + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Throwable") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("O_o") + RPAREN(")") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/typeUse/kt45905.main.antlrtree.txt b/grammar/testData/diagnostics/annotations/typeUse/kt45905.main.antlrtree.txt new file mode 100644 index 000000000..fa76c80ba --- /dev/null +++ b/grammar/testData/diagnostics/annotations/typeUse/kt45905.main.antlrtree.txt @@ -0,0 +1,106 @@ +File: kt45905.main.kt - bc9dd515671da0ac9207068896502b53 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Temp") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("cascade") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("unresolved") + RSQUARE("]") + RPAREN(")") + NL("\n") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/typeUse/kt46173.antlrtree.txt b/grammar/testData/diagnostics/annotations/typeUse/kt46173.antlrtree.txt new file mode 100644 index 000000000..e2b2ebedf --- /dev/null +++ b/grammar/testData/diagnostics/annotations/typeUse/kt46173.antlrtree.txt @@ -0,0 +1,177 @@ +File: kt46173.kt - 3dda1bb1ffa51fba590da959bbe90899 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("some") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + asOperator + AS("as") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("6") + RPAREN(")") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/typeUse/kt47772.antlrtree.txt b/grammar/testData/diagnostics/annotations/typeUse/kt47772.antlrtree.txt new file mode 100644 index 000000000..0a2c3ab56 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/typeUse/kt47772.antlrtree.txt @@ -0,0 +1,285 @@ +File: kt47772.kt - 3ac33278a2377e2b31c9b468335bead2 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("CLASS") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Bad") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Good") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("materialize") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_error") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("materialize") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Bad") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_ok") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("materialize") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Good") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/typeUse/kt8325.antlrtree.txt b/grammar/testData/diagnostics/annotations/typeUse/kt8325.antlrtree.txt new file mode 100644 index 000000000..3991478e2 --- /dev/null +++ b/grammar/testData/diagnostics/annotations/typeUse/kt8325.antlrtree.txt @@ -0,0 +1,70 @@ +File: kt8325.kt - 5389ec2e4eed17e4c34a3d1b100198fa + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("__UNRESOLVED__") + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Any") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/typeUse/nonTypeUseAnnotationOnType.antlrtree.txt b/grammar/testData/diagnostics/annotations/typeUse/nonTypeUseAnnotationOnType.antlrtree.txt new file mode 100644 index 000000000..55aeba12c --- /dev/null +++ b/grammar/testData/diagnostics/annotations/typeUse/nonTypeUseAnnotationOnType.antlrtree.txt @@ -0,0 +1,450 @@ +File: nonTypeUseAnnotationOnType.kt - 4f611dc87e1a7993ecea64a9ca238d8a + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("PROPERTY_GETTER") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Ann") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Foo") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Any") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("TypeToken") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test_2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("TypeToken") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + asOperator + AS("as") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("test_4") + functionValueParameters + LPAREN("(") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Ann") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/annotations/unresolvedReferenceRange.antlrtree.txt b/grammar/testData/diagnostics/annotations/unresolvedReferenceRange.antlrtree.txt index 0c9877665..b55970872 100644 --- a/grammar/testData/diagnostics/annotations/unresolvedReferenceRange.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/unresolvedReferenceRange.antlrtree.txt @@ -157,6 +157,4 @@ File: unresolvedReferenceRange.kt - ffe052a3127bbbd2863fe86ff193f83e CLASS("class") simpleIdentifier Identifier("E") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/DelegateAnnotations.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/DelegateAnnotations.antlrtree.txt index ec70d290a..a212895a6 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/DelegateAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/DelegateAnnotations.antlrtree.txt @@ -1,4 +1,5 @@ -File: DelegateAnnotations.kt - 4103a3714be1a63bc7e0f7bcb1e69ea3 +File: DelegateAnnotations.kt - b90d2b27bddb2db077339294f07958f5 + NL("\n") packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/FieldAnnotations.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/FieldAnnotations.antlrtree.txt index 47163906c..757338f13 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/FieldAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/FieldAnnotations.antlrtree.txt @@ -1,4 +1,5 @@ -File: FieldAnnotations.kt - c0e5bc9f454be72b0989b17932002430 +File: FieldAnnotations.kt - 8ab52cad2a71743c355a494d062df32f + NL("\n") packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/GetterAnnotations.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/GetterAnnotations.antlrtree.txt index 90df2dbf8..cb9d9d643 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/GetterAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/GetterAnnotations.antlrtree.txt @@ -1,4 +1,5 @@ -File: GetterAnnotations.kt - aa8e266712439218f0e87ec05a7e9aed +File: GetterAnnotations.kt - 307bb5dbfe6bd5d578a5d2525e3ad402 + NL("\n") packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/ParamAnnotations.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/ParamAnnotations.antlrtree.txt index 29aa97a96..3c1321002 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/ParamAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/ParamAnnotations.antlrtree.txt @@ -1,4 +1,5 @@ -File: ParamAnnotations.kt - c78a1f3e5af513c726bf04cc6ec9a372 +File: ParamAnnotations.kt - f69899866f67fd37eeac2eee030c9082 + NL("\n") packageHeader importList topLevelObject @@ -309,5 +310,5 @@ File: ParamAnnotations.kt - c78a1f3e5af513c726bf04cc6ec9a372 Identifier("String") RPAREN(")") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/PropertyAnnotations.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/PropertyAnnotations.antlrtree.txt index 3a0086664..5e9576556 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/PropertyAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/PropertyAnnotations.antlrtree.txt @@ -1,4 +1,5 @@ -File: PropertyAnnotations.kt - ab13feb16307ef14d521d6dcee0cf60d +File: PropertyAnnotations.kt - ce9e45245f3b2cf546b5303326a91040 + NL("\n") packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/ReceiverAnnotations.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/ReceiverAnnotations.antlrtree.txt index fd2428c0c..0bc064b49 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/ReceiverAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/ReceiverAnnotations.antlrtree.txt @@ -1,4 +1,5 @@ -File: ReceiverAnnotations.kt - 964a18fba6d9ad145f6f069bc17c0b11 +File: ReceiverAnnotations.kt - c49279e772738c4c41071e97db52af7e + NL("\n") packageHeader importList topLevelObject @@ -391,5 +392,5 @@ File: ReceiverAnnotations.kt - 964a18fba6d9ad145f6f069bc17c0b11 LineStrText("A") QUOTE_CLOSE(""") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/SetterAnnotations.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/SetterAnnotations.antlrtree.txt index 5dce70e96..ea6cba3ac 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/SetterAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/SetterAnnotations.antlrtree.txt @@ -1,4 +1,5 @@ -File: SetterAnnotations.kt - 41626ba102c9d079176e9767293e1910 +File: SetterAnnotations.kt - 8b2506c2a0fe36f546644fd44fd1ae6c + NL("\n") packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/SparamAnnotations.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/SparamAnnotations.antlrtree.txt index 8c15ca961..8b916ab04 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/SparamAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/SparamAnnotations.antlrtree.txt @@ -1,4 +1,5 @@ -File: SparamAnnotations.kt - 50953aca88c4331e7229dcc2f118bd0f +File: SparamAnnotations.kt - 6650c9533bd9dc5f3bd4234adf332fc9 + NL("\n") packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/diagnosticFileAnnotationInWrongPlace.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/diagnosticFileAnnotationInWrongPlace.antlrtree.txt index f20f5c9db..43be41a4d 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/diagnosticFileAnnotationInWrongPlace.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/diagnosticFileAnnotationInWrongPlace.antlrtree.txt @@ -1,4 +1,5 @@ -File: diagnosticFileAnnotationInWrongPlace.kt - 186327329ecd7e51c4aa7f0b4b319422 (WITH_ERRORS) +File: diagnosticFileAnnotationInWrongPlace.kt - 23c0862ea6ea8ad1354f8300b6c2f064 (WITH_ERRORS) + NL("\n") packageHeader PACKAGE("package") identifier @@ -146,5 +147,5 @@ File: diagnosticFileAnnotationInWrongPlace.kt - 186327329ecd7e51c4aa7f0b4b319422 simpleIdentifier Identifier("baz") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/diagnosticWithoutPackage.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/diagnosticWithoutPackage.antlrtree.txt index 40fd643e1..269e4cfef 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/diagnosticWithoutPackage.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/diagnosticWithoutPackage.antlrtree.txt @@ -1,6 +1,6 @@ -File: diagnosticWithoutPackage.kt - f466c4a823f284e014f73d39b5528592 (WITH_ERRORS) +File: diagnosticWithoutPackage.kt - 665e1900a09aad073920df1c993bfc63 (WITH_ERRORS) fileAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") FILE("file") COLON(":") unescapedAnnotation @@ -86,5 +86,5 @@ File: diagnosticWithoutPackage.kt - f466c4a823f284e014f73d39b5528592 (WITH_ERROR simpleIdentifier Identifier("baz") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/diagnosticWithoutPackageWithSimpleAnnotation.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/diagnosticWithoutPackageWithSimpleAnnotation.antlrtree.txt index 33ff737ae..aa8bfab32 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/diagnosticWithoutPackageWithSimpleAnnotation.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/diagnosticWithoutPackageWithSimpleAnnotation.antlrtree.txt @@ -1,6 +1,6 @@ -File: diagnosticWithoutPackageWithSimpleAnnotation.kt - c6d7e4639b393a6a49bd17c8a441f36e (WITH_ERRORS) +File: diagnosticWithoutPackageWithSimpleAnnotation.kt - 12b92c3fdd620fa4b3433993ff7bb043 (WITH_ERRORS) fileAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") FILE("file") COLON(":") unescapedAnnotation @@ -83,6 +83,4 @@ File: diagnosticWithoutPackageWithSimpleAnnotation.kt - c6d7e4639b393a6a49bd17c8 CLASS("class") simpleIdentifier Identifier("baz") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/fileAnnotationWithoutColon_after.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/fileAnnotationWithoutColon_after.antlrtree.txt index ef46586c9..dc527dce3 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/fileAnnotationWithoutColon_after.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/fileAnnotationWithoutColon_after.antlrtree.txt @@ -166,6 +166,4 @@ File: fileAnnotationWithoutColon_after.kt - 8ea30e8cb2b0f7774881ecff6c1bfb05 (WI RPAREN(")") LCURL("{") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/fileAnnotationWithoutColon_before.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/fileAnnotationWithoutColon_before.antlrtree.txt index 8c9dbefc7..1be279422 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/fileAnnotationWithoutColon_before.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/fileAnnotationWithoutColon_before.antlrtree.txt @@ -166,6 +166,4 @@ File: fileAnnotationWithoutColon_before.kt - 2d5100a3132fb264d71cd340c28ffc17 (W RPAREN(")") LCURL("{") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt23992.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt23992.antlrtree.txt index df26fcf52..7a67832e9 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt23992.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt23992.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt23992.kt - 1b6b530aaa59e83f7086a6c57b9395c5 +File: kt23992.kt - 2aa0335248173391dcff9cf7ad9745e1 + NL("\n") NL("\n") NL("\n") packageHeader @@ -11,11 +12,48 @@ File: kt23992.kt - 1b6b530aaa59e83f7086a6c57b9395c5 Identifier("Foo") semis NL("\n") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") modifier classModifier ANNOTATION("annotation") @@ -108,6 +146,4 @@ File: kt23992.kt - 1b6b530aaa59e83f7086a6c57b9395c5 simpleUserType simpleIdentifier Identifier("Foo") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt23992_after.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt23992_after.antlrtree.txt index 3f3789a62..290b841a7 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt23992_after.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt23992_after.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt23992_after.kt - 5ed5a5a89137f279dbe66ca3163382c6 +File: kt23992_after.kt - 5933a7e9203bf02141c7f65c51105045 + NL("\n") NL("\n") NL("\n") packageHeader @@ -11,11 +12,48 @@ File: kt23992_after.kt - 5ed5a5a89137f279dbe66ca3163382c6 Identifier("Foo") semis NL("\n") - NL("\n") topLevelObject declaration classDeclaration modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") modifier classModifier ANNOTATION("annotation") @@ -109,5 +147,5 @@ File: kt23992_after.kt - 5ed5a5a89137f279dbe66ca3163382c6 simpleIdentifier Identifier("Foo") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt26638.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt26638.antlrtree.txt index c84e43127..ee4acbf33 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt26638.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt26638.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt26638.kt - a0202132556be783e90e10a6b90a7c65 +File: kt26638.kt - eb31a732c8a53befd18faf2e028564f5 NL("\n") NL("\n") NL("\n") @@ -579,5 +579,5 @@ File: kt26638.kt - a0202132556be783e90e10a6b90a7c65 LineStrText("foo") QUOTE_CLOSE(""") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt26638_after.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt26638_after.antlrtree.txt index 40872cd18..53c36c4a6 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt26638_after.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/kt26638_after.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt26638_after.kt - 8b51ed46f4574fee5ac87ed40cd24566 +File: kt26638_after.kt - b93eb605075ae5184c25f85313d0818c + NL("\n") NL("\n") NL("\n") NL("\n") @@ -578,6 +579,4 @@ File: kt26638_after.kt - 8b51ed46f4574fee5ac87ed40cd24566 lineStringContent LineStrText("foo") QUOTE_CLOSE(""") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/receiverUseSiteTargetOnExtensionFunction_after.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/receiverUseSiteTargetOnExtensionFunction_after.antlrtree.txt index 02e574b47..a259e2e30 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/receiverUseSiteTargetOnExtensionFunction_after.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/receiverUseSiteTargetOnExtensionFunction_after.antlrtree.txt @@ -245,6 +245,4 @@ File: receiverUseSiteTargetOnExtensionFunction_after.kt - 06236286d7edbc67e7afab LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/receiverUseSiteTargetOnExtensionFunction_before.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/receiverUseSiteTargetOnExtensionFunction_before.antlrtree.txt index d5b81e54f..fb014b4fa 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/receiverUseSiteTargetOnExtensionFunction_before.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/receiverUseSiteTargetOnExtensionFunction_before.antlrtree.txt @@ -245,6 +245,4 @@ File: receiverUseSiteTargetOnExtensionFunction_before.kt - 9697776c087debd9682bd LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/repeatable.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/repeatable.antlrtree.txt index aa4efc379..39fa294b3 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/repeatable.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/repeatable.antlrtree.txt @@ -1,4 +1,4 @@ -File: repeatable.kt - 8e1c48861b9a277ef9ed189133f489e5 +File: repeatable.kt - 9223e5cea4f13b75293d29adf2d357d5 packageHeader importList importHeader @@ -1277,5 +1277,5 @@ File: repeatable.kt - 8e1c48861b9a277ef9ed189133f489e5 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypesError.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypesError.antlrtree.txt index 67a8e78f4..06b48daeb 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypesError.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypesError.antlrtree.txt @@ -357,6 +357,4 @@ File: wrongParamAnnotationsOnTypesError.kt - a7324cb80d9dabdcb0b2d0e00cd61c02 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypes_after.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypes_after.antlrtree.txt index 934248253..4487057c4 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypes_after.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypes_after.antlrtree.txt @@ -357,6 +357,4 @@ File: wrongParamAnnotationsOnTypes_after.kt - a7324cb80d9dabdcb0b2d0e00cd61c02 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypes_before.antlrtree.txt b/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypes_before.antlrtree.txt index d5e8668dc..e6021308b 100644 --- a/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypes_before.antlrtree.txt +++ b/grammar/testData/diagnostics/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypes_before.antlrtree.txt @@ -357,6 +357,4 @@ File: wrongParamAnnotationsOnTypes_before.kt - 6651a11ca16ccd6b216da8aa412628db valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/backingField/FieldAsParam.antlrtree.txt b/grammar/testData/diagnostics/backingField/FieldAsParam.antlrtree.txt index 8d593a2a8..c6f3a081f 100644 --- a/grammar/testData/diagnostics/backingField/FieldAsParam.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/FieldAsParam.antlrtree.txt @@ -1,4 +1,5 @@ -File: FieldAsParam.kt - 8f1a6c09cdf70668088ef77e94f4ece3 +File: FieldAsParam.kt - 80782fe7051015476a9d7ced87f0d243 + NL("\n") packageHeader importList topLevelObject @@ -118,5 +119,5 @@ File: FieldAsParam.kt - 8f1a6c09cdf70668088ef77e94f4ece3 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/backingField/FieldAsProperty.antlrtree.txt b/grammar/testData/diagnostics/backingField/FieldAsProperty.antlrtree.txt index 48b7f77f9..f5c5c3b82 100644 --- a/grammar/testData/diagnostics/backingField/FieldAsProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/FieldAsProperty.antlrtree.txt @@ -138,6 +138,4 @@ File: FieldAsProperty.kt - 31d4787ab231e0cd519ac1e50f4c4880 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/backingField/FieldDerived.antlrtree.txt b/grammar/testData/diagnostics/backingField/FieldDerived.antlrtree.txt index b7719b8a5..b7c414349 100644 --- a/grammar/testData/diagnostics/backingField/FieldDerived.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/FieldDerived.antlrtree.txt @@ -310,6 +310,4 @@ File: FieldDerived.kt - b67c724a0dab794c40a48e3410adf1b2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/backingField/FieldInLocal.antlrtree.txt b/grammar/testData/diagnostics/backingField/FieldInLocal.antlrtree.txt index df013c717..42117a95b 100644 --- a/grammar/testData/diagnostics/backingField/FieldInLocal.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/FieldInLocal.antlrtree.txt @@ -199,6 +199,4 @@ File: FieldInLocal.kt - e430cfc432716b14e9276853c00120dd RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/backingField/FieldOnVal.antlrtree.txt b/grammar/testData/diagnostics/backingField/FieldOnVal.antlrtree.txt index 5fb13abd4..f94cccfd4 100644 --- a/grammar/testData/diagnostics/backingField/FieldOnVal.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/FieldOnVal.antlrtree.txt @@ -68,6 +68,4 @@ File: FieldOnVal.kt - 7aba73612b1ed5e7e639035ace165287 primaryExpression literalConstant IntegerLiteral("2") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/backingField/FieldReassignment_after.antlrtree.txt b/grammar/testData/diagnostics/backingField/FieldReassignment_after.antlrtree.txt index 3d4265846..9862fc4b3 100644 --- a/grammar/testData/diagnostics/backingField/FieldReassignment_after.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/FieldReassignment_after.antlrtree.txt @@ -111,6 +111,4 @@ File: FieldReassignment_after.kt - dc53a9173470485b3841c75ff67de691 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/backingField/FieldReassignment_before.antlrtree.txt b/grammar/testData/diagnostics/backingField/FieldReassignment_before.antlrtree.txt index 35b4266a1..4120c742a 100644 --- a/grammar/testData/diagnostics/backingField/FieldReassignment_before.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/FieldReassignment_before.antlrtree.txt @@ -1,4 +1,4 @@ -File: FieldReassignment_before.kt - 00eb09ecf711dcb522904e1d74bdced5 +File: FieldReassignment_before.kt - 1dbcc2afa7ba0c220bbf3b6edd7ac407 NL("\n") NL("\n") NL("\n") @@ -112,5 +112,5 @@ File: FieldReassignment_before.kt - 00eb09ecf711dcb522904e1d74bdced5 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/backingField/LocalDeclarations.antlrtree.txt b/grammar/testData/diagnostics/backingField/LocalDeclarations.antlrtree.txt index 7e3554199..f95e6084b 100644 --- a/grammar/testData/diagnostics/backingField/LocalDeclarations.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/LocalDeclarations.antlrtree.txt @@ -1,5 +1,4 @@ -File: LocalDeclarations.kt - 98b19b334fa5c858dd125645c2add2db - NL("\n") +File: LocalDeclarations.kt - cee81d460041d55f0fc599e268750ce9 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/backingField/SetterWithExplicitType.antlrtree.txt b/grammar/testData/diagnostics/backingField/SetterWithExplicitType.antlrtree.txt index 329a91cd4..1f7ee6e75 100644 --- a/grammar/testData/diagnostics/backingField/SetterWithExplicitType.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/SetterWithExplicitType.antlrtree.txt @@ -1,4 +1,5 @@ -File: SetterWithExplicitType.kt - 704675c91150945a3473b0b115d871fc +File: SetterWithExplicitType.kt - 87a4b7a20a3aa1e915c0fcafd19ea7a6 + NL("\n") NL("\n") NL("\n") packageHeader @@ -388,6 +389,4 @@ File: SetterWithExplicitType.kt - 704675c91150945a3473b0b115d871fc semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/backingField/kt782packageLevel.antlrtree.txt b/grammar/testData/diagnostics/backingField/kt782packageLevel.antlrtree.txt index 77adddff0..98b224349 100644 --- a/grammar/testData/diagnostics/backingField/kt782packageLevel.antlrtree.txt +++ b/grammar/testData/diagnostics/backingField/kt782packageLevel.antlrtree.txt @@ -232,6 +232,4 @@ File: kt782packageLevel.kt - 55315c0a241ddaeb38bfe53329a396a9 primaryExpression simpleIdentifier FIELD("field") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/bound/classVsStarImportedCompanion.1.antlrtree.txt b/grammar/testData/diagnostics/callableReference/bound/classVsStarImportedCompanion.1.antlrtree.txt index 1bdcceb13..4288999c5 100644 --- a/grammar/testData/diagnostics/callableReference/bound/classVsStarImportedCompanion.1.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/bound/classVsStarImportedCompanion.1.antlrtree.txt @@ -97,6 +97,4 @@ File: classVsStarImportedCompanion.1.kt - 5c599c5849fa5e9a7476ea4c461206b6 CLASS("class") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/bound/classVsStarImportedObject.1.antlrtree.txt b/grammar/testData/diagnostics/callableReference/bound/classVsStarImportedObject.1.antlrtree.txt index 8af031700..c8a3e551a 100644 --- a/grammar/testData/diagnostics/callableReference/bound/classVsStarImportedObject.1.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/bound/classVsStarImportedObject.1.antlrtree.txt @@ -155,6 +155,4 @@ File: classVsStarImportedObject.1.kt - 8b6d2962433567ed5ba969702b86a653 CLASS("class") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/bound/controlFlow.antlrtree.txt b/grammar/testData/diagnostics/callableReference/bound/controlFlow.antlrtree.txt index f707588bb..5c5ef2b23 100644 --- a/grammar/testData/diagnostics/callableReference/bound/controlFlow.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/bound/controlFlow.antlrtree.txt @@ -1,4 +1,6 @@ -File: controlFlow.kt - 1b61e43ef25968bf0b50cb7b2be7e22e +File: controlFlow.kt - 5eec05cbf663430d54c244381241f9ab + NL("\n") + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/callableReference/bound/functionCallWithoutArguments.antlrtree.txt b/grammar/testData/diagnostics/callableReference/bound/functionCallWithoutArguments.antlrtree.txt index f2a71a899..c80028d9f 100644 --- a/grammar/testData/diagnostics/callableReference/bound/functionCallWithoutArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/bound/functionCallWithoutArguments.antlrtree.txt @@ -1,4 +1,5 @@ -File: functionCallWithoutArguments.kt - 965c22695081e269b347a4aa624a62d1 +File: functionCallWithoutArguments.kt - dcdac899c79ef63ed9e2c69dc4b73711 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/callableReference/bound/innerNested.antlrtree.txt b/grammar/testData/diagnostics/callableReference/bound/innerNested.antlrtree.txt index 06545dd3a..b9056f108 100644 --- a/grammar/testData/diagnostics/callableReference/bound/innerNested.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/bound/innerNested.antlrtree.txt @@ -1,4 +1,5 @@ -File: innerNested.kt - e23b950c19e040e580e37c673f12d2b8 +File: innerNested.kt - 8a3e91d08c176fbb018099be36cf06e3 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/callableReference/bound/kt12843.antlrtree.txt b/grammar/testData/diagnostics/callableReference/bound/kt12843.antlrtree.txt index 6746b9f9e..93c0458f7 100644 --- a/grammar/testData/diagnostics/callableReference/bound/kt12843.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/bound/kt12843.antlrtree.txt @@ -124,6 +124,4 @@ File: kt12843.kt - 0189a91ef3f3736ce80f3fa9066d257e simpleIdentifier Identifier("foo") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/bound/reservedExpressionSyntax2.antlrtree.txt b/grammar/testData/diagnostics/callableReference/bound/reservedExpressionSyntax2.antlrtree.txt index 432243479..b072f8392 100644 --- a/grammar/testData/diagnostics/callableReference/bound/reservedExpressionSyntax2.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/bound/reservedExpressionSyntax2.antlrtree.txt @@ -1,4 +1,4 @@ -File: reservedExpressionSyntax2.kt - 8516468a449a098c82deb70a1c984daf (WITH_ERRORS) +File: reservedExpressionSyntax2.kt - c6161ed7accbd61a559b293619cbfd74 (WITH_ERRORS) NL("\n") packageHeader PACKAGE("package") @@ -109,5 +109,5 @@ File: reservedExpressionSyntax2.kt - 8516468a449a098c82deb70a1c984daf (WITH_ERRO COLONCOLON("::") Identifier("foo") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/bound/reservedExpressionSyntax3.antlrtree.txt b/grammar/testData/diagnostics/callableReference/bound/reservedExpressionSyntax3.antlrtree.txt index 854440795..0e5213ce4 100644 --- a/grammar/testData/diagnostics/callableReference/bound/reservedExpressionSyntax3.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/bound/reservedExpressionSyntax3.antlrtree.txt @@ -1,5 +1,4 @@ -File: reservedExpressionSyntax3.kt - 5dbc5d749b7ae1010452f8046096d4cc - NL("\n") +File: reservedExpressionSyntax3.kt - 9b68a5323ef9e3a5a97bcb1de93eec6f NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/callableReference/callableReferenceAssignmentToVar.lib.antlrtree.txt b/grammar/testData/diagnostics/callableReference/callableReferenceAssignmentToVar.lib.antlrtree.txt new file mode 100644 index 000000000..ba1547fc7 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/callableReferenceAssignmentToVar.lib.antlrtree.txt @@ -0,0 +1,60 @@ +File: callableReferenceAssignmentToVar.lib.kt - eee99ccf7983ff711d40d854b3367681 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("lib") + semi + NL("\n") + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/callableReferenceAssignmentToVar.main.antlrtree.txt b/grammar/testData/diagnostics/callableReference/callableReferenceAssignmentToVar.main.antlrtree.txt new file mode 100644 index 000000000..404832487 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/callableReferenceAssignmentToVar.main.antlrtree.txt @@ -0,0 +1,234 @@ +File: callableReferenceAssignmentToVar.main.kt - b8dfa39e899e46be010a27de06325540 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("lib") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Map") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("z") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("z") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/callableReferenceInWhenExpression.antlrtree.txt b/grammar/testData/diagnostics/callableReference/callableReferenceInWhenExpression.antlrtree.txt new file mode 100644 index 000000000..1b22e7a5c --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/callableReferenceInWhenExpression.antlrtree.txt @@ -0,0 +1,382 @@ +File: callableReferenceInWhenExpression.kt - 12940dc636823f43c1cab964885cb9a6 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KClass") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testOnKClass") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("rootClass") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KClass") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("rootClass") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Collection") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testOnClass") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("rootClass") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Class") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("rootClass") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Collection") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/callableReferenceWithMostSpecificGenericTypeParameter.antlrtree.txt b/grammar/testData/diagnostics/callableReference/callableReferenceWithMostSpecificGenericTypeParameter.antlrtree.txt new file mode 100644 index 000000000..d56cf7377 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/callableReferenceWithMostSpecificGenericTypeParameter.antlrtree.txt @@ -0,0 +1,214 @@ +File: callableReferenceWithMostSpecificGenericTypeParameter.kt - 4102cfc11cf5e6bdce6e2fb818018efb + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("list") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/compatibilityResolveWithVarargAndOperatorCall.antlrtree.txt b/grammar/testData/diagnostics/callableReference/compatibilityResolveWithVarargAndOperatorCall.antlrtree.txt index 9bf759831..48a2adfaf 100644 --- a/grammar/testData/diagnostics/callableReference/compatibilityResolveWithVarargAndOperatorCall.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/compatibilityResolveWithVarargAndOperatorCall.antlrtree.txt @@ -1,4 +1,5 @@ -File: compatibilityResolveWithVarargAndOperatorCall.kt - 612cda3a4200ab47b13ccafd0fe1c5a2 +File: compatibilityResolveWithVarargAndOperatorCall.kt - 285d11493583d904faba4755876b2c19 + NL("\n") NL("\n") NL("\n") packageHeader @@ -287,5 +288,5 @@ File: compatibilityResolveWithVarargAndOperatorCall.kt - 612cda3a4200ab47b13ccaf NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/constraintFromLHSWithCorrectDirection.antlrtree.txt b/grammar/testData/diagnostics/callableReference/constraintFromLHSWithCorrectDirection.antlrtree.txt index d70800e9c..55a4c60db 100644 --- a/grammar/testData/diagnostics/callableReference/constraintFromLHSWithCorrectDirection.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/constraintFromLHSWithCorrectDirection.antlrtree.txt @@ -1,5 +1,4 @@ -File: constraintFromLHSWithCorrectDirection.kt - 9c56ceacf2ab69ff8503e577f818dcee - NL("\n") +File: constraintFromLHSWithCorrectDirection.kt - e8847eeb27db2c924852656b51213689 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/correctCandidateWithCompatibilityForSeveralCandidates.antlrtree.txt b/grammar/testData/diagnostics/callableReference/correctCandidateWithCompatibilityForSeveralCandidates.antlrtree.txt index 0d29f5384..a148f2ec4 100644 --- a/grammar/testData/diagnostics/callableReference/correctCandidateWithCompatibilityForSeveralCandidates.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/correctCandidateWithCompatibilityForSeveralCandidates.antlrtree.txt @@ -420,6 +420,4 @@ File: correctCandidateWithCompatibilityForSeveralCandidates.kt - 4d936bdfd7af9a5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/deprecatedCompanionReceiverInParentheses.lib.antlrtree.txt b/grammar/testData/diagnostics/callableReference/deprecatedCompanionReceiverInParentheses.lib.antlrtree.txt new file mode 100644 index 000000000..35d4557ff --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/deprecatedCompanionReceiverInParentheses.lib.antlrtree.txt @@ -0,0 +1,140 @@ +File: deprecatedCompanionReceiverInParentheses.lib.kt - db5b1983a3b074b9d479ecfa32b1c427 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("abc") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("V") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Companion") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/deprecatedCompanionReceiverInParentheses.main.antlrtree.txt b/grammar/testData/diagnostics/callableReference/deprecatedCompanionReceiverInParentheses.main.antlrtree.txt new file mode 100644 index 000000000..86c025cce --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/deprecatedCompanionReceiverInParentheses.main.antlrtree.txt @@ -0,0 +1,834 @@ +File: deprecatedCompanionReceiverInParentheses.main.kt - 37ea5b1181f81aec512f361511014181 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("abc") + DOT(".") + simpleIdentifier + Identifier("V") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("abc") + DOT(".") + simpleIdentifier + Identifier("a") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KProperty0") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KProperty1") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("case") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("V") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("a") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("V") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("a") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("abc") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("V") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("a") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("abc") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("V") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("a") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("V") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("a") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("V") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("a") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("V") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("a") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/expectedTypeAsSubtypeOfFunctionType.antlrtree.txt b/grammar/testData/diagnostics/callableReference/expectedTypeAsSubtypeOfFunctionType.antlrtree.txt index 1c9a44199..8cc304770 100644 --- a/grammar/testData/diagnostics/callableReference/expectedTypeAsSubtypeOfFunctionType.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/expectedTypeAsSubtypeOfFunctionType.antlrtree.txt @@ -1,5 +1,4 @@ -File: expectedTypeAsSubtypeOfFunctionType.kt - f6e3537c3667cb8cb9144ec966061056 - NL("\n") +File: expectedTypeAsSubtypeOfFunctionType.kt - 7ed4cc52bf51dca8321a087d07b98380 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/function/abstractClassConstructors.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/abstractClassConstructors.antlrtree.txt index 8ddb48358..f9e321e81 100644 --- a/grammar/testData/diagnostics/callableReference/function/abstractClassConstructors.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/abstractClassConstructors.antlrtree.txt @@ -154,6 +154,4 @@ File: abstractClassConstructors.kt - 6647d55a7d284874e67e724a0c81c65e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/function/ambiguityTopLevelVsTopLevel.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/ambiguityTopLevelVsTopLevel.antlrtree.txt index 7629c205c..20b226052 100644 --- a/grammar/testData/diagnostics/callableReference/function/ambiguityTopLevelVsTopLevel.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/ambiguityTopLevelVsTopLevel.antlrtree.txt @@ -1,4 +1,4 @@ -File: ambiguityTopLevelVsTopLevel.kt - a2263987c21d149f28d7154d8b6aaa7f +File: ambiguityTopLevelVsTopLevel.kt - 7e447876c8a0f1ca4280bde8f42e2196 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/callableReference/function/annotationClassConstructor.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/annotationClassConstructor.antlrtree.txt index 55030c24d..b7d817b72 100644 --- a/grammar/testData/diagnostics/callableReference/function/annotationClassConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/annotationClassConstructor.antlrtree.txt @@ -1,4 +1,5 @@ -File: annotationClassConstructor.kt - 28d4b273a11d2c8a75f9e4a015eb17b1 +File: annotationClassConstructor.kt - e56481c2a080c843730a4f3429adc8d3 + NL("\n") packageHeader importList topLevelObject @@ -123,6 +124,4 @@ File: annotationClassConstructor.kt - 28d4b273a11d2c8a75f9e4a015eb17b1 simpleIdentifier Identifier("prop") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/function/classMemberVsConstructorLikeFunction.test.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/classMemberVsConstructorLikeFunction.test.antlrtree.txt index a532c5de2..72e7efa79 100644 --- a/grammar/testData/diagnostics/callableReference/function/classMemberVsConstructorLikeFunction.test.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/classMemberVsConstructorLikeFunction.test.antlrtree.txt @@ -119,6 +119,4 @@ File: classMemberVsConstructorLikeFunction.test.kt - f431a93e38aef36d456cb7d95c3 simpleIdentifier Identifier("length") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/function/extensionFromTopLevel.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/extensionFromTopLevel.antlrtree.txt index caa70e52a..df1106721 100644 --- a/grammar/testData/diagnostics/callableReference/function/extensionFromTopLevel.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/extensionFromTopLevel.antlrtree.txt @@ -1,4 +1,5 @@ -File: extensionFromTopLevel.kt - 6c850f8a06cbddc052f2ca2f5fe5f7fa +File: extensionFromTopLevel.kt - f845f3504b2960919ba0d19f1d1f1d21 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/function/extensionInClassDisallowed.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/extensionInClassDisallowed.antlrtree.txt index 5382c3609..5628ffb99 100644 --- a/grammar/testData/diagnostics/callableReference/function/extensionInClassDisallowed.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/extensionInClassDisallowed.antlrtree.txt @@ -1,4 +1,5 @@ -File: extensionInClassDisallowed.kt - 6111f4fb3e83286bf44eba7aa868baa0 +File: extensionInClassDisallowed.kt - 89df749f61007e5c480a51ec10875370 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/callableReference/function/extensionOnNullable.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/extensionOnNullable.antlrtree.txt index ac74e662e..ba7e3e220 100644 --- a/grammar/testData/diagnostics/callableReference/function/extensionOnNullable.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/extensionOnNullable.antlrtree.txt @@ -195,6 +195,4 @@ File: extensionOnNullable.kt - b4fecb2aaf36c04445c1db39e45d4f0c simpleIdentifier Identifier("foo") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/function/extensionToSupertype.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/extensionToSupertype.antlrtree.txt index 5babc99c6..3f2337bba 100644 --- a/grammar/testData/diagnostics/callableReference/function/extensionToSupertype.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/extensionToSupertype.antlrtree.txt @@ -1,5 +1,4 @@ -File: extensionToSupertype.kt - 217455231e37629fefb41ac92b3ae745 - NL("\n") +File: extensionToSupertype.kt - 495f77f427fe2187c47b8f34ded648a5 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/function/importedInnerConstructor.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/importedInnerConstructor.antlrtree.txt index 8371438b6..1a3006779 100644 --- a/grammar/testData/diagnostics/callableReference/function/importedInnerConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/importedInnerConstructor.antlrtree.txt @@ -1,4 +1,5 @@ -File: importedInnerConstructor.kt - 5cffe4d72d6c5e8a30156a13f9c916e5 +File: importedInnerConstructor.kt - 936c81bc990f28c36798c562716d8826 + NL("\n") NL("\n") packageHeader importList @@ -77,6 +78,4 @@ File: importedInnerConstructor.kt - 5cffe4d72d6c5e8a30156a13f9c916e5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/function/innerConstructorFromClass.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/innerConstructorFromClass.antlrtree.txt index a6387755f..2825a6092 100644 --- a/grammar/testData/diagnostics/callableReference/function/innerConstructorFromClass.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/innerConstructorFromClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: innerConstructorFromClass.kt - 5df68bebe30744d9b82489ab377c032a +File: innerConstructorFromClass.kt - 9d43b96700ddb0c54db935dbdee9d22d + NL("\n") NL("\n") NL("\n") NL("\n") @@ -524,6 +525,4 @@ File: innerConstructorFromClass.kt - 5df68bebe30744d9b82489ab377c032a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/function/innerConstructorFromExtension.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/innerConstructorFromExtension.antlrtree.txt index 2969ee4c8..a223d2f6b 100644 --- a/grammar/testData/diagnostics/callableReference/function/innerConstructorFromExtension.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/innerConstructorFromExtension.antlrtree.txt @@ -1,4 +1,5 @@ -File: innerConstructorFromExtension.kt - 4b6abd65496733781c5cfc0e045faedf +File: innerConstructorFromExtension.kt - 4fcdb2a2492e15c8a363a22755e1efe1 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/function/innerConstructorFromTopLevel.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/innerConstructorFromTopLevel.antlrtree.txt index 2cf39b1f4..4bf11de03 100644 --- a/grammar/testData/diagnostics/callableReference/function/innerConstructorFromTopLevel.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/innerConstructorFromTopLevel.antlrtree.txt @@ -1,4 +1,5 @@ -File: innerConstructorFromTopLevel.kt - b531e1e7fdf80f322891590dabc3d6c8 +File: innerConstructorFromTopLevel.kt - 041b69f7fd54cec867a3000e7dc6376b + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/function/lhsNotAClass.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/lhsNotAClass.antlrtree.txt index b833ba5af..4ac48baec 100644 --- a/grammar/testData/diagnostics/callableReference/function/lhsNotAClass.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/lhsNotAClass.antlrtree.txt @@ -1,6 +1,4 @@ -File: lhsNotAClass.kt - f7bc9712bfca75ad18fbdd186a3abdb1 - NL("\n") - NL("\n") +File: lhsNotAClass.kt - 0e7bfc8278ea4a959154b4887fbc5bff packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/callableReference/function/localNamedFun.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/localNamedFun.antlrtree.txt index 87918ace9..d66e7cc97 100644 --- a/grammar/testData/diagnostics/callableReference/function/localNamedFun.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/localNamedFun.antlrtree.txt @@ -1,4 +1,5 @@ -File: localNamedFun.kt - e6ea97bdac81ed7643342323f0b0cfb6 +File: localNamedFun.kt - 2f1ae34859ca633be81f1e17d4fdea72 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/function/localNamedFunFromExtensionInLocalClass.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/localNamedFunFromExtensionInLocalClass.antlrtree.txt index d32597456..7369fd4cc 100644 --- a/grammar/testData/diagnostics/callableReference/function/localNamedFunFromExtensionInLocalClass.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/localNamedFunFromExtensionInLocalClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: localNamedFunFromExtensionInLocalClass.kt - a65b9793740a3d06f9144fa4ebb1f238 +File: localNamedFunFromExtensionInLocalClass.kt - 35ec21d6a00146daa09c15d2de12ed52 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/function/localNamedFunFromLocalClass.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/localNamedFunFromLocalClass.antlrtree.txt index 29131a1b7..b99ce48b7 100644 --- a/grammar/testData/diagnostics/callableReference/function/localNamedFunFromLocalClass.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/localNamedFunFromLocalClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: localNamedFunFromLocalClass.kt - c00a0c5b2c91ca8fb38833cdae9575bb +File: localNamedFunFromLocalClass.kt - b9a3b8e19f14fe4796bab0d289447fa0 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/function/localNamedFunFromLocalExtension.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/localNamedFunFromLocalExtension.antlrtree.txt index e68cbb05f..922c3bc62 100644 --- a/grammar/testData/diagnostics/callableReference/function/localNamedFunFromLocalExtension.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/localNamedFunFromLocalExtension.antlrtree.txt @@ -1,4 +1,5 @@ -File: localNamedFunFromLocalExtension.kt - 0e7929299c373fd81b3a4b0ca9c5de0f +File: localNamedFunFromLocalExtension.kt - 7765d62d6187a5010afe8bfeeac92ba0 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/function/memberFromTopLevel.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/memberFromTopLevel.antlrtree.txt index 078867151..435afae3a 100644 --- a/grammar/testData/diagnostics/callableReference/function/memberFromTopLevel.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/memberFromTopLevel.antlrtree.txt @@ -1,4 +1,5 @@ -File: memberFromTopLevel.kt - 427ad09c24ab0dc2952d87c21ed70f35 +File: memberFromTopLevel.kt - 2ec33821c53d115b7c3cc3d7be614d0e + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/function/nestedConstructorFromClass.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/nestedConstructorFromClass.antlrtree.txt index 704f5e1e5..b8b9725d8 100644 --- a/grammar/testData/diagnostics/callableReference/function/nestedConstructorFromClass.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/nestedConstructorFromClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: nestedConstructorFromClass.kt - cde48efa1d5afae3e8a85300f461e8fd +File: nestedConstructorFromClass.kt - aca0ddf79959c38aa2eb753bca3e70cf + NL("\n") NL("\n") NL("\n") packageHeader @@ -567,6 +568,4 @@ File: nestedConstructorFromClass.kt - cde48efa1d5afae3e8a85300f461e8fd semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/function/nestedConstructorFromExtension.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/nestedConstructorFromExtension.antlrtree.txt index b1976156f..92536598a 100644 --- a/grammar/testData/diagnostics/callableReference/function/nestedConstructorFromExtension.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/nestedConstructorFromExtension.antlrtree.txt @@ -1,4 +1,5 @@ -File: nestedConstructorFromExtension.kt - 632cc59ef36cf16d5c66e65b6251af3a +File: nestedConstructorFromExtension.kt - a2812024b5d1b1c8ebe85bafeba6aa2e + NL("\n") NL("\n") NL("\n") packageHeader @@ -342,6 +343,4 @@ File: nestedConstructorFromExtension.kt - 632cc59ef36cf16d5c66e65b6251af3a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/function/noAmbiguityLocalVsTopLevel.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/noAmbiguityLocalVsTopLevel.antlrtree.txt index 6e10c9d4e..c89d8d7e1 100644 --- a/grammar/testData/diagnostics/callableReference/function/noAmbiguityLocalVsTopLevel.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/noAmbiguityLocalVsTopLevel.antlrtree.txt @@ -105,6 +105,4 @@ File: noAmbiguityLocalVsTopLevel.kt - 4ef9a10002cb58eaa00bb8204465901b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/function/noAmbiguityMemberVsTopLevel.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/noAmbiguityMemberVsTopLevel.antlrtree.txt index a9f1814c6..3e2c5dac2 100644 --- a/grammar/testData/diagnostics/callableReference/function/noAmbiguityMemberVsTopLevel.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/noAmbiguityMemberVsTopLevel.antlrtree.txt @@ -1,4 +1,4 @@ -File: noAmbiguityMemberVsTopLevel.kt - e611b6e1efaeca09496c435c631a95e8 +File: noAmbiguityMemberVsTopLevel.kt - 4e93488783c4ac0d434a60bd03f05163 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/function/topLevelFromClass.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/topLevelFromClass.antlrtree.txt index 14399129b..2f5e307a0 100644 --- a/grammar/testData/diagnostics/callableReference/function/topLevelFromClass.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/topLevelFromClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: topLevelFromClass.kt - 82a6a3bd6a68d43b4d5661872787ac4f +File: topLevelFromClass.kt - 0e5548d6323313f3b6ebca7360773fb9 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/function/topLevelFromExtension.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/topLevelFromExtension.antlrtree.txt index c050f919e..8f0656162 100644 --- a/grammar/testData/diagnostics/callableReference/function/topLevelFromExtension.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/topLevelFromExtension.antlrtree.txt @@ -1,4 +1,5 @@ -File: topLevelFromExtension.kt - aee87b0c4a4bbc5c5741cd64e3ae49ba +File: topLevelFromExtension.kt - 4014db0e96d9af67658c0dc5547de573 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/function/topLevelFromExtensionInClass.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/topLevelFromExtensionInClass.antlrtree.txt index e647486dc..77804f7e7 100644 --- a/grammar/testData/diagnostics/callableReference/function/topLevelFromExtensionInClass.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/topLevelFromExtensionInClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: topLevelFromExtensionInClass.kt - f9656bc72cc8156c97b6e9f0d5554d8f +File: topLevelFromExtensionInClass.kt - e1199cd625415f6750f2a664b16b1354 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/function/topLevelFromTopLevel.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/topLevelFromTopLevel.antlrtree.txt index 5da5f8658..8b0740fb3 100644 --- a/grammar/testData/diagnostics/callableReference/function/topLevelFromTopLevel.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/topLevelFromTopLevel.antlrtree.txt @@ -1,4 +1,5 @@ -File: topLevelFromTopLevel.kt - a5f9a2e615691fd9f2d156e492b849fc +File: topLevelFromTopLevel.kt - f8468430aca215a0d85bf26042b60f61 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/function/unresolved.antlrtree.txt b/grammar/testData/diagnostics/callableReference/function/unresolved.antlrtree.txt index f93872ffd..7d3e6abb2 100644 --- a/grammar/testData/diagnostics/callableReference/function/unresolved.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/function/unresolved.antlrtree.txt @@ -1,5 +1,4 @@ -File: unresolved.kt - d03b53e52e334cb9e5f43b0f8eff27b8 - NL("\n") +File: unresolved.kt - 725bbd6ccf544421df68078a6b4770fe NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType.antlrtree.txt b/grammar/testData/diagnostics/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType.antlrtree.txt index 2c544d8e5..712a435fb 100644 --- a/grammar/testData/diagnostics/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType.antlrtree.txt @@ -1,6 +1,4 @@ -File: functionReferenceWithDefaultValueAsOtherFunctionType.kt - 6d93c9e69a58d0df8ba5daacfceae4ff - NL("\n") - NL("\n") +File: functionReferenceWithDefaultValueAsOtherFunctionType.kt - 067e0fe8e2e15756a9fd455fdca98934 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType_enabled.antlrtree.txt b/grammar/testData/diagnostics/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType_enabled.antlrtree.txt index c89b20cef..8062e6a1b 100644 --- a/grammar/testData/diagnostics/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType_enabled.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType_enabled.antlrtree.txt @@ -485,6 +485,4 @@ File: functionReferenceWithDefaultValueAsOtherFunctionType_enabled.kt - ffee8996 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/generic/argumentAndReturnExpectedType.antlrtree.txt b/grammar/testData/diagnostics/callableReference/generic/argumentAndReturnExpectedType.antlrtree.txt index 56aec2ea3..3dab8d241 100644 --- a/grammar/testData/diagnostics/callableReference/generic/argumentAndReturnExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/generic/argumentAndReturnExpectedType.antlrtree.txt @@ -1,5 +1,4 @@ -File: argumentAndReturnExpectedType.kt - 1845e8ba716dccdbd7487c1185df6b65 - NL("\n") +File: argumentAndReturnExpectedType.kt - 256fbc48335eee7d557f81bf543ef078 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/generic/argumentExpectedType.antlrtree.txt b/grammar/testData/diagnostics/callableReference/generic/argumentExpectedType.antlrtree.txt index eddff7f35..c7e19d56e 100644 --- a/grammar/testData/diagnostics/callableReference/generic/argumentExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/generic/argumentExpectedType.antlrtree.txt @@ -287,6 +287,4 @@ File: argumentExpectedType.kt - 9b810139cc2461f1e7ec3effd9b00701 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/generic/expectedFunctionType.antlrtree.txt b/grammar/testData/diagnostics/callableReference/generic/expectedFunctionType.antlrtree.txt index fb08f7417..616a25a2f 100644 --- a/grammar/testData/diagnostics/callableReference/generic/expectedFunctionType.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/generic/expectedFunctionType.antlrtree.txt @@ -1,8 +1,57 @@ -File: expectedFunctionType.kt - 82bec6276b21a232a10df212a8834b8d +File: expectedFunctionType.kt - e28209f28aa13cb9007a6612e027fa51 NL("\n") NL("\n") packageHeader importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + NL("\n") topLevelObject declaration classDeclaration @@ -114,6 +163,91 @@ File: expectedFunctionType.kt - 82bec6276b21a232a10df212a8834b8d Identifier("a1") semis NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("a1") + RPAREN(")") + semis + NL("\n") RCURL("}") semis NL("\n") @@ -728,6 +862,4 @@ File: expectedFunctionType.kt - 82bec6276b21a232a10df212a8834b8d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/generic/explicitTypeArguments.antlrtree.txt b/grammar/testData/diagnostics/callableReference/generic/explicitTypeArguments.antlrtree.txt index d88369bbf..57b0bf775 100644 --- a/grammar/testData/diagnostics/callableReference/generic/explicitTypeArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/generic/explicitTypeArguments.antlrtree.txt @@ -1,5 +1,4 @@ -File: explicitTypeArguments.kt - 83160452e8694abcf29d68e49b85dff1 - NL("\n") +File: explicitTypeArguments.kt - b3eb74584c94709a890bf626f07f37dc NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/generic/genericExtensionFunction.antlrtree.txt b/grammar/testData/diagnostics/callableReference/generic/genericExtensionFunction.antlrtree.txt index b9501cab9..1ab737535 100644 --- a/grammar/testData/diagnostics/callableReference/generic/genericExtensionFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/generic/genericExtensionFunction.antlrtree.txt @@ -1,5 +1,4 @@ -File: genericExtensionFunction.kt - 3a3f896b620b5c8af03b6caebe616a63 - NL("\n") +File: genericExtensionFunction.kt - 7b0c2838f04c5a78f48e7b1d51733806 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/generic/genericFunctionsWithNullableTypes.antlrtree.txt b/grammar/testData/diagnostics/callableReference/generic/genericFunctionsWithNullableTypes.antlrtree.txt index d79e4d751..40a8fb4db 100644 --- a/grammar/testData/diagnostics/callableReference/generic/genericFunctionsWithNullableTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/generic/genericFunctionsWithNullableTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: genericFunctionsWithNullableTypes.kt - b3bd74971ad88181a3591b734ad7aefb - NL("\n") +File: genericFunctionsWithNullableTypes.kt - 9fdccba736dbf36b7bf11af4fdaf8330 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/generic/kt11075.antlrtree.txt b/grammar/testData/diagnostics/callableReference/generic/kt11075.antlrtree.txt index 6a6cd1744..2d2930136 100644 --- a/grammar/testData/diagnostics/callableReference/generic/kt11075.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/generic/kt11075.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt11075.kt - fed1b385b3f40d80c49eb59f283cd54b +File: kt11075.kt - 05a917f2571a88e966310836cf2968f4 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/generic/kt7470.antlrtree.txt b/grammar/testData/diagnostics/callableReference/generic/kt7470.antlrtree.txt index ccc9c3369..a93f33d54 100644 --- a/grammar/testData/diagnostics/callableReference/generic/kt7470.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/generic/kt7470.antlrtree.txt @@ -164,6 +164,4 @@ File: kt7470.kt - 9509b9797d0c335784bff099cfc64495 Identifier("shuffle") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/generic/nestedCallWithOverload.antlrtree.txt b/grammar/testData/diagnostics/callableReference/generic/nestedCallWithOverload.antlrtree.txt index 813d695aa..c9c44fe8d 100644 --- a/grammar/testData/diagnostics/callableReference/generic/nestedCallWithOverload.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/generic/nestedCallWithOverload.antlrtree.txt @@ -1,5 +1,4 @@ -File: nestedCallWithOverload.kt - ee1e2d7335363ba2c6c13e7c4eaa98cf - NL("\n") +File: nestedCallWithOverload.kt - bb04b37f3a8a677467be854260dcd132 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/generic/resolutionGenericCallableWithNullableTypes.antlrtree.txt b/grammar/testData/diagnostics/callableReference/generic/resolutionGenericCallableWithNullableTypes.antlrtree.txt index ba7b0ec8c..9ad0b15fc 100644 --- a/grammar/testData/diagnostics/callableReference/generic/resolutionGenericCallableWithNullableTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/generic/resolutionGenericCallableWithNullableTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: resolutionGenericCallableWithNullableTypes.kt - 9afc6569c8a2975ba530583aec49d946 - NL("\n") +File: resolutionGenericCallableWithNullableTypes.kt - 9095549177e2433f26d43d19beac0a34 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/generic/resolutionWithGenericCallable.antlrtree.txt b/grammar/testData/diagnostics/callableReference/generic/resolutionWithGenericCallable.antlrtree.txt index 070b74d88..e3f22be9d 100644 --- a/grammar/testData/diagnostics/callableReference/generic/resolutionWithGenericCallable.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/generic/resolutionWithGenericCallable.antlrtree.txt @@ -1,5 +1,4 @@ -File: resolutionWithGenericCallable.kt - 12974187493196b493b5466c7e41bc37 - NL("\n") +File: resolutionWithGenericCallable.kt - 22509d49039d178c192c4f02597a3e3b NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/generic/specialCalls.antlrtree.txt b/grammar/testData/diagnostics/callableReference/generic/specialCalls.antlrtree.txt index f1182100c..a6aa1e9bc 100644 --- a/grammar/testData/diagnostics/callableReference/generic/specialCalls.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/generic/specialCalls.antlrtree.txt @@ -1,4 +1,5 @@ -File: specialCalls.kt - c8782fafa013744018ded91439f2a5e4 +File: specialCalls.kt - 10a3178a1201dd84d10789af28e4b43f + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/kt15439_completeCall.antlrtree.txt b/grammar/testData/diagnostics/callableReference/kt15439_completeCall.antlrtree.txt index 8ee1a4bfc..cf8e2ef92 100644 --- a/grammar/testData/diagnostics/callableReference/kt15439_completeCall.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/kt15439_completeCall.antlrtree.txt @@ -274,6 +274,4 @@ File: kt15439_completeCall.kt - c46e5396267284c4ca6f26d77625b547 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/kt25433.antlrtree.txt b/grammar/testData/diagnostics/callableReference/kt25433.antlrtree.txt index f0c8d2105..2f0b3624a 100644 --- a/grammar/testData/diagnostics/callableReference/kt25433.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/kt25433.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt25433.kt - f325ff12505d4e98b7a1b2f514c1d547 - NL("\n") +File: kt25433.kt - 04520667d62eb3edaf0363c9bef1dd9d NL("\n") NL("\n") NL("\n") @@ -392,6 +391,4 @@ File: kt25433.kt - f325ff12505d4e98b7a1b2f514c1d547 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/kt32256.antlrtree.txt b/grammar/testData/diagnostics/callableReference/kt32256.antlrtree.txt index df1c07919..a509a2724 100644 --- a/grammar/testData/diagnostics/callableReference/kt32256.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/kt32256.antlrtree.txt @@ -536,6 +536,4 @@ File: kt32256.kt - 9881b007f0073630b9eb0a4c8eedfb22 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/kt34314.antlrtree.txt b/grammar/testData/diagnostics/callableReference/kt34314.antlrtree.txt index c5f2bcc1b..b26d53181 100644 --- a/grammar/testData/diagnostics/callableReference/kt34314.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/kt34314.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt34314.kt - 7e4cbf6b0140c0cf48808b1048abcf36 - NL("\n") +File: kt34314.kt - 49c163838c46b1a04126883e897e0301 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/kt34314_lambda.antlrtree.txt b/grammar/testData/diagnostics/callableReference/kt34314_lambda.antlrtree.txt index e31403324..15e22eb46 100644 --- a/grammar/testData/diagnostics/callableReference/kt34314_lambda.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/kt34314_lambda.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt34314_lambda.kt - 8ab45339cb0dfd385e18569ad1fd372b - NL("\n") +File: kt34314_lambda.kt - 310919810f3add950b783ada43c952ce NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/kt37530.antlrtree.txt b/grammar/testData/diagnostics/callableReference/kt37530.antlrtree.txt index d2d5781d2..f8056b161 100644 --- a/grammar/testData/diagnostics/callableReference/kt37530.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/kt37530.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt37530.kt - fa868e1f76ea257e94d0ed8348703fc8 - NL("\n") +File: kt37530.kt - b434c9de348f47eabe8535708e312966 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/callableReference/kt46437.antlrtree.txt b/grammar/testData/diagnostics/callableReference/kt46437.antlrtree.txt new file mode 100644 index 000000000..27a203de3 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/kt46437.antlrtree.txt @@ -0,0 +1,204 @@ +File: kt46437.kt - 104120996f57cdfa47dd984034c6c973 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("X") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("y") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("X") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/kt49038.antlrtree.txt b/grammar/testData/diagnostics/callableReference/kt49038.antlrtree.txt new file mode 100644 index 000000000..742c1ea41 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/kt49038.antlrtree.txt @@ -0,0 +1,288 @@ +File: kt49038.kt - c64827475477ea2f0074588fdb8f66d6 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("take") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ref1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("take") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/kt52503.antlrtree.txt b/grammar/testData/diagnostics/callableReference/kt52503.antlrtree.txt new file mode 100644 index 000000000..4efdc79f2 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/kt52503.antlrtree.txt @@ -0,0 +1,293 @@ +File: kt52503.kt - b700a8574d7f6540f14377cb9179f399 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Foo") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + DOT(".") + simpleIdentifier + Identifier("contains") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("xs") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + ASSIGNMENT("=") + NL("\n") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("xs") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("forEach") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("contains") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + DOT(".") + simpleIdentifier + Identifier("contains") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("xs") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("contains") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/kt7430_wrongClassOnLHS.antlrtree.txt b/grammar/testData/diagnostics/callableReference/kt7430_wrongClassOnLHS.antlrtree.txt index 2b58ff29c..1b73b1791 100644 --- a/grammar/testData/diagnostics/callableReference/kt7430_wrongClassOnLHS.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/kt7430_wrongClassOnLHS.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt7430_wrongClassOnLHS.kt - 132e2bc99c1c8ef9691b26147bd6f58a +File: kt7430_wrongClassOnLHS.kt - 849a25f7540c865203d309756e18ed5b + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/noAmbiguityWhenAllReferencesAreInapplicable.antlrtree.txt b/grammar/testData/diagnostics/callableReference/noAmbiguityWhenAllReferencesAreInapplicable.antlrtree.txt index 4a4269459..f4886a78c 100644 --- a/grammar/testData/diagnostics/callableReference/noAmbiguityWhenAllReferencesAreInapplicable.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/noAmbiguityWhenAllReferencesAreInapplicable.antlrtree.txt @@ -378,6 +378,4 @@ File: noAmbiguityWhenAllReferencesAreInapplicable.kt - db16862fdab6bc9294c9d17ac RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/noCompatibilityResolveWithProressiveModeForNI.antlrtree.txt b/grammar/testData/diagnostics/callableReference/noCompatibilityResolveWithProressiveModeForNI.antlrtree.txt index 9db7f2fbd..1d6fb5a6e 100644 --- a/grammar/testData/diagnostics/callableReference/noCompatibilityResolveWithProressiveModeForNI.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/noCompatibilityResolveWithProressiveModeForNI.antlrtree.txt @@ -365,6 +365,4 @@ File: noCompatibilityResolveWithProressiveModeForNI.kt - 7d970954dcbb4c37e390665 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/overloadResolutionWithDefaults.antlrtree.txt b/grammar/testData/diagnostics/callableReference/overloadResolutionWithDefaults.antlrtree.txt new file mode 100644 index 000000000..238c3040a --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/overloadResolutionWithDefaults.antlrtree.txt @@ -0,0 +1,500 @@ +File: overloadResolutionWithDefaults.kt - dacde0cf2a489d3ec3799f3a9a23bddc + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("ShortenReferences") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("DEFAULT") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ShortenReferences") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("process") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("elementFilter") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RCURL("}") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("actionRunningMode") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hello") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("process") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("element") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("elementFilter") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RCURL("}") + COMMA(",") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hello") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeReference") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeReference") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ShortenReferences") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("DEFAULT") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("process") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/property/backingField.antlrtree.txt b/grammar/testData/diagnostics/callableReference/property/backingField.antlrtree.txt new file mode 100644 index 000000000..366cd5b87 --- /dev/null +++ b/grammar/testData/diagnostics/callableReference/property/backingField.antlrtree.txt @@ -0,0 +1,115 @@ +File: backingField.kt - 46b950f04ca4e00fde95f5d174b6ad93 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + FIELD("field") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + FIELD("field") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/callableReference/property/extensionFromTopLevel.antlrtree.txt b/grammar/testData/diagnostics/callableReference/property/extensionFromTopLevel.antlrtree.txt index e5cb9fd5b..8695b026e 100644 --- a/grammar/testData/diagnostics/callableReference/property/extensionFromTopLevel.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/property/extensionFromTopLevel.antlrtree.txt @@ -1,4 +1,4 @@ -File: extensionFromTopLevel.kt - 83e2c86b1f1d8776ad2771e6c90ff94d +File: extensionFromTopLevel.kt - 192fb834864c1a693e1b8f6de21141c0 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/property/kt7945_unrelatedClass.antlrtree.txt b/grammar/testData/diagnostics/callableReference/property/kt7945_unrelatedClass.antlrtree.txt index 2e1076836..17122ca02 100644 --- a/grammar/testData/diagnostics/callableReference/property/kt7945_unrelatedClass.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/property/kt7945_unrelatedClass.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt7945_unrelatedClass.kt - 3cb6d3a41c4b95c7851f7173ea33bf17 - NL("\n") +File: kt7945_unrelatedClass.kt - 7b95295220bb8e8beae4e5a5367ad0df NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/property/returnTypeDependentOnGenericProperty.antlrtree.txt b/grammar/testData/diagnostics/callableReference/property/returnTypeDependentOnGenericProperty.antlrtree.txt index ce96c85c1..e8644ea36 100644 --- a/grammar/testData/diagnostics/callableReference/property/returnTypeDependentOnGenericProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/property/returnTypeDependentOnGenericProperty.antlrtree.txt @@ -265,6 +265,4 @@ File: returnTypeDependentOnGenericProperty.kt - 682fdd6a58412a624a3a5f61cec95ad7 simpleIdentifier Identifier("name") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/propertyOfNestedGenericClass.antlrtree.txt b/grammar/testData/diagnostics/callableReference/propertyOfNestedGenericClass.antlrtree.txt index 2534ae4a4..8909090fe 100644 --- a/grammar/testData/diagnostics/callableReference/propertyOfNestedGenericClass.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/propertyOfNestedGenericClass.antlrtree.txt @@ -1028,6 +1028,4 @@ File: propertyOfNestedGenericClass.kt - 6c059c32c461506562c0a2ef6ff785b8 Identifier("keyT") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/referenceAdaptationCompatibility.antlrtree.txt b/grammar/testData/diagnostics/callableReference/referenceAdaptationCompatibility.antlrtree.txt index 2a46df270..f08da6f40 100644 --- a/grammar/testData/diagnostics/callableReference/referenceAdaptationCompatibility.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/referenceAdaptationCompatibility.antlrtree.txt @@ -1109,6 +1109,4 @@ File: referenceAdaptationCompatibility.kt - e602b4d449a53f12a8026f7b6db9d1f1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/adaptedReferenceAgainstKCallable.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/adaptedReferenceAgainstKCallable.antlrtree.txt index aea994df3..5e19e603c 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/adaptedReferenceAgainstKCallable.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/adaptedReferenceAgainstKCallable.antlrtree.txt @@ -161,6 +161,4 @@ File: adaptedReferenceAgainstKCallable.kt - d805b00816199e6d71177b9f799d7985 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/ambiguityWhenNoApplicableCallableReferenceCandidate.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/ambiguityWhenNoApplicableCallableReferenceCandidate.antlrtree.txt index 46060d1da..8aedfd548 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/ambiguityWhenNoApplicableCallableReferenceCandidate.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/ambiguityWhenNoApplicableCallableReferenceCandidate.antlrtree.txt @@ -167,6 +167,4 @@ File: ambiguityWhenNoApplicableCallableReferenceCandidate.kt - 0fe77495950093299 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/ambiguityWithBoundExtensionReceiver.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/ambiguityWithBoundExtensionReceiver.antlrtree.txt index c7ba26f24..5a5ce76a5 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/ambiguityWithBoundExtensionReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/ambiguityWithBoundExtensionReceiver.antlrtree.txt @@ -1,4 +1,5 @@ -File: ambiguityWithBoundExtensionReceiver.kt - 51d81c9f5054668251214faeaf28cf56 +File: ambiguityWithBoundExtensionReceiver.kt - c149603852491e03fffe63c4491cbb4c + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/resolve/ambiguousWithVararg.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/ambiguousWithVararg.antlrtree.txt index 09ecff287..0414d39cc 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/ambiguousWithVararg.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/ambiguousWithVararg.antlrtree.txt @@ -1,4 +1,5 @@ -File: ambiguousWithVararg.kt - 16f3d4bb8ee2aa6601ce59411e5e1244 +File: ambiguousWithVararg.kt - 6c439313065c24254991fe8c017b2f53 + NL("\n") NL("\n") NL("\n") packageHeader @@ -279,6 +280,4 @@ File: ambiguousWithVararg.kt - 16f3d4bb8ee2aa6601ce59411e5e1244 simpleIdentifier Identifier("fun3") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/applicableCallableReferenceFromDistantScope.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/applicableCallableReferenceFromDistantScope.antlrtree.txt index d39cafa89..0efff540c 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/applicableCallableReferenceFromDistantScope.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/applicableCallableReferenceFromDistantScope.antlrtree.txt @@ -249,6 +249,4 @@ File: applicableCallableReferenceFromDistantScope.kt - 213f4e6b36106c3247f18c283 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/byArgType.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/byArgType.antlrtree.txt index 4a5743107..00fff51b7 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/byArgType.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/byArgType.antlrtree.txt @@ -144,6 +144,4 @@ File: byArgType.kt - 7a4cf7f2db63751c4ef270a57409664e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/byGenericArgType.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/byGenericArgType.antlrtree.txt index a91a5631e..ceb84c85a 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/byGenericArgType.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/byGenericArgType.antlrtree.txt @@ -1,5 +1,4 @@ -File: byGenericArgType.kt - ef81f7ff4aca177faa64601d025d3270 - NL("\n") +File: byGenericArgType.kt - 87a7e4171f2651ff712336b2dcea6421 NL("\n") NL("\n") packageHeader @@ -326,6 +325,4 @@ File: byGenericArgType.kt - ef81f7ff4aca177faa64601d025d3270 Identifier("foo") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/byValType.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/byValType.antlrtree.txt index 5500ca469..0261f8204 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/byValType.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/byValType.antlrtree.txt @@ -213,6 +213,4 @@ File: byValType.kt - d42a1ded48ef7d8efdfd0bee9c6f3a68 COLONCOLON("::") simpleIdentifier Identifier("foo") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/chooseCallableReferenceDependingOnInferredReceiver.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/chooseCallableReferenceDependingOnInferredReceiver.antlrtree.txt index 1e8745da3..b0265587e 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/chooseCallableReferenceDependingOnInferredReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/chooseCallableReferenceDependingOnInferredReceiver.antlrtree.txt @@ -861,6 +861,4 @@ File: chooseCallableReferenceDependingOnInferredReceiver.kt - deb8ae2fcdc329dc0b valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/chooseOuterCallBySingleCallableReference.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/chooseOuterCallBySingleCallableReference.antlrtree.txt index f541dde3a..8a7934d1d 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/chooseOuterCallBySingleCallableReference.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/chooseOuterCallBySingleCallableReference.antlrtree.txt @@ -334,6 +334,4 @@ File: chooseOuterCallBySingleCallableReference.kt - b1ce68401cfee9c5e5d82313eca9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/commonSupertypeFromReturnTypesOfCallableReference.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/commonSupertypeFromReturnTypesOfCallableReference.antlrtree.txt index ef1d48d49..d9bdde5ad 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/commonSupertypeFromReturnTypesOfCallableReference.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/commonSupertypeFromReturnTypesOfCallableReference.antlrtree.txt @@ -317,6 +317,4 @@ File: commonSupertypeFromReturnTypesOfCallableReference.kt - 4aa56e0734f87759677 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/constructor.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/constructor.antlrtree.txt index 742350eb4..33605e1cc 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/constructor.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/constructor.antlrtree.txt @@ -166,6 +166,4 @@ File: constructor.kt - d93d71a7ae1465db11bdb16d7e8f2e2b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/eagerAndPostponedCallableReferences.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/eagerAndPostponedCallableReferences.antlrtree.txt index 98f5c8f8b..384338b42 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/eagerAndPostponedCallableReferences.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/eagerAndPostponedCallableReferences.antlrtree.txt @@ -900,6 +900,4 @@ File: eagerAndPostponedCallableReferences.kt - ea887027f1d715f8ce1e086831dc87e4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/eagerResolveOfSingleCallableReference.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/eagerResolveOfSingleCallableReference.antlrtree.txt index 07a5cba1c..3881e309a 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/eagerResolveOfSingleCallableReference.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/eagerResolveOfSingleCallableReference.antlrtree.txt @@ -299,6 +299,4 @@ File: eagerResolveOfSingleCallableReference.kt - a3a5fff4d62ddfce17139697deeb801 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/innerClassConstructorOnOuterClassInstance.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/innerClassConstructorOnOuterClassInstance.antlrtree.txt index c9c93c60b..73d16c4f3 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/innerClassConstructorOnOuterClassInstance.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/innerClassConstructorOnOuterClassInstance.antlrtree.txt @@ -173,6 +173,4 @@ File: innerClassConstructorOnOuterClassInstance.kt - aa330d41b347cf3f9a4cf261225 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.antlrtree.txt index 4f8870fb8..ff39d0167 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.antlrtree.txt @@ -1,4 +1,4 @@ -File: intersectionTypeOverloadWithWrongParameter.kt - 173f574ee8fc6dbe5e99ee2f846cad13 +File: intersectionTypeOverloadWithWrongParameter.kt - 1ab7f199ff4d95267781dd74a2f60e4d NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/resolve/kt10036.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/kt10036.antlrtree.txt index f27f69fdc..bdbaf6cd8 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/kt10036.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/kt10036.antlrtree.txt @@ -544,6 +544,4 @@ File: kt10036.kt - 6684ebcba89ad5331e780357da25bdbe Identifier("it") RPAREN(")") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/kt12338.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/kt12338.antlrtree.txt index 160129743..9b8c3f5f5 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/kt12338.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/kt12338.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt12338.kt - 2ead6dd03f905ca0dc1fc514b600111a +File: kt12338.kt - 0dfa1e823ebc1b0e945e6840b334be29 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/resolve/kt9601.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/kt9601.antlrtree.txt index b72046abb..e0f9598ac 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/kt9601.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/kt9601.antlrtree.txt @@ -204,6 +204,4 @@ File: kt9601.kt - 5d58bf5b2c8a5a1b7a1a2ccd28ea6bd4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/moreSpecificAmbiguousExtensions.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/moreSpecificAmbiguousExtensions.antlrtree.txt index 487fb3ab0..6bde6edc2 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/moreSpecificAmbiguousExtensions.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/moreSpecificAmbiguousExtensions.antlrtree.txt @@ -497,6 +497,4 @@ File: moreSpecificAmbiguousExtensions.kt - 2fb12d6300d0f6c5e10c686a9cfc29e1 Identifier("extFun") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/multipleOutersAndMultipleCallableReferences.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/multipleOutersAndMultipleCallableReferences.antlrtree.txt index decbcf42f..b24c8c2d6 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/multipleOutersAndMultipleCallableReferences.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/multipleOutersAndMultipleCallableReferences.antlrtree.txt @@ -425,6 +425,4 @@ File: multipleOutersAndMultipleCallableReferences.kt - f04c5cf44005b022dfe78b674 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/noAmbiguityBetweenTopLevelAndMemberProperty.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/noAmbiguityBetweenTopLevelAndMemberProperty.antlrtree.txt index dab0ede3f..2437a1ead 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/noAmbiguityBetweenTopLevelAndMemberProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/noAmbiguityBetweenTopLevelAndMemberProperty.antlrtree.txt @@ -358,6 +358,4 @@ File: noAmbiguityBetweenTopLevelAndMemberProperty.kt - 36eb812d6811966b935dd8a20 simpleIdentifier Identifier("subject") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/overloadAmbiguityForSimpleLastExpressionOfBlock.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/overloadAmbiguityForSimpleLastExpressionOfBlock.antlrtree.txt index 4060afb21..ad41b3cc4 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/overloadAmbiguityForSimpleLastExpressionOfBlock.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/overloadAmbiguityForSimpleLastExpressionOfBlock.antlrtree.txt @@ -1,4 +1,5 @@ -File: overloadAmbiguityForSimpleLastExpressionOfBlock.kt - bcc0b23bf8ad2718a73024eac786b2d1 +File: overloadAmbiguityForSimpleLastExpressionOfBlock.kt - 5795ec1c27164f003e3e5c9f71ab21d1 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/resolve/overloads.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/overloads.antlrtree.txt index b70dac12f..1bc764ae8 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/overloads.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/overloads.antlrtree.txt @@ -1,4 +1,5 @@ -File: overloads.kt - affbf477a72b8b3658da8e2cba3d078c +File: overloads.kt - 983ea5e47a7053664d940b389bf90a19 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/callableReference/resolve/overloadsMember.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/overloadsMember.antlrtree.txt index 1f1eab12b..bedda584d 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/overloadsMember.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/overloadsMember.antlrtree.txt @@ -225,6 +225,4 @@ File: overloadsMember.kt - b071e1ed4e20b8f183d16633ffb52e81 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/postponedResolveOfManyCallableReference.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/postponedResolveOfManyCallableReference.antlrtree.txt index 1aab2eaa3..0540be3f5 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/postponedResolveOfManyCallableReference.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/postponedResolveOfManyCallableReference.antlrtree.txt @@ -502,6 +502,4 @@ File: postponedResolveOfManyCallableReference.kt - 95be50b7822e1bcf43a3c3ddb0226 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/resolveEqualsOperatorWithAnyExpectedType.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/resolveEqualsOperatorWithAnyExpectedType.antlrtree.txt index 052cb407f..70e8af7b9 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/resolveEqualsOperatorWithAnyExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/resolveEqualsOperatorWithAnyExpectedType.antlrtree.txt @@ -1,4 +1,4 @@ -File: resolveEqualsOperatorWithAnyExpectedType.kt - 26e8e9d04cec9ea27f929b851142e794 +File: resolveEqualsOperatorWithAnyExpectedType.kt - 23117d76d5911da8994b9d0ba0bfda00 NL("\n") NL("\n") NL("\n") @@ -202,5 +202,5 @@ File: resolveEqualsOperatorWithAnyExpectedType.kt - 26e8e9d04cec9ea27f929b851142 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/resolveReferenceAgainstKFunctionAndKPrpoerty.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/resolveReferenceAgainstKFunctionAndKPrpoerty.antlrtree.txt index 8aaaec8e0..1e2c280cd 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/resolveReferenceAgainstKFunctionAndKPrpoerty.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/resolveReferenceAgainstKFunctionAndKPrpoerty.antlrtree.txt @@ -1,4 +1,4 @@ -File: resolveReferenceAgainstKFunctionAndKPrpoerty.kt - 0bfc1bbacad7aad70927edbb2555f9dc +File: resolveReferenceAgainstKFunctionAndKPrpoerty.kt - 9f9df0fb3a179cb80d09ea6d8e3ac313 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/callableReference/resolve/resolveTwoReferencesAgainstGenerics.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/resolveTwoReferencesAgainstGenerics.antlrtree.txt index 0b89dc22d..ff0764a1c 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/resolveTwoReferencesAgainstGenerics.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/resolveTwoReferencesAgainstGenerics.antlrtree.txt @@ -1,4 +1,4 @@ -File: resolveTwoReferencesAgainstGenerics.kt - 7e8e1f2e9006a84d90c0e98d7b26aa20 +File: resolveTwoReferencesAgainstGenerics.kt - b0c66074270494e08f4d60806852eea5 NL("\n") NL("\n") NL("\n") @@ -280,6 +280,4 @@ File: resolveTwoReferencesAgainstGenerics.kt - 7e8e1f2e9006a84d90c0e98d7b26aa20 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/valVsFun.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/valVsFun.antlrtree.txt index 039e9ab31..30b89e4fc 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/valVsFun.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/valVsFun.antlrtree.txt @@ -182,6 +182,4 @@ File: valVsFun.kt - 37297a910e3d1a83f21c913dc2ae9c72 COLONCOLON("::") simpleIdentifier Identifier("x") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/withAs.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/withAs.antlrtree.txt index d6273c0a5..5d9004dac 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/withAs.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/withAs.antlrtree.txt @@ -1,4 +1,5 @@ -File: withAs.kt - 5731b021495582bcefc4c539a236fd55 +File: withAs.kt - a68eae5dcbda9bd9274835ec69de5278 + NL("\n") NL("\n") NL("\n") packageHeader @@ -265,6 +266,4 @@ File: withAs.kt - 5731b021495582bcefc4c539a236fd55 simpleIdentifier Identifier("Unit") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/withExtFun.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/withExtFun.antlrtree.txt index 6fad81c06..13e110789 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/withExtFun.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/withExtFun.antlrtree.txt @@ -1,4 +1,5 @@ -File: withExtFun.kt - 334658d6b3346767ce9ce27d9d8252d1 +File: withExtFun.kt - 7b1c4abd9c26128a6c45e2af53323eeb + NL("\n") NL("\n") NL("\n") packageHeader @@ -805,6 +806,4 @@ File: withExtFun.kt - 334658d6b3346767ce9ce27d9d8252d1 simpleIdentifier Identifier("bar") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/withGenericFun.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/withGenericFun.antlrtree.txt index eeed3f1ab..898b35844 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/withGenericFun.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/withGenericFun.antlrtree.txt @@ -1,5 +1,4 @@ -File: withGenericFun.kt - 30facf108a9644025f1f76f579ba812c - NL("\n") +File: withGenericFun.kt - 644828d2103f913434002d553d6ec9c1 NL("\n") NL("\n") NL("\n") @@ -391,6 +390,4 @@ File: withGenericFun.kt - 30facf108a9644025f1f76f579ba812c Identifier("foo") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/withPlaceholderTypes.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/withPlaceholderTypes.antlrtree.txt index 0ae075395..5fd12f8c3 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/withPlaceholderTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/withPlaceholderTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: withPlaceholderTypes.kt - 79a93d0ebbf78ac9c453f0338f44d756 - NL("\n") +File: withPlaceholderTypes.kt - 98781b822781805e607b4b0fa419fc16 NL("\n") NL("\n") NL("\n") @@ -1454,6 +1453,4 @@ File: withPlaceholderTypes.kt - 79a93d0ebbf78ac9c453f0338f44d756 Identifier("qux") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/resolve/withVararg.antlrtree.txt b/grammar/testData/diagnostics/callableReference/resolve/withVararg.antlrtree.txt index e433d5962..19770d266 100644 --- a/grammar/testData/diagnostics/callableReference/resolve/withVararg.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/resolve/withVararg.antlrtree.txt @@ -299,6 +299,4 @@ File: withVararg.kt - 23fc5b8195c3440890868d3754807163 COLONCOLON("::") simpleIdentifier Identifier("foo") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/rewriteAtSliceOnGetOperator.antlrtree.txt b/grammar/testData/diagnostics/callableReference/rewriteAtSliceOnGetOperator.antlrtree.txt index 65f8feef7..c4dea2699 100644 --- a/grammar/testData/diagnostics/callableReference/rewriteAtSliceOnGetOperator.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/rewriteAtSliceOnGetOperator.antlrtree.txt @@ -302,6 +302,4 @@ File: rewriteAtSliceOnGetOperator.kt - c6158d076387085f49005c2bf14d07c5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/subtypeArgumentFromRHSForReference.antlrtree.txt b/grammar/testData/diagnostics/callableReference/subtypeArgumentFromRHSForReference.antlrtree.txt index c352aafbd..ed2382bd9 100644 --- a/grammar/testData/diagnostics/callableReference/subtypeArgumentFromRHSForReference.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/subtypeArgumentFromRHSForReference.antlrtree.txt @@ -820,6 +820,4 @@ File: subtypeArgumentFromRHSForReference.kt - 7a8f7f0965b499efaad6721454f702f4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/suspendCallableReference.antlrtree.txt b/grammar/testData/diagnostics/callableReference/suspendCallableReference.antlrtree.txt index cb387c10a..c4206de79 100644 --- a/grammar/testData/diagnostics/callableReference/suspendCallableReference.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/suspendCallableReference.antlrtree.txt @@ -1,5 +1,4 @@ -File: suspendCallableReference.kt - 9f7fc09fa37980cd60f0e4df54c68504 - NL("\n") +File: suspendCallableReference.kt - 3bc03ea8582c2040031404d422e55a58 NL("\n") NL("\n") NL("\n") @@ -418,6 +417,4 @@ File: suspendCallableReference.kt - 9f7fc09fa37980cd60f0e4df54c68504 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/typealiases.antlrtree.txt b/grammar/testData/diagnostics/callableReference/typealiases.antlrtree.txt index 29c90495b..f38ab8cd5 100644 --- a/grammar/testData/diagnostics/callableReference/typealiases.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/typealiases.antlrtree.txt @@ -1,5 +1,4 @@ -File: typealiases.kt - 5b15fbfacacf1c1e004b9a118c9b843a - NL("\n") +File: typealiases.kt - 34ff45af54235f2e28cc5e0728e882ec NL("\n") NL("\n") NL("\n") @@ -281,6 +280,4 @@ File: typealiases.kt - 5b15fbfacacf1c1e004b9a118c9b843a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/unitAdaptationForReferenceCompatibility.test.antlrtree.txt b/grammar/testData/diagnostics/callableReference/unitAdaptationForReferenceCompatibility.test.antlrtree.txt index 92d334f31..d353dfd4d 100644 --- a/grammar/testData/diagnostics/callableReference/unitAdaptationForReferenceCompatibility.test.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/unitAdaptationForReferenceCompatibility.test.antlrtree.txt @@ -242,6 +242,4 @@ File: unitAdaptationForReferenceCompatibility.test.kt - 2fc858b655daf63f27cb28a0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/unsupported/callableReferenceToLocalVariable.antlrtree.txt b/grammar/testData/diagnostics/callableReference/unsupported/callableReferenceToLocalVariable.antlrtree.txt index 48be7ab50..fac645851 100644 --- a/grammar/testData/diagnostics/callableReference/unsupported/callableReferenceToLocalVariable.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/unsupported/callableReferenceToLocalVariable.antlrtree.txt @@ -1,4 +1,5 @@ -File: callableReferenceToLocalVariable.kt - 4a85dca4e589f6e3a7523262a76e247b +File: callableReferenceToLocalVariable.kt - 1a969c2aeb0508521cb5f053733b60da + NL("\n") NL("\n") NL("\n") packageHeader @@ -122,5 +123,285 @@ File: callableReferenceToLocalVariable.kt - 4a85dca4e589f6e3a7523262a76e247b statements RCURL("}") semis - EOF("") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("test2") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("test2") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("test4") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("test4") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("test6") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + parameter + simpleIdentifier + Identifier("test") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Test") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("helper") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test6") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Test") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("helper") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/unsupported/localVariableWithSubstitution.antlrtree.txt b/grammar/testData/diagnostics/callableReference/unsupported/localVariableWithSubstitution.antlrtree.txt index 45016bcbc..f2a900e45 100644 --- a/grammar/testData/diagnostics/callableReference/unsupported/localVariableWithSubstitution.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/unsupported/localVariableWithSubstitution.antlrtree.txt @@ -289,6 +289,4 @@ File: localVariableWithSubstitution.kt - c209581b0f7f54d3f21f3a76bc09f848 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/unsupported/parameterWithSubstitution.antlrtree.txt b/grammar/testData/diagnostics/callableReference/unsupported/parameterWithSubstitution.antlrtree.txt index 027d79cb5..419fcc3f5 100644 --- a/grammar/testData/diagnostics/callableReference/unsupported/parameterWithSubstitution.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/unsupported/parameterWithSubstitution.antlrtree.txt @@ -1,4 +1,4 @@ -File: parameterWithSubstitution.kt - 9162439a90e4f707fad57111bff62969 +File: parameterWithSubstitution.kt - d459f23536cc7adcb0168b139a7e7e02 NL("\n") NL("\n") packageHeader @@ -301,5 +301,5 @@ File: parameterWithSubstitution.kt - 9162439a90e4f707fad57111bff62969 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/unsupported/syntheticProperties.test.antlrtree.txt b/grammar/testData/diagnostics/callableReference/unsupported/syntheticProperties.test.antlrtree.txt index 2e4e8709e..c86a80274 100644 --- a/grammar/testData/diagnostics/callableReference/unsupported/syntheticProperties.test.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/unsupported/syntheticProperties.test.antlrtree.txt @@ -34,6 +34,4 @@ File: syntheticProperties.test.kt - 8abce09f392f60af66a3041e793794da simpleIdentifier Identifier("name") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/callableReference/unused.antlrtree.txt b/grammar/testData/diagnostics/callableReference/unused.antlrtree.txt index cc67b551b..decd2771c 100644 --- a/grammar/testData/diagnostics/callableReference/unused.antlrtree.txt +++ b/grammar/testData/diagnostics/callableReference/unused.antlrtree.txt @@ -1,4 +1,5 @@ -File: unused.kt - a29b3b82afdb5ed2bdcb7db92dd3d31a +File: unused.kt - 58b499f2093f26ee0a089dae3c861d3a + NL("\n") packageHeader importList topLevelObject @@ -230,5 +231,5 @@ File: unused.kt - a29b3b82afdb5ed2bdcb7db92dd3d31a NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/cast/AsArray.antlrtree.txt b/grammar/testData/diagnostics/cast/AsArray.antlrtree.txt index 2c083479a..dbfb8ed41 100644 --- a/grammar/testData/diagnostics/cast/AsArray.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/AsArray.antlrtree.txt @@ -1,4 +1,5 @@ -File: AsArray.kt - 692e0389134df92d38237c729f477e33 +File: AsArray.kt - 53cf63d2034133c87156272c3537f9d5 + NL("\n") packageHeader importList topLevelObject @@ -59,6 +60,4 @@ File: AsArray.kt - 692e0389134df92d38237c729f477e33 simpleIdentifier Identifier("String") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/AsErasedError.antlrtree.txt b/grammar/testData/diagnostics/cast/AsErasedError.antlrtree.txt index 59f68b0d9..6a190d806 100644 --- a/grammar/testData/diagnostics/cast/AsErasedError.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/AsErasedError.antlrtree.txt @@ -1,4 +1,5 @@ -File: AsErasedError.kt - 9669bbe634e29d942e8301ee62cf417e +File: AsErasedError.kt - 54132aa66a050b9fe6ddf10b7dd1f5e3 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/cast/AsErasedWarning.antlrtree.txt b/grammar/testData/diagnostics/cast/AsErasedWarning.antlrtree.txt index 6117780c4..fd6b665bd 100644 --- a/grammar/testData/diagnostics/cast/AsErasedWarning.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/AsErasedWarning.antlrtree.txt @@ -1,4 +1,5 @@ -File: AsErasedWarning.kt - eab1e72a10b23b2af4c31836ddc05517 +File: AsErasedWarning.kt - f7bca7fa9992a4ccb35558cd775106fc + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/cast/AsInBinaryUnary.antlrtree.txt b/grammar/testData/diagnostics/cast/AsInBinaryUnary.antlrtree.txt index bb63fea2e..ea2c9db36 100644 --- a/grammar/testData/diagnostics/cast/AsInBinaryUnary.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/AsInBinaryUnary.antlrtree.txt @@ -1,5 +1,4 @@ -File: AsInBinaryUnary.kt - 2f48fb14a8121fbb952aff5acea70d7d - NL("\n") +File: AsInBinaryUnary.kt - 76bb6c02aa40ff5825b7ecd2b133e4ec NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/cast/AsInBlockWithReturnType.antlrtree.txt b/grammar/testData/diagnostics/cast/AsInBlockWithReturnType.antlrtree.txt index b0f90fd40..31d24c3e1 100644 --- a/grammar/testData/diagnostics/cast/AsInBlockWithReturnType.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/AsInBlockWithReturnType.antlrtree.txt @@ -1,5 +1,4 @@ -File: AsInBlockWithReturnType.kt - 26d07b6cdb538e57b2b81cb718f8163d - NL("\n") +File: AsInBlockWithReturnType.kt - ae933af6b5046769cad498d949343e47 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/cast/AsInExpressionBody.antlrtree.txt b/grammar/testData/diagnostics/cast/AsInExpressionBody.antlrtree.txt index bffb430b5..f6af93766 100644 --- a/grammar/testData/diagnostics/cast/AsInExpressionBody.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/AsInExpressionBody.antlrtree.txt @@ -578,6 +578,4 @@ File: AsInExpressionBody.kt - 140bcd693807c312f3d78cabad36a94e Identifier("Any") quest QUEST_NO_WS("?") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/AsInPropertyAndPropertyAccessor.antlrtree.txt b/grammar/testData/diagnostics/cast/AsInPropertyAndPropertyAccessor.antlrtree.txt index e47483d91..7df056460 100644 --- a/grammar/testData/diagnostics/cast/AsInPropertyAndPropertyAccessor.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/AsInPropertyAndPropertyAccessor.antlrtree.txt @@ -375,6 +375,4 @@ File: AsInPropertyAndPropertyAccessor.kt - 9196b70c5b9529d9a0cfceaddedec838 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/AsNothing.antlrtree.txt b/grammar/testData/diagnostics/cast/AsNothing.antlrtree.txt index 8fb198f85..ea2d9da32 100644 --- a/grammar/testData/diagnostics/cast/AsNothing.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/AsNothing.antlrtree.txt @@ -1,4 +1,5 @@ -File: AsNothing.kt - f8ce9bf1e9b5f7a247a9f99befca0aca +File: AsNothing.kt - af5e3cc3dfa9958548e1e11d4165ac06 + NL("\n") NL("\n") packageHeader importList @@ -227,6 +228,4 @@ File: AsNothing.kt - f8ce9bf1e9b5f7a247a9f99befca0aca semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/AsTypeAlias.antlrtree.txt b/grammar/testData/diagnostics/cast/AsTypeAlias.antlrtree.txt index cfee3a90b..5b75113ff 100644 --- a/grammar/testData/diagnostics/cast/AsTypeAlias.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/AsTypeAlias.antlrtree.txt @@ -1,4 +1,5 @@ -File: AsTypeAlias.kt - 9125f8b0e19d23be0fddc7243af8cded +File: AsTypeAlias.kt - 5e3c2e9f24138545ff48ed45fe71e2a5 + NL("\n") packageHeader importList topLevelObject @@ -375,6 +376,4 @@ File: AsTypeAlias.kt - 9125f8b0e19d23be0fddc7243af8cded Identifier("MyString") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/AsWithOtherParameter.antlrtree.txt b/grammar/testData/diagnostics/cast/AsWithOtherParameter.antlrtree.txt index c40c147dd..aa29c0e1d 100644 --- a/grammar/testData/diagnostics/cast/AsWithOtherParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/AsWithOtherParameter.antlrtree.txt @@ -1,4 +1,5 @@ -File: AsWithOtherParameter.kt - 13b7f53e4ed5c052c8609faea91a6beb +File: AsWithOtherParameter.kt - beebef85fbe6f1d7a0c4165ed3bf1e98 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/cast/DowncastMap.antlrtree.txt b/grammar/testData/diagnostics/cast/DowncastMap.antlrtree.txt index 804691441..8e2fced4b 100644 --- a/grammar/testData/diagnostics/cast/DowncastMap.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/DowncastMap.antlrtree.txt @@ -280,6 +280,4 @@ File: DowncastMap.kt - a189336fd45013be625db13b5dbdb80a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/ExtensionAsNonExtension.antlrtree.txt b/grammar/testData/diagnostics/cast/ExtensionAsNonExtension.antlrtree.txt index d0625d12a..96c16f32a 100644 --- a/grammar/testData/diagnostics/cast/ExtensionAsNonExtension.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/ExtensionAsNonExtension.antlrtree.txt @@ -297,6 +297,4 @@ File: ExtensionAsNonExtension.kt - a675562a99591e4fe1fa53582fd61e9b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/FlexibleTargetType.sample.antlrtree.txt b/grammar/testData/diagnostics/cast/FlexibleTargetType.sample.antlrtree.txt index 61dc6c052..d60b79acb 100644 --- a/grammar/testData/diagnostics/cast/FlexibleTargetType.sample.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/FlexibleTargetType.sample.antlrtree.txt @@ -266,6 +266,4 @@ File: FlexibleTargetType.sample.kt - 8bd39c9699e93c049073ad29ff3d9f9e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/IsErasedAllowForExactSupertypeCheck.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedAllowForExactSupertypeCheck.antlrtree.txt index b7f73754e..0b4e8425e 100644 --- a/grammar/testData/diagnostics/cast/IsErasedAllowForExactSupertypeCheck.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedAllowForExactSupertypeCheck.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedAllowForExactSupertypeCheck.kt - 3a3fe9a7763204a28e1d285f97b2d8f3 +File: IsErasedAllowForExactSupertypeCheck.kt - f1883cbc82250f8e8ce5d1514abdbad2 + NL("\n") packageHeader importList topLevelObject @@ -109,6 +110,4 @@ File: IsErasedAllowForExactSupertypeCheck.kt - 3a3fe9a7763204a28e1d285f97b2d8f3 simpleIdentifier Identifier("Int") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/IsErasedAllowForSupertypeCheckWithContrvariance.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedAllowForSupertypeCheckWithContrvariance.antlrtree.txt index 2f40a9f50..0fc7cf8d1 100644 --- a/grammar/testData/diagnostics/cast/IsErasedAllowForSupertypeCheckWithContrvariance.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedAllowForSupertypeCheckWithContrvariance.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedAllowForSupertypeCheckWithContrvariance.kt - 7534d0175c2b88fc5ffd388f286e5005 +File: IsErasedAllowForSupertypeCheckWithContrvariance.kt - dc9f68ab2430e7e0eecfbb227559e6d2 + NL("\n") packageHeader importList topLevelObject @@ -150,6 +151,4 @@ File: IsErasedAllowForSupertypeCheckWithContrvariance.kt - 7534d0175c2b88fc5ffd3 simpleIdentifier Identifier("B") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/IsErasedAllowForSupertypeCheckWithCovariance.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedAllowForSupertypeCheckWithCovariance.antlrtree.txt index 6d25a11f8..bc8c400c0 100644 --- a/grammar/testData/diagnostics/cast/IsErasedAllowForSupertypeCheckWithCovariance.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedAllowForSupertypeCheckWithCovariance.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedAllowForSupertypeCheckWithCovariance.kt - d0f13f7f495fd8f37964273199a05838 +File: IsErasedAllowForSupertypeCheckWithCovariance.kt - 36dc7ccefb7849284ea7bf65912dd412 + NL("\n") packageHeader importList topLevelObject @@ -150,6 +151,4 @@ File: IsErasedAllowForSupertypeCheckWithCovariance.kt - d0f13f7f495fd8f379642731 simpleIdentifier Identifier("A") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/IsErasedAllowForTypeWithIrrelevantMixin.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedAllowForTypeWithIrrelevantMixin.antlrtree.txt index 9f27ad9ef..aa266d625 100644 --- a/grammar/testData/diagnostics/cast/IsErasedAllowForTypeWithIrrelevantMixin.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedAllowForTypeWithIrrelevantMixin.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedAllowForTypeWithIrrelevantMixin.kt - 8ba323d4b4f9ab18fb23b8f83e5ef612 +File: IsErasedAllowForTypeWithIrrelevantMixin.kt - 0a078424b1f38a9d79aa25f7efa6a353 + NL("\n") packageHeader importList topLevelObject @@ -190,6 +191,4 @@ File: IsErasedAllowForTypeWithIrrelevantMixin.kt - 8ba323d4b4f9ab18fb23b8f83e5ef simpleIdentifier Identifier("A") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/IsErasedAllowFromOut.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedAllowFromOut.antlrtree.txt index eed82614b..d1da6ff3e 100644 --- a/grammar/testData/diagnostics/cast/IsErasedAllowFromOut.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedAllowFromOut.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedAllowFromOut.kt - bd4a221038cead362e91a23433f7a2ff +File: IsErasedAllowFromOut.kt - f4c4ac5f7f87da2baf8ae2cc77431763 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/cast/IsErasedAllowFromOut2.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedAllowFromOut2.antlrtree.txt index 07dbe5306..95ed2b3e5 100644 --- a/grammar/testData/diagnostics/cast/IsErasedAllowFromOut2.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedAllowFromOut2.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedAllowFromOut2.kt - d92bf21012fa490afbba46b25de40654 +File: IsErasedAllowFromOut2.kt - 661a3f1b12a5da3ac103f7e2a48f7110 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/cast/IsErasedAllowFromOut3.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedAllowFromOut3.antlrtree.txt new file mode 100644 index 000000000..20057d6c1 --- /dev/null +++ b/grammar/testData/diagnostics/cast/IsErasedAllowFromOut3.antlrtree.txt @@ -0,0 +1,114 @@ +File: IsErasedAllowFromOut3.kt - 80b86a2f7bfd6e06db99d58336941a77 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derived") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("entry") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("entry") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/cast/IsErasedAllowFromOutAtClass.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedAllowFromOutAtClass.antlrtree.txt index 1caa2ccb0..1e4c8583f 100644 --- a/grammar/testData/diagnostics/cast/IsErasedAllowFromOutAtClass.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedAllowFromOutAtClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedAllowFromOutAtClass.kt - cc3c7526a36b2e85d692255b838d3521 +File: IsErasedAllowFromOutAtClass.kt - 12e3f9fec2d0154596d21ee16ee2bc25 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/cast/IsErasedDisallowDifferentArgInvariantPosition.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedDisallowDifferentArgInvariantPosition.antlrtree.txt index 3703f6a0a..2a177ef1a 100644 --- a/grammar/testData/diagnostics/cast/IsErasedDisallowDifferentArgInvariantPosition.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedDisallowDifferentArgInvariantPosition.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedDisallowDifferentArgInvariantPosition.kt - 5d3df698eace495c8893cc96b96e6dfa +File: IsErasedDisallowDifferentArgInvariantPosition.kt - 3b926a08bb7accc99a01a430a7499726 + NL("\n") packageHeader importList topLevelObject @@ -69,6 +70,4 @@ File: IsErasedDisallowDifferentArgInvariantPosition.kt - 5d3df698eace495c8893cc9 simpleIdentifier Identifier("CharSequence") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/IsErasedDisallowForOverridenVariance.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedDisallowForOverridenVariance.antlrtree.txt index c3c4a7f9f..9fb0a810c 100644 --- a/grammar/testData/diagnostics/cast/IsErasedDisallowForOverridenVariance.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedDisallowForOverridenVariance.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedDisallowForOverridenVariance.kt - 57b4138aa8e8bf4d7d92d109d8e4bd28 +File: IsErasedDisallowForOverridenVariance.kt - 147c8016dadfc9a6fd8df2b3f2382565 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/cast/IsErasedDisallowForTypeWithConstraints.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedDisallowForTypeWithConstraints.antlrtree.txt index f23eb61d5..5733dbb40 100644 --- a/grammar/testData/diagnostics/cast/IsErasedDisallowForTypeWithConstraints.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedDisallowForTypeWithConstraints.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedDisallowForTypeWithConstraints.kt - 10477da4132dd9bd2b876a5acc68443c +File: IsErasedDisallowForTypeWithConstraints.kt - 61222d2ad40308f40ecb833e6f275311 + NL("\n") packageHeader importList topLevelObject @@ -127,6 +128,4 @@ File: IsErasedDisallowForTypeWithConstraints.kt - 10477da4132dd9bd2b876a5acc6844 simpleUserType simpleIdentifier Identifier("T") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/IsErasedDisallowFromAny.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedDisallowFromAny.antlrtree.txt index 5932dc470..69337d4e1 100644 --- a/grammar/testData/diagnostics/cast/IsErasedDisallowFromAny.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedDisallowFromAny.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedDisallowFromAny.kt - 5917f33e444177fa9cf96d3bd728e481 +File: IsErasedDisallowFromAny.kt - cb1031a7759e66dc6c692cdc30fa00d9 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/cast/IsErasedDisallowFromIn.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedDisallowFromIn.antlrtree.txt index cea211f3f..0a187beea 100644 --- a/grammar/testData/diagnostics/cast/IsErasedDisallowFromIn.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedDisallowFromIn.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedDisallowFromIn.kt - f6d5b2c5b433380249593fef5c411f43 +File: IsErasedDisallowFromIn.kt - dfc5237edf4bffeafef666a6c3f07041 + NL("\n") packageHeader importList topLevelObject @@ -73,6 +74,4 @@ File: IsErasedDisallowFromIn.kt - f6d5b2c5b433380249593fef5c411f43 simpleIdentifier Identifier("CharSequence") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/IsErasedDisallowFromOut.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedDisallowFromOut.antlrtree.txt index 48b36ad7b..ce3abfb90 100644 --- a/grammar/testData/diagnostics/cast/IsErasedDisallowFromOut.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedDisallowFromOut.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedDisallowFromOut.kt - 5236ffa09c6636940509a31aa5b6b45c +File: IsErasedDisallowFromOut.kt - 99a2714ffc8460746bc533fea504d4bf + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/cast/IsErasedDisallowFromOutAtClass.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedDisallowFromOutAtClass.antlrtree.txt index 9edca2153..881a9f165 100644 --- a/grammar/testData/diagnostics/cast/IsErasedDisallowFromOutAtClass.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedDisallowFromOutAtClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedDisallowFromOutAtClass.kt - 54b26bd28448247048c557af0ca831af +File: IsErasedDisallowFromOutAtClass.kt - a9aa97da5e72cb521dba10722723f60a + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/cast/IsErasedDissallowForSubtypeMappedToTwoParamsWithFirstInvalid.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedDissallowForSubtypeMappedToTwoParamsWithFirstInvalid.antlrtree.txt index da18de8d9..7a9ec1c13 100644 --- a/grammar/testData/diagnostics/cast/IsErasedDissallowForSubtypeMappedToTwoParamsWithFirstInvalid.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedDissallowForSubtypeMappedToTwoParamsWithFirstInvalid.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedDissallowForSubtypeMappedToTwoParamsWithFirstInvalid.kt - 609323d4da9b3e0f547b677b5a92c072 +File: IsErasedDissallowForSubtypeMappedToTwoParamsWithFirstInvalid.kt - e51dacbde8a6de2a86217ff39dc14fd2 + NL("\n") packageHeader importList topLevelObject @@ -209,6 +210,4 @@ File: IsErasedDissallowForSubtypeMappedToTwoParamsWithFirstInvalid.kt - 609323d4 simpleIdentifier Identifier("A") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/IsErasedDissallowForSubtypeMappedToTwoParamsWithSecondInvalid.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedDissallowForSubtypeMappedToTwoParamsWithSecondInvalid.antlrtree.txt index 2c7a94623..1ec759ff6 100644 --- a/grammar/testData/diagnostics/cast/IsErasedDissallowForSubtypeMappedToTwoParamsWithSecondInvalid.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedDissallowForSubtypeMappedToTwoParamsWithSecondInvalid.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedDissallowForSubtypeMappedToTwoParamsWithSecondInvalid.kt - c45790a5eb0a601a732207ad3b754181 +File: IsErasedDissallowForSubtypeMappedToTwoParamsWithSecondInvalid.kt - 8fe1169653ef2a6b4e2d5555d2286b61 + NL("\n") packageHeader importList topLevelObject @@ -209,6 +210,4 @@ File: IsErasedDissallowForSubtypeMappedToTwoParamsWithSecondInvalid.kt - c45790a simpleIdentifier Identifier("A") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/IsErasedTasT.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedTasT.antlrtree.txt index 2c4a1e36a..a39a7f876 100644 --- a/grammar/testData/diagnostics/cast/IsErasedTasT.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedTasT.antlrtree.txt @@ -1,4 +1,5 @@ -File: IsErasedTasT.kt - 8e58ba4c814116f2f7f027974972af3f +File: IsErasedTasT.kt - 904e4b1b566740b2abbffd82b56eb995 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/cast/IsErasedUpcastToNonReified.antlrtree.txt b/grammar/testData/diagnostics/cast/IsErasedUpcastToNonReified.antlrtree.txt index 8517938fb..a3a107f6e 100644 --- a/grammar/testData/diagnostics/cast/IsErasedUpcastToNonReified.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsErasedUpcastToNonReified.antlrtree.txt @@ -692,6 +692,4 @@ File: IsErasedUpcastToNonReified.kt - 04276d2c646e127d57e47482c3ee6884 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/IsForTypeWithComplexUpperBound.antlrtree.txt b/grammar/testData/diagnostics/cast/IsForTypeWithComplexUpperBound.antlrtree.txt index 61a57b9d9..1d48a78f1 100644 --- a/grammar/testData/diagnostics/cast/IsForTypeWithComplexUpperBound.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsForTypeWithComplexUpperBound.antlrtree.txt @@ -757,6 +757,4 @@ File: IsForTypeWithComplexUpperBound.kt - 948c7c6b6f6de56394180893dd48c500 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/IsRecursionSustainable.antlrtree.txt b/grammar/testData/diagnostics/cast/IsRecursionSustainable.antlrtree.txt index 5f9105ffb..8524cead7 100644 --- a/grammar/testData/diagnostics/cast/IsRecursionSustainable.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsRecursionSustainable.antlrtree.txt @@ -1,4 +1,4 @@ -File: IsRecursionSustainable.kt - dcb5d37b3d9210879558d2fc11f439f6 +File: IsRecursionSustainable.kt - 01d23df94299ff105ba33a563c75d876 packageHeader importList topLevelObject @@ -261,5 +261,5 @@ File: IsRecursionSustainable.kt - dcb5d37b3d9210879558d2fc11f439f6 Identifier("String") RANGLE(">") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/cast/IsWithCycleUpperBounds.antlrtree.txt b/grammar/testData/diagnostics/cast/IsWithCycleUpperBounds.antlrtree.txt index 064375f92..296e94c7a 100644 --- a/grammar/testData/diagnostics/cast/IsWithCycleUpperBounds.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/IsWithCycleUpperBounds.antlrtree.txt @@ -253,6 +253,4 @@ File: IsWithCycleUpperBounds.kt - 677d395bc88a04e37f2bb36083a3b868 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/NullableToNullable.antlrtree.txt b/grammar/testData/diagnostics/cast/NullableToNullable.antlrtree.txt index fb178bcfe..028b6dbc3 100644 --- a/grammar/testData/diagnostics/cast/NullableToNullable.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/NullableToNullable.antlrtree.txt @@ -159,6 +159,4 @@ File: NullableToNullable.kt - 4a2dd5e56b43439b510d59a1d352deb3 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/StableTypeForUselessCast.antlrtree.txt b/grammar/testData/diagnostics/cast/StableTypeForUselessCast.antlrtree.txt index a877e04fd..60787a1ac 100644 --- a/grammar/testData/diagnostics/cast/StableTypeForUselessCast.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/StableTypeForUselessCast.antlrtree.txt @@ -263,6 +263,4 @@ File: StableTypeForUselessCast.kt - e6a8234bf2dc1a06837deab34269e029 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/UselessSafeCast.antlrtree.txt b/grammar/testData/diagnostics/cast/UselessSafeCast.antlrtree.txt index ca4845905..dc56f9139 100644 --- a/grammar/testData/diagnostics/cast/UselessSafeCast.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/UselessSafeCast.antlrtree.txt @@ -1,5 +1,4 @@ -File: UselessSafeCast.kt - 45983efb1fda60ac27f8f3d827e57e4c - NL("\n") +File: UselessSafeCast.kt - 3d1fcca1a351922a61a1fa605f46bc0f NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/cast/WhenErasedDisallowFromAny.antlrtree.txt b/grammar/testData/diagnostics/cast/WhenErasedDisallowFromAny.antlrtree.txt index faca79e69..307bab749 100644 --- a/grammar/testData/diagnostics/cast/WhenErasedDisallowFromAny.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/WhenErasedDisallowFromAny.antlrtree.txt @@ -1,4 +1,5 @@ -File: WhenErasedDisallowFromAny.kt - a659b8cba93bc34b16732818513fb162 (WITH_ERRORS) +File: WhenErasedDisallowFromAny.kt - 767dbdb85400614b8ce365c315b4f117 (WITH_ERRORS) + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/cast/bare/AsNestedBare.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/AsNestedBare.antlrtree.txt index 4e422797d..f13395664 100644 --- a/grammar/testData/diagnostics/cast/bare/AsNestedBare.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/AsNestedBare.antlrtree.txt @@ -1,4 +1,5 @@ -File: AsNestedBare.kt - c822c52aae8511cca4063c9166a8f2d8 +File: AsNestedBare.kt - e694e8122322725cebabc4275602b25f + NL("\n") packageHeader importList topLevelObject @@ -216,6 +217,4 @@ File: AsNestedBare.kt - c822c52aae8511cca4063c9166a8f2d8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/AsNullable.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/AsNullable.antlrtree.txt index 2a49c1967..23f306a2c 100644 --- a/grammar/testData/diagnostics/cast/bare/AsNullable.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/AsNullable.antlrtree.txt @@ -198,6 +198,4 @@ File: AsNullable.kt - 032a66613eb81d13eaa35a0f13047b6e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/AsNullableNotEnough.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/AsNullableNotEnough.antlrtree.txt index 09bdeeac4..da2cdd093 100644 --- a/grammar/testData/diagnostics/cast/bare/AsNullableNotEnough.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/AsNullableNotEnough.antlrtree.txt @@ -1,4 +1,5 @@ -File: AsNullableNotEnough.kt - 1f5964c9ead153d124413316644aa4ba +File: AsNullableNotEnough.kt - 6f3770b5bab663420a8721f448334e56 + NL("\n") NL("\n") NL("\n") packageHeader @@ -158,6 +159,4 @@ File: AsNullableNotEnough.kt - 1f5964c9ead153d124413316644aa4ba semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/EitherAs.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/EitherAs.antlrtree.txt index 548d0ac45..f794ba333 100644 --- a/grammar/testData/diagnostics/cast/bare/EitherAs.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/EitherAs.antlrtree.txt @@ -511,6 +511,4 @@ File: EitherAs.kt - d8417bcfbf6d6a62570b8808ee9c02f5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/EitherIs.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/EitherIs.antlrtree.txt index 6067efe61..474e5d3e2 100644 --- a/grammar/testData/diagnostics/cast/bare/EitherIs.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/EitherIs.antlrtree.txt @@ -600,6 +600,4 @@ File: EitherIs.kt - 48b71d5a234202f678c08dbe92ef1875 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/EitherNotIs.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/EitherNotIs.antlrtree.txt index db276696b..1ce119f7a 100644 --- a/grammar/testData/diagnostics/cast/bare/EitherNotIs.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/EitherNotIs.antlrtree.txt @@ -600,6 +600,4 @@ File: EitherNotIs.kt - cc2f594b10c20dc4303b34224d0326ac semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/EitherSafeAs.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/EitherSafeAs.antlrtree.txt index 4060cb1eb..9fff04612 100644 --- a/grammar/testData/diagnostics/cast/bare/EitherSafeAs.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/EitherSafeAs.antlrtree.txt @@ -523,6 +523,4 @@ File: EitherSafeAs.kt - ee5deba3ddc3a30f717040bdf8b4e609 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/EitherWhen.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/EitherWhen.antlrtree.txt index ae5ed26e1..502d364ef 100644 --- a/grammar/testData/diagnostics/cast/bare/EitherWhen.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/EitherWhen.antlrtree.txt @@ -436,6 +436,4 @@ File: EitherWhen.kt - a5ca0b1e0a67920ccde25fe2086c30a0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/ErrorsInSubstitution.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/ErrorsInSubstitution.antlrtree.txt index e9ed7d8c7..0f0c77352 100644 --- a/grammar/testData/diagnostics/cast/bare/ErrorsInSubstitution.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/ErrorsInSubstitution.antlrtree.txt @@ -208,6 +208,4 @@ File: ErrorsInSubstitution.kt - ca19062e802758580d1b961e76700341 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/FromErrorType.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/FromErrorType.antlrtree.txt index 1b84e5602..f90db308f 100644 --- a/grammar/testData/diagnostics/cast/bare/FromErrorType.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/FromErrorType.antlrtree.txt @@ -149,6 +149,4 @@ File: FromErrorType.kt - 84b91ece0497d1e4aa39e5802b7ad102 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/NullableAs.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/NullableAs.antlrtree.txt index 7be218926..a8b80ec21 100644 --- a/grammar/testData/diagnostics/cast/bare/NullableAs.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/NullableAs.antlrtree.txt @@ -192,6 +192,4 @@ File: NullableAs.kt - 74e13bd78124025ba4ee3f0efe66857d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/NullableAsNotEnough.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/NullableAsNotEnough.antlrtree.txt index 3116f036f..e69ab51d0 100644 --- a/grammar/testData/diagnostics/cast/bare/NullableAsNotEnough.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/NullableAsNotEnough.antlrtree.txt @@ -152,6 +152,4 @@ File: NullableAsNotEnough.kt - 5982446b0d15ad6257d8d73a2b4a91cf semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/NullableAsNullable.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/NullableAsNullable.antlrtree.txt index 7e88dc232..e6552b30e 100644 --- a/grammar/testData/diagnostics/cast/bare/NullableAsNullable.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/NullableAsNullable.antlrtree.txt @@ -201,6 +201,4 @@ File: NullableAsNullable.kt - 90ab713dda9c52561e8106b4471c7a2a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/NullableAsNullableNotEnough.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/NullableAsNullableNotEnough.antlrtree.txt index 95ee8fd88..0bfb4660d 100644 --- a/grammar/testData/diagnostics/cast/bare/NullableAsNullableNotEnough.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/NullableAsNullableNotEnough.antlrtree.txt @@ -1,4 +1,5 @@ -File: NullableAsNullableNotEnough.kt - 86f825350ef466a6e6d047dfc9f8528a +File: NullableAsNullableNotEnough.kt - 608fcb2a241a0732f3a3946db564df21 + NL("\n") NL("\n") NL("\n") packageHeader @@ -160,6 +161,4 @@ File: NullableAsNullableNotEnough.kt - 86f825350ef466a6e6d047dfc9f8528a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/RedundantNullable.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/RedundantNullable.antlrtree.txt index 4b600b026..9ebdf2a65 100644 --- a/grammar/testData/diagnostics/cast/bare/RedundantNullable.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/RedundantNullable.antlrtree.txt @@ -1,4 +1,6 @@ -File: RedundantNullable.kt - 876429ec97090cb5faa3dc0c067a07bb +File: RedundantNullable.kt - 21a65ca406a802de77e2a2d9119eecf1 + NL("\n") + NL("\n") packageHeader importList topLevelObject @@ -114,6 +116,4 @@ File: RedundantNullable.kt - 876429ec97090cb5faa3dc0c067a07bb QUEST_NO_WS("?") quest QUEST_NO_WS("?") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/SupertypeChain.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/SupertypeChain.antlrtree.txt new file mode 100644 index 000000000..9435d9f69 --- /dev/null +++ b/grammar/testData/diagnostics/cast/bare/SupertypeChain.antlrtree.txt @@ -0,0 +1,386 @@ +File: SupertypeChain.kt - b15ed3e0c01e09176ecbac6e60ec8bbd + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Parent") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("DefaultParent") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Parent") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("TableDerived") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("DefaultParent") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("b") + functionValueParameters + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Parent") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("w") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + asOperator + AS_SAFE("as?") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TableDerived") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("b") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/ToErrorType.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/ToErrorType.antlrtree.txt index 95992d9c6..689046f46 100644 --- a/grammar/testData/diagnostics/cast/bare/ToErrorType.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/ToErrorType.antlrtree.txt @@ -118,6 +118,4 @@ File: ToErrorType.kt - 246e42a762f629811a5ae22f6f62f48b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/UnrelatedAs.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/UnrelatedAs.antlrtree.txt index 142469248..0f512fc12 100644 --- a/grammar/testData/diagnostics/cast/bare/UnrelatedAs.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/UnrelatedAs.antlrtree.txt @@ -149,6 +149,4 @@ File: UnrelatedAs.kt - 5c50d35ac7c1cc94ac401b377588a59f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/UnrelatedColon.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/UnrelatedColon.antlrtree.txt index def95dca7..eec4de24f 100644 --- a/grammar/testData/diagnostics/cast/bare/UnrelatedColon.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/UnrelatedColon.antlrtree.txt @@ -102,6 +102,4 @@ File: UnrelatedColon.kt - 9307130e7040719fd03224e33e2fe20f simpleIdentifier Identifier("tr") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/bare/UnrelatedIs.antlrtree.txt b/grammar/testData/diagnostics/cast/bare/UnrelatedIs.antlrtree.txt index 43c1cef5e..2b879fecd 100644 --- a/grammar/testData/diagnostics/cast/bare/UnrelatedIs.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/bare/UnrelatedIs.antlrtree.txt @@ -1,4 +1,5 @@ -File: UnrelatedIs.kt - 011ed93e1243263fd83feb6902ad1926 +File: UnrelatedIs.kt - f78cf3fdedaac510eaebdc339ad0ad4c + NL("\n") packageHeader importList topLevelObject @@ -72,6 +73,4 @@ File: UnrelatedIs.kt - 011ed93e1243263fd83feb6902ad1926 simpleUserType simpleIdentifier Identifier("G") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/constants.antlrtree.txt b/grammar/testData/diagnostics/cast/constants.antlrtree.txt index 4b4ae9e5c..693763f5b 100644 --- a/grammar/testData/diagnostics/cast/constants.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/constants.antlrtree.txt @@ -1256,6 +1256,4 @@ File: constants.kt - e2ffc9c4387f696382c74a0f4174c535 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/isAlwaysFalse.antlrtree.txt b/grammar/testData/diagnostics/cast/isAlwaysFalse.antlrtree.txt new file mode 100644 index 000000000..fc984fc27 --- /dev/null +++ b/grammar/testData/diagnostics/cast/isAlwaysFalse.antlrtree.txt @@ -0,0 +1,1152 @@ +File: isAlwaysFalse.kt - ae235fa6681d6eceb4f4c3f72ca15c68 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("AS") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("BS") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("AS") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("AI") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("BI") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("AI") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AS") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BS") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AI") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BI") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AS") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BS") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AI") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BI") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AS") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BS") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AI") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BI") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AS") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BS") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AI") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BI") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AS") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BS") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AI") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BI") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/cast/isErasedAnyAndStarred.antlrtree.txt b/grammar/testData/diagnostics/cast/isErasedAnyAndStarred.antlrtree.txt index 780c55584..1299b517b 100644 --- a/grammar/testData/diagnostics/cast/isErasedAnyAndStarred.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/isErasedAnyAndStarred.antlrtree.txt @@ -70,6 +70,4 @@ File: isErasedAnyAndStarred.kt - ea983ac7fcb6fc2500b96cd077ae9a27 typeProjection MULT("*") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/isErasedTAndStarred.antlrtree.txt b/grammar/testData/diagnostics/cast/isErasedTAndStarred.antlrtree.txt index fcd3483be..9424b2876 100644 --- a/grammar/testData/diagnostics/cast/isErasedTAndStarred.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/isErasedTAndStarred.antlrtree.txt @@ -76,6 +76,4 @@ File: isErasedTAndStarred.kt - 0652fc2589dd1c41470488d2e59f08d1 typeProjection MULT("*") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/isErasedUnrelatedAndStarred.antlrtree.txt b/grammar/testData/diagnostics/cast/isErasedUnrelatedAndStarred.antlrtree.txt index 61cdfb42a..7b89bde54 100644 --- a/grammar/testData/diagnostics/cast/isErasedUnrelatedAndStarred.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/isErasedUnrelatedAndStarred.antlrtree.txt @@ -78,6 +78,4 @@ File: isErasedUnrelatedAndStarred.kt - 4b19d87c7e8e08aee43ab394d30a18ab typeProjection MULT("*") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/kt15161.antlrtree.txt b/grammar/testData/diagnostics/cast/kt15161.antlrtree.txt index c22abb750..951d9769a 100644 --- a/grammar/testData/diagnostics/cast/kt15161.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/kt15161.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt15161.kt - 27db59d8393f3d1f36f080901c445aae - NL("\n") +File: kt15161.kt - 530ccf890dfa50eaa6ea37ea634f6093 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/cast/kt47685.antlrtree.txt b/grammar/testData/diagnostics/cast/kt47685.antlrtree.txt new file mode 100644 index 000000000..7fb6f3485 --- /dev/null +++ b/grammar/testData/diagnostics/cast/kt47685.antlrtree.txt @@ -0,0 +1,524 @@ +File: kt47685.kt - 62e339f7d4f1164bbeaf8221ac537a1c + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("KtFunction") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("ASTDelegatePsiElement") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("KtNamedFunction") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ASTDelegatePsiElement") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KtFunction") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("KtFunctionLiteral") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ASTDelegatePsiElement") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KtFunction") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("namedFunction") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KtNamedFunction") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("functionLiteral") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KtFunctionLiteral") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("cond") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("function") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("cond") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("namedFunction") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("functionLiteral") + semi + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("function") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("function") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("function") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KtNamedFunction") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("function") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("myNamedFunction") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("function") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KtNamedFunction") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/cast/kt614.antlrtree.txt b/grammar/testData/diagnostics/cast/kt614.antlrtree.txt index f50021306..345ac3bd2 100644 --- a/grammar/testData/diagnostics/cast/kt614.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/kt614.antlrtree.txt @@ -62,6 +62,4 @@ File: kt614.kt - b55850526fe26f29ba3d6db134cc2159 RANGLE(">") quest QUEST_NO_WS("?") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/neverSucceeds/CastToNotNullSuper.antlrtree.txt b/grammar/testData/diagnostics/cast/neverSucceeds/CastToNotNullSuper.antlrtree.txt index 4b6b71e06..7e51b276f 100644 --- a/grammar/testData/diagnostics/cast/neverSucceeds/CastToNotNullSuper.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/neverSucceeds/CastToNotNullSuper.antlrtree.txt @@ -144,6 +144,4 @@ File: CastToNotNullSuper.kt - 9289ca68b64cd0cb18853d71b2e9d63f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cast/neverSucceeds/MappedDirect.antlrtree.txt b/grammar/testData/diagnostics/cast/neverSucceeds/MappedDirect.antlrtree.txt index b0e76c4c4..fb7104672 100644 --- a/grammar/testData/diagnostics/cast/neverSucceeds/MappedDirect.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/neverSucceeds/MappedDirect.antlrtree.txt @@ -1,4 +1,5 @@ -File: MappedDirect.kt - 5975c036e080c3d49317b25ad281d46a +File: MappedDirect.kt - a5ca639818cd4a93d6e80d584ccbcc4b + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/cast/neverSucceeds/MappedSubtypes.antlrtree.txt b/grammar/testData/diagnostics/cast/neverSucceeds/MappedSubtypes.antlrtree.txt index 4da262766..bdbb1e960 100644 --- a/grammar/testData/diagnostics/cast/neverSucceeds/MappedSubtypes.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/neverSucceeds/MappedSubtypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: MappedSubtypes.kt - da7c2d6601defee411ec1a79d3705ad4 +File: MappedSubtypes.kt - 4c0ec82e653a18ffae6631c6fb2a2419 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/cast/neverSucceeds/NoGenericsUnrelated.antlrtree.txt b/grammar/testData/diagnostics/cast/neverSucceeds/NoGenericsUnrelated.antlrtree.txt index 64c02a6d2..c356ab605 100644 --- a/grammar/testData/diagnostics/cast/neverSucceeds/NoGenericsUnrelated.antlrtree.txt +++ b/grammar/testData/diagnostics/cast/neverSucceeds/NoGenericsUnrelated.antlrtree.txt @@ -1,4 +1,5 @@ -File: NoGenericsUnrelated.kt - 95f6e45abc703092b18624e83c2d6c12 +File: NoGenericsUnrelated.kt - 29ca51183868a1abfadd75176bc6615f + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/checkArguments/SpreadVarargs.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/SpreadVarargs.antlrtree.txt index b86e3f126..c8718409d 100644 --- a/grammar/testData/diagnostics/checkArguments/SpreadVarargs.antlrtree.txt +++ b/grammar/testData/diagnostics/checkArguments/SpreadVarargs.antlrtree.txt @@ -1,5 +1,4 @@ -File: SpreadVarargs.kt - 2210a11804e45ef4c308fb3829efcf69 - NL("\n") +File: SpreadVarargs.kt - 5ad5d0e8ad8e5e06fc9bdf5dbc4d034c NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/checkArguments/arrayAccessSetNotEnoughArgs.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/arrayAccessSetNotEnoughArgs.antlrtree.txt new file mode 100644 index 000000000..3d9582253 --- /dev/null +++ b/grammar/testData/diagnostics/checkArguments/arrayAccessSetNotEnoughArgs.antlrtree.txt @@ -0,0 +1,156 @@ +File: arrayAccessSetNotEnoughArgs.kt - 6b70d8ac25d17dcf1303b7fc13063bc9 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + SET("set") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("d") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + assignableSuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RSQUARE("]") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/checkArguments/arrayAccessSetTooManyArgs.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/arrayAccessSetTooManyArgs.antlrtree.txt index 6d054c91c..17ad3abda 100644 --- a/grammar/testData/diagnostics/checkArguments/arrayAccessSetTooManyArgs.antlrtree.txt +++ b/grammar/testData/diagnostics/checkArguments/arrayAccessSetTooManyArgs.antlrtree.txt @@ -1,5 +1,4 @@ -File: arrayAccessSetTooManyArgs.kt - 658f544c0b3283b2a25781a6cf003ed4 - NL("\n") +File: arrayAccessSetTooManyArgs.kt - 8dda3773e61b5c8952987158c7e31f17 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/checkArguments/booleanExpressions.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/booleanExpressions.antlrtree.txt index f0887eb78..435a7e808 100644 --- a/grammar/testData/diagnostics/checkArguments/booleanExpressions.antlrtree.txt +++ b/grammar/testData/diagnostics/checkArguments/booleanExpressions.antlrtree.txt @@ -1,5 +1,4 @@ -File: booleanExpressions.kt - b32ee03780112f24e47c6445b19e77d9 - NL("\n") +File: booleanExpressions.kt - 7a1d4670416459072a3733b0616ad820 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/checkArguments/kt17691.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/kt17691.antlrtree.txt index 91d689668..3510fb23b 100644 --- a/grammar/testData/diagnostics/checkArguments/kt17691.antlrtree.txt +++ b/grammar/testData/diagnostics/checkArguments/kt17691.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt17691.kt - 23e45024d304411b2b61ee5a0737e010 +File: kt17691.kt - 32d0fdb32121e102df8182a3688b286d NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/checkArguments/kt17691WithEnabledFeature.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/kt17691WithEnabledFeature.antlrtree.txt index e9ee858a2..cfd748316 100644 --- a/grammar/testData/diagnostics/checkArguments/kt17691WithEnabledFeature.antlrtree.txt +++ b/grammar/testData/diagnostics/checkArguments/kt17691WithEnabledFeature.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt17691WithEnabledFeature.kt - 971d00c546f6a1fa9bcbd95e8b06cbf0 +File: kt17691WithEnabledFeature.kt - d787194341abee06f8964f9754f4024f + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/checkArguments/kt1897_diagnostic_part.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/kt1897_diagnostic_part.antlrtree.txt index a005f6580..352eb0465 100644 --- a/grammar/testData/diagnostics/checkArguments/kt1897_diagnostic_part.antlrtree.txt +++ b/grammar/testData/diagnostics/checkArguments/kt1897_diagnostic_part.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt1897_diagnostic_part.kt - e3082d312e9b6d690447811311e1d39f - NL("\n") +File: kt1897_diagnostic_part.kt - ddbc889c30a5f39a615f9b02d5c6d074 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/checkArguments/kt1940.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/kt1940.antlrtree.txt index 7bf55d006..4fc93c549 100644 --- a/grammar/testData/diagnostics/checkArguments/kt1940.antlrtree.txt +++ b/grammar/testData/diagnostics/checkArguments/kt1940.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt1940.kt - 711192c773b71af2966a3afb0f44f9f8 +File: kt1940.kt - be22dd08007b45b473e2109cdafa3cea + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -192,5 +193,5 @@ File: kt1940.kt - 711192c773b71af2966a3afb0f44f9f8 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/checkArguments/kt49276.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/kt49276.antlrtree.txt new file mode 100644 index 000000000..fc8aa16ab --- /dev/null +++ b/grammar/testData/diagnostics/checkArguments/kt49276.antlrtree.txt @@ -0,0 +1,1328 @@ +File: kt49276.kt - ebf23216a3efc3f95f21b89fae9b0be2 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("SmartList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("SmartList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("append") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("append") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("append2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterable") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("append2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("In") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JvmName") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("append31") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("append3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("append3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("append4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("append4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takes") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("range") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takes") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("range") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ClosedRange") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SmartList") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SmartList") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntRange") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("z") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("In") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append4") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntRange") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takes") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/checkArguments/kt49276Disabled.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/kt49276Disabled.antlrtree.txt new file mode 100644 index 000000000..e1161079d --- /dev/null +++ b/grammar/testData/diagnostics/checkArguments/kt49276Disabled.antlrtree.txt @@ -0,0 +1,1109 @@ +File: kt49276Disabled.kt - b548b579fc4fc3d11f39abe0cad42138 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("SmartList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("SmartList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("append") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("append") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("append2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterable") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("append2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("In") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JvmName") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("append31") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("append3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("append3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("append4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("append4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SmartList") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SmartList") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntRange") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("z") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("In") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/checkArguments/kt49276Error.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/kt49276Error.antlrtree.txt new file mode 100644 index 000000000..00819f06a --- /dev/null +++ b/grammar/testData/diagnostics/checkArguments/kt49276Error.antlrtree.txt @@ -0,0 +1,1108 @@ +File: kt49276Error.kt - 556d17fc3df92abe6f3d6e1b9b8ea5f4 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("SmartList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("SmartList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("append") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("append") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("append2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterable") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("append2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("In") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JvmName") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("append31") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("append3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("append3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("append4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("append4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SmartList") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SmartList") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntRange") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("z") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("In") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("append4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/checkArguments/kt51062.main.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/kt51062.main.antlrtree.txt new file mode 100644 index 000000000..8822a1a60 --- /dev/null +++ b/grammar/testData/diagnostics/checkArguments/kt51062.main.antlrtree.txt @@ -0,0 +1,859 @@ +File: kt51062.main.kt - e5683b7ebe8baf9e7fea49b6dc2f185b + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaSmartList") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaSmartList") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntRange") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaSmartList") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaSmartList") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaSmartList") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaSmartList") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("z") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaSmartList") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("append") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaSmartList") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("append2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaSmartList") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("append3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaSmartList") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("In") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaSmartList") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("append4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaSmartList") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("append4") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IntRange") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaSmartList") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takes") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/checkArguments/overloadedFunction.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/overloadedFunction.antlrtree.txt index 1ca3b0ce5..dc6f8412c 100644 --- a/grammar/testData/diagnostics/checkArguments/overloadedFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/checkArguments/overloadedFunction.antlrtree.txt @@ -1,5 +1,4 @@ -File: overloadedFunction.kt - 06766d64daa0ef2d05b227debe011f00 - NL("\n") +File: overloadedFunction.kt - de8b57c20f703daf4d04ea2de19c03bf NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/checkArguments/twoLambdasFunction.antlrtree.txt b/grammar/testData/diagnostics/checkArguments/twoLambdasFunction.antlrtree.txt index e0c0bf6eb..34193c8c4 100644 --- a/grammar/testData/diagnostics/checkArguments/twoLambdasFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/checkArguments/twoLambdasFunction.antlrtree.txt @@ -1,5 +1,4 @@ -File: twoLambdasFunction.kt - 29cbd31e3f5bffe569d27a0b54353e18 - NL("\n") +File: twoLambdasFunction.kt - 574cdbeb65d7648f3e152c477c322c86 NL("\n") NL("\n") packageHeader @@ -152,6 +151,4 @@ File: twoLambdasFunction.kt - 29cbd31e3f5bffe569d27a0b54353e18 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/checkTypeTest.antlrtree.txt b/grammar/testData/diagnostics/checkTypeTest.antlrtree.txt new file mode 100644 index 000000000..d7b1628cb --- /dev/null +++ b/grammar/testData/diagnostics/checkTypeTest.antlrtree.txt @@ -0,0 +1,286 @@ +File: checkTypeTest.kt - f5c087453834673829411dbe12749843 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/classLiteral/arrays.antlrtree.txt b/grammar/testData/diagnostics/classLiteral/arrays.antlrtree.txt index 4c2078178..bdae92e58 100644 --- a/grammar/testData/diagnostics/classLiteral/arrays.antlrtree.txt +++ b/grammar/testData/diagnostics/classLiteral/arrays.antlrtree.txt @@ -320,6 +320,4 @@ File: arrays.kt - 773f247f32cba68e6a592ac7510b2fd1 COLONCOLON("::") CLASS("class") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/classLiteral/classAndObjectLiteralType.antlrtree.txt b/grammar/testData/diagnostics/classLiteral/classAndObjectLiteralType.antlrtree.txt index cbf52c3a7..1a069a6bb 100644 --- a/grammar/testData/diagnostics/classLiteral/classAndObjectLiteralType.antlrtree.txt +++ b/grammar/testData/diagnostics/classLiteral/classAndObjectLiteralType.antlrtree.txt @@ -410,6 +410,4 @@ File: classAndObjectLiteralType.kt - 8b354c60a8454009e2fb1df844804c73 memberAccessOperator COLONCOLON("::") CLASS("class") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/classLiteral/classLiteralType.antlrtree.txt b/grammar/testData/diagnostics/classLiteral/classLiteralType.antlrtree.txt index 545c8053f..79c39c39f 100644 --- a/grammar/testData/diagnostics/classLiteral/classLiteralType.antlrtree.txt +++ b/grammar/testData/diagnostics/classLiteral/classLiteralType.antlrtree.txt @@ -439,6 +439,4 @@ File: classLiteralType.kt - a87e63eae1976bf12b838ae2f32f9143 COLONCOLON("::") CLASS("class") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/classLiteral/genericClasses.antlrtree.txt b/grammar/testData/diagnostics/classLiteral/genericClasses.antlrtree.txt index f6641fe48..ca3ce626c 100644 --- a/grammar/testData/diagnostics/classLiteral/genericClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/classLiteral/genericClasses.antlrtree.txt @@ -632,6 +632,4 @@ File: genericClasses.kt - 045e72e42666434237bd4d18e282fc33 memberAccessOperator COLONCOLON("::") CLASS("class") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/classLiteral/integerValueType.antlrtree.txt b/grammar/testData/diagnostics/classLiteral/integerValueType.antlrtree.txt index 4c36d3274..08a664388 100644 --- a/grammar/testData/diagnostics/classLiteral/integerValueType.antlrtree.txt +++ b/grammar/testData/diagnostics/classLiteral/integerValueType.antlrtree.txt @@ -1,4 +1,5 @@ -File: integerValueType.kt - 75dc88af2f9b4d8847124ae3874f598e +File: integerValueType.kt - 9a0e331ff8305c5674b5ab02ca9eeeff + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/classLiteral/nonClassesOnLHS.antlrtree.txt b/grammar/testData/diagnostics/classLiteral/nonClassesOnLHS.antlrtree.txt index ad002b788..66e3619ee 100644 --- a/grammar/testData/diagnostics/classLiteral/nonClassesOnLHS.antlrtree.txt +++ b/grammar/testData/diagnostics/classLiteral/nonClassesOnLHS.antlrtree.txt @@ -394,6 +394,4 @@ File: nonClassesOnLHS.kt - 0b5a0af5afd50b643506a3dd1e422474 COLONCOLON("::") CLASS("class") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/classLiteral/qualifiedClassLiteral.antlrtree.txt b/grammar/testData/diagnostics/classLiteral/qualifiedClassLiteral.antlrtree.txt index 86eebd457..8fb8e8a71 100644 --- a/grammar/testData/diagnostics/classLiteral/qualifiedClassLiteral.antlrtree.txt +++ b/grammar/testData/diagnostics/classLiteral/qualifiedClassLiteral.antlrtree.txt @@ -119,6 +119,4 @@ File: qualifiedClassLiteral.kt - 581bca19b11f36a30c65b0b50eb516ad COLONCOLON("::") CLASS("class") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/classLiteral/simpleClassLiteral.antlrtree.txt b/grammar/testData/diagnostics/classLiteral/simpleClassLiteral.antlrtree.txt index d144ccddc..2a01a5b46 100644 --- a/grammar/testData/diagnostics/classLiteral/simpleClassLiteral.antlrtree.txt +++ b/grammar/testData/diagnostics/classLiteral/simpleClassLiteral.antlrtree.txt @@ -43,6 +43,4 @@ File: simpleClassLiteral.kt - 368371ac4fe7965c18c09a98c11bcb1b COLONCOLON("::") CLASS("class") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/classLiteral/unresolvedClass.antlrtree.txt b/grammar/testData/diagnostics/classLiteral/unresolvedClass.antlrtree.txt index d9c06e214..f1dd0571d 100644 --- a/grammar/testData/diagnostics/classLiteral/unresolvedClass.antlrtree.txt +++ b/grammar/testData/diagnostics/classLiteral/unresolvedClass.antlrtree.txt @@ -76,6 +76,4 @@ File: unresolvedClass.kt - d76dadeb993cab93abe721513bbd2174 COLONCOLON("::") CLASS("class") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/classObjects/ClassObjectCannotAccessClassFields.antlrtree.txt b/grammar/testData/diagnostics/classObjects/ClassObjectCannotAccessClassFields.antlrtree.txt index 57286f949..e3d2b2a3a 100644 --- a/grammar/testData/diagnostics/classObjects/ClassObjectCannotAccessClassFields.antlrtree.txt +++ b/grammar/testData/diagnostics/classObjects/ClassObjectCannotAccessClassFields.antlrtree.txt @@ -85,6 +85,4 @@ File: ClassObjectCannotAccessClassFields.kt - 6fe64f2814e8fd86700d0f6c10c051f7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/classObjects/ClassObjects.antlrtree.txt b/grammar/testData/diagnostics/classObjects/ClassObjects.antlrtree.txt index 481c0923d..331710175 100644 --- a/grammar/testData/diagnostics/classObjects/ClassObjects.antlrtree.txt +++ b/grammar/testData/diagnostics/classObjects/ClassObjects.antlrtree.txt @@ -1,4 +1,5 @@ -File: ClassObjects.kt - 244f5598faec8e1906c9abe70c7af41f +File: ClassObjects.kt - 9770f19c95111d7406601804c636bdf2 + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -558,6 +559,4 @@ File: ClassObjects.kt - 244f5598faec8e1906c9abe70c7af41f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/classObjects/classObjectHeader.antlrtree.txt b/grammar/testData/diagnostics/classObjects/classObjectHeader.antlrtree.txt index e00b8933c..1afd58d56 100644 --- a/grammar/testData/diagnostics/classObjects/classObjectHeader.antlrtree.txt +++ b/grammar/testData/diagnostics/classObjects/classObjectHeader.antlrtree.txt @@ -1,4 +1,4 @@ -File: classObjectHeader.kt - 6a397584bee3696c34f10e8a3d16a917 +File: classObjectHeader.kt - 36903e1ff7be91af76cd74bb08b871e1 packageHeader PACKAGE("package") identifier @@ -211,5 +211,5 @@ File: classObjectHeader.kt - 6a397584bee3696c34f10e8a3d16a917 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/classObjects/classObjectInLocalClass.antlrtree.txt b/grammar/testData/diagnostics/classObjects/classObjectInLocalClass.antlrtree.txt index 6d171d9da..e28808f0f 100644 --- a/grammar/testData/diagnostics/classObjects/classObjectInLocalClass.antlrtree.txt +++ b/grammar/testData/diagnostics/classObjects/classObjectInLocalClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: classObjectInLocalClass.kt - cdc601b93571c08809fcfe5c95980583 +File: classObjectInLocalClass.kt - 3cdcab0663b01d708e13000e67097cb4 + NL("\n") packageHeader importList topLevelObject @@ -76,6 +77,4 @@ File: classObjectInLocalClass.kt - cdc601b93571c08809fcfe5c95980583 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/classObjects/classObjectRedeclaration.antlrtree.txt b/grammar/testData/diagnostics/classObjects/classObjectRedeclaration.antlrtree.txt index 1059f2e8d..e8d91b446 100644 --- a/grammar/testData/diagnostics/classObjects/classObjectRedeclaration.antlrtree.txt +++ b/grammar/testData/diagnostics/classObjects/classObjectRedeclaration.antlrtree.txt @@ -1,4 +1,5 @@ -File: classObjectRedeclaration.kt - 4e928a25cfeaeaec790ddaa712decf22 +File: classObjectRedeclaration.kt - de168fc6e2a75c7cffb6734d820f7244 + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -97,6 +98,4 @@ File: classObjectRedeclaration.kt - 4e928a25cfeaeaec790ddaa712decf22 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/classObjects/classWithFunctionSupertype_after.antlrtree.txt b/grammar/testData/diagnostics/classObjects/classWithFunctionSupertype_after.antlrtree.txt new file mode 100644 index 000000000..e29639763 --- /dev/null +++ b/grammar/testData/diagnostics/classObjects/classWithFunctionSupertype_after.antlrtree.txt @@ -0,0 +1,357 @@ +File: classWithFunctionSupertype_after.kt - 9300c68e0344645e66b1c19d6bc8385c (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + LPAREN("(") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Int") + RPAREN(")") + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Function0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("D") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("E") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + LPAREN("(") + topLevelObject + declaration + topLevelObject + declaration + SUSPEND("suspend") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Int") + RPAREN(")") + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("F") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("coroutines") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IA") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IB") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + LPAREN("(") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Int") + RPAREN(")") + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IC") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Function0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ID") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IE") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + LPAREN("(") + topLevelObject + declaration + topLevelObject + declaration + SUSPEND("suspend") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Int") + RPAREN(")") + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IF") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("coroutines") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/classObjects/classWithFunctionSupertype_before.antlrtree.txt b/grammar/testData/diagnostics/classObjects/classWithFunctionSupertype_before.antlrtree.txt new file mode 100644 index 000000000..c99c612ec --- /dev/null +++ b/grammar/testData/diagnostics/classObjects/classWithFunctionSupertype_before.antlrtree.txt @@ -0,0 +1,357 @@ +File: classWithFunctionSupertype_before.kt - 7b7ef05a32a9ef2f92cf56f3395ef3db (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + LPAREN("(") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Int") + RPAREN(")") + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Function0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("D") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("E") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + LPAREN("(") + topLevelObject + declaration + topLevelObject + declaration + SUSPEND("suspend") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Int") + RPAREN(")") + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("F") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("coroutines") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IA") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IB") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + LPAREN("(") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Int") + RPAREN(")") + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IC") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Function0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ID") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IE") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + LPAREN("(") + topLevelObject + declaration + topLevelObject + declaration + SUSPEND("suspend") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Int") + RPAREN(")") + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IF") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("coroutines") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/classObjects/companionObjectOfPrivateClassVisibility.antlrtree.txt b/grammar/testData/diagnostics/classObjects/companionObjectOfPrivateClassVisibility.antlrtree.txt index 0a3bfbc1d..ef81e0c8b 100644 --- a/grammar/testData/diagnostics/classObjects/companionObjectOfPrivateClassVisibility.antlrtree.txt +++ b/grammar/testData/diagnostics/classObjects/companionObjectOfPrivateClassVisibility.antlrtree.txt @@ -222,6 +222,4 @@ File: companionObjectOfPrivateClassVisibility.kt - 649dbb370437e925e27d4ac71ce73 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/classObjects/importClassInClassObject.antlrtree.txt b/grammar/testData/diagnostics/classObjects/importClassInClassObject.antlrtree.txt index 67ae01d1a..bfc8bd10b 100644 --- a/grammar/testData/diagnostics/classObjects/importClassInClassObject.antlrtree.txt +++ b/grammar/testData/diagnostics/classObjects/importClassInClassObject.antlrtree.txt @@ -93,6 +93,4 @@ File: importClassInClassObject.kt - e769e977664357e53ce64173ba532fa1 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/classObjects/kt3866.antlrtree.txt b/grammar/testData/diagnostics/classObjects/kt3866.antlrtree.txt index 9daf69d3a..a416fe602 100644 --- a/grammar/testData/diagnostics/classObjects/kt3866.antlrtree.txt +++ b/grammar/testData/diagnostics/classObjects/kt3866.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt3866.kt - 581ed24a1bf262ddb7dd0a697da4683c +File: kt3866.kt - 5fe6f3ffa11380b67eec83c39fe8be0c + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/classObjects/resolveFunctionInsideClassObject.antlrtree.txt b/grammar/testData/diagnostics/classObjects/resolveFunctionInsideClassObject.antlrtree.txt index 6dab80b0b..62b5282e2 100644 --- a/grammar/testData/diagnostics/classObjects/resolveFunctionInsideClassObject.antlrtree.txt +++ b/grammar/testData/diagnostics/classObjects/resolveFunctionInsideClassObject.antlrtree.txt @@ -102,6 +102,4 @@ File: resolveFunctionInsideClassObject.kt - 5c5e362025072f2a09899189fcf4f9c0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/classObjects/selfCallsInCompanionSuperConstructor_error.antlrtree.txt b/grammar/testData/diagnostics/classObjects/selfCallsInCompanionSuperConstructor_error.antlrtree.txt new file mode 100644 index 000000000..d721500b9 --- /dev/null +++ b/grammar/testData/diagnostics/classObjects/selfCallsInCompanionSuperConstructor_error.antlrtree.txt @@ -0,0 +1,803 @@ +File: selfCallsInCompanionSuperConstructor_error.kt - 8a6ecead9fb839adca8b6a0ccfeba802 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Base") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("baseProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + simpleIdentifier + Identifier("baseProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baseProp") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Foo1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("prop") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baseProp") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + simpleIdentifier + Identifier("baseProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baseProp") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Foo2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("prop") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseProp") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + simpleIdentifier + Identifier("baseProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baseProp") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Foo3") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("prop") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseProp") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + simpleIdentifier + Identifier("baseProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baseProp") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("MyObject") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Foo4") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyObject") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("prop") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyObject") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseProp") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("CheckNested") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested") + semis + NL("\n") + NL("\n") + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CheckNested") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Nested") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo5") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("MyObject") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Foo5") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyObject") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("prop") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/classObjects/selfCallsInCompanionSuperConstructor_warning.antlrtree.txt b/grammar/testData/diagnostics/classObjects/selfCallsInCompanionSuperConstructor_warning.antlrtree.txt new file mode 100644 index 000000000..22950a415 --- /dev/null +++ b/grammar/testData/diagnostics/classObjects/selfCallsInCompanionSuperConstructor_warning.antlrtree.txt @@ -0,0 +1,803 @@ +File: selfCallsInCompanionSuperConstructor_warning.kt - ddf82128a385cd19e0d25c2e180aec13 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Base") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("baseProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + simpleIdentifier + Identifier("baseProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baseProp") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Foo1") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("prop") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baseProp") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + simpleIdentifier + Identifier("baseProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baseProp") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Foo2") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("prop") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseProp") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + simpleIdentifier + Identifier("baseProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baseProp") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Foo3") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("prop") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseProp") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + simpleIdentifier + Identifier("baseProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baseProp") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("MyObject") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Foo4") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyObject") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("prop") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyObject") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseProp") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("CheckNested") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested") + semis + NL("\n") + NL("\n") + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CheckNested") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Nested") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo5") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("MyObject") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Foo5") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyObject") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("prop") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/classObjects/typeParametersInAnnonymousObject.antlrtree.txt b/grammar/testData/diagnostics/classObjects/typeParametersInAnnonymousObject.antlrtree.txt index 05c604247..33cf89e90 100644 --- a/grammar/testData/diagnostics/classObjects/typeParametersInAnnonymousObject.antlrtree.txt +++ b/grammar/testData/diagnostics/classObjects/typeParametersInAnnonymousObject.antlrtree.txt @@ -1,4 +1,4 @@ -File: typeParametersInAnnonymousObject.kt - 67cd2070ac43474984519764d13f1d51 (WITH_ERRORS) +File: typeParametersInAnnonymousObject.kt - c263815901af2a573655adc33d809111 (WITH_ERRORS) NL("\n") NL("\n") NL("\n") @@ -683,6 +683,234 @@ File: typeParametersInAnnonymousObject.kt - 67cd2070ac43474984519764d13f1d51 (WI RCURL("}") semis NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") RCURL("}") semis NL("\n") diff --git a/grammar/testData/diagnostics/classObjects/typeParametersInAnnonymousObject_after.antlrtree.txt b/grammar/testData/diagnostics/classObjects/typeParametersInAnnonymousObject_after.antlrtree.txt index 44ed4a005..df57750e7 100644 --- a/grammar/testData/diagnostics/classObjects/typeParametersInAnnonymousObject_after.antlrtree.txt +++ b/grammar/testData/diagnostics/classObjects/typeParametersInAnnonymousObject_after.antlrtree.txt @@ -1,4 +1,4 @@ -File: typeParametersInAnnonymousObject_after.kt - 3f2fb187b3064baf96aac06a1b2bfe7d (WITH_ERRORS) +File: typeParametersInAnnonymousObject_after.kt - 35c243b8f55d24f1ef2684c53dffd89b (WITH_ERRORS) NL("\n") NL("\n") NL("\n") @@ -683,6 +683,234 @@ File: typeParametersInAnnonymousObject_after.kt - 3f2fb187b3064baf96aac06a1b2bfe RCURL("}") semis NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") RCURL("}") semis NL("\n") diff --git a/grammar/testData/diagnostics/classObjects/typeParametersInObject.antlrtree.txt b/grammar/testData/diagnostics/classObjects/typeParametersInObject.antlrtree.txt index 8e0180270..9dfb7dce2 100644 --- a/grammar/testData/diagnostics/classObjects/typeParametersInObject.antlrtree.txt +++ b/grammar/testData/diagnostics/classObjects/typeParametersInObject.antlrtree.txt @@ -1,4 +1,5 @@ -File: typeParametersInObject.kt - 0043f38b2f957f7591a69a9d12ff8448 (WITH_ERRORS) +File: typeParametersInObject.kt - a1ed880838404baba9e59a37d79dc14a (WITH_ERRORS) + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/collectionLiterals/argumentsOfAnnotation.antlrtree.txt b/grammar/testData/diagnostics/collectionLiterals/argumentsOfAnnotation.antlrtree.txt index 934c09dcc..2419fe341 100644 --- a/grammar/testData/diagnostics/collectionLiterals/argumentsOfAnnotation.antlrtree.txt +++ b/grammar/testData/diagnostics/collectionLiterals/argumentsOfAnnotation.antlrtree.txt @@ -1,7 +1,4 @@ -File: argumentsOfAnnotation.kt - 59ba4655b0fbf9bfb24e177318dfe4de - NL("\n") - NL("\n") - NL("\n") +File: argumentsOfAnnotation.kt - b8da118d22c977e8544e51428007cac3 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/collectionLiterals/argumentsOfAnnotationWithKClass.antlrtree.txt b/grammar/testData/diagnostics/collectionLiterals/argumentsOfAnnotationWithKClass.antlrtree.txt index c075e9ff8..ae479d885 100644 --- a/grammar/testData/diagnostics/collectionLiterals/argumentsOfAnnotationWithKClass.antlrtree.txt +++ b/grammar/testData/diagnostics/collectionLiterals/argumentsOfAnnotationWithKClass.antlrtree.txt @@ -1,5 +1,4 @@ -File: argumentsOfAnnotationWithKClass.kt - ac582133073c215bf2a8c245e8ff1cf5 - NL("\n") +File: argumentsOfAnnotationWithKClass.kt - e0289cb69c990720485fb33e93576643 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/collectionLiterals/basicCollectionLiterals.antlrtree.txt b/grammar/testData/diagnostics/collectionLiterals/basicCollectionLiterals.antlrtree.txt index ab1214d2f..34cbc5db4 100644 --- a/grammar/testData/diagnostics/collectionLiterals/basicCollectionLiterals.antlrtree.txt +++ b/grammar/testData/diagnostics/collectionLiterals/basicCollectionLiterals.antlrtree.txt @@ -1,5 +1,4 @@ -File: basicCollectionLiterals.kt - 03beca10cc92796148e600a3756d0ba0 - NL("\n") +File: basicCollectionLiterals.kt - df59fe1087cd30550ba75f193347dee6 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsAsPrimitiveArrays.antlrtree.txt b/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsAsPrimitiveArrays.antlrtree.txt index 8d84111eb..61dc8e83b 100644 --- a/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsAsPrimitiveArrays.antlrtree.txt +++ b/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsAsPrimitiveArrays.antlrtree.txt @@ -651,6 +651,4 @@ File: collectionLiteralsAsPrimitiveArrays.kt - a3a32eb1200e7dea1b954978f168c464 RSQUARE("]") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsOutsideOfAnnotations.antlrtree.txt b/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsOutsideOfAnnotations.antlrtree.txt index 4da27da61..eede48edb 100644 --- a/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsOutsideOfAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsOutsideOfAnnotations.antlrtree.txt @@ -1,4 +1,4 @@ -File: collectionLiteralsOutsideOfAnnotations.kt - 4038b68d42acd52a37e326c733c66561 +File: collectionLiteralsOutsideOfAnnotations.kt - 208d02a4bad2d5754ecf0beb18d5527b NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsWithVarargs.antlrtree.txt b/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsWithVarargs.antlrtree.txt index ec8d52f3b..dda9876db 100644 --- a/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsWithVarargs.antlrtree.txt +++ b/grammar/testData/diagnostics/collectionLiterals/collectionLiteralsWithVarargs.antlrtree.txt @@ -1,5 +1,4 @@ -File: collectionLiteralsWithVarargs.kt - 1c7c2a7041b0e42c39b7531d7e00487e - NL("\n") +File: collectionLiteralsWithVarargs.kt - a1be15379f5d62641179108b54878b51 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/collectionLiterals/defaultValuesInAnnotation.antlrtree.txt b/grammar/testData/diagnostics/collectionLiterals/defaultValuesInAnnotation.antlrtree.txt index d1a036a3f..4e0487b92 100644 --- a/grammar/testData/diagnostics/collectionLiterals/defaultValuesInAnnotation.antlrtree.txt +++ b/grammar/testData/diagnostics/collectionLiterals/defaultValuesInAnnotation.antlrtree.txt @@ -1,7 +1,4 @@ -File: defaultValuesInAnnotation.kt - 1fc1e7d93765b955dfd6b7d9d602c1e9 (WITH_ERRORS) - NL("\n") - NL("\n") - NL("\n") +File: defaultValuesInAnnotation.kt - 6f6e65f83b1a6eadf5dcfbd5fc3e44e6 (WITH_ERRORS) packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/collectionLiterals/defaultValuesWithConstantsInAnnotation.antlrtree.txt b/grammar/testData/diagnostics/collectionLiterals/defaultValuesWithConstantsInAnnotation.antlrtree.txt index b2008bf24..89244b9c6 100644 --- a/grammar/testData/diagnostics/collectionLiterals/defaultValuesWithConstantsInAnnotation.antlrtree.txt +++ b/grammar/testData/diagnostics/collectionLiterals/defaultValuesWithConstantsInAnnotation.antlrtree.txt @@ -1,6 +1,4 @@ -File: defaultValuesWithConstantsInAnnotation.kt - f4c93ff82bc00329b58940ca880f2c5c - NL("\n") - NL("\n") +File: defaultValuesWithConstantsInAnnotation.kt - bbf417742a3db19c83bcb6bb809d727f packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/collectionLiterals/kt34515.antlrtree.txt b/grammar/testData/diagnostics/collectionLiterals/kt34515.antlrtree.txt new file mode 100644 index 000000000..869ff11d7 --- /dev/null +++ b/grammar/testData/diagnostics/collectionLiterals/kt34515.antlrtree.txt @@ -0,0 +1,51 @@ +File: kt34515.kt - 1c4c039af244b29c1a0a1af8308c6d72 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + RSQUARE("]") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/collectionLiterals/noCollectionLiterals.antlrtree.txt b/grammar/testData/diagnostics/collectionLiterals/noCollectionLiterals.antlrtree.txt index 84492be4b..5928932c2 100644 --- a/grammar/testData/diagnostics/collectionLiterals/noCollectionLiterals.antlrtree.txt +++ b/grammar/testData/diagnostics/collectionLiterals/noCollectionLiterals.antlrtree.txt @@ -1,5 +1,4 @@ -File: noCollectionLiterals.kt - e1c5a705cd88452a78ad52ced6c23dd5 - NL("\n") +File: noCollectionLiterals.kt - deca5a2494b99eaf12d852f3239b56ce packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/collectionLiterals/resolveToFunctionFromBuiltIns.antlrtree.txt b/grammar/testData/diagnostics/collectionLiterals/resolveToFunctionFromBuiltIns.antlrtree.txt index afe3cd610..7b7239ee5 100644 --- a/grammar/testData/diagnostics/collectionLiterals/resolveToFunctionFromBuiltIns.antlrtree.txt +++ b/grammar/testData/diagnostics/collectionLiterals/resolveToFunctionFromBuiltIns.antlrtree.txt @@ -1,5 +1,4 @@ -File: resolveToFunctionFromBuiltIns.kt - d171360b36d7cdc10c54663133c43c21 - NL("\n") +File: resolveToFunctionFromBuiltIns.kt - cce80486972279fe9c1e7a223082e1e1 NL("\n") NL("\n") NL("\n") @@ -530,5 +529,5 @@ File: resolveToFunctionFromBuiltIns.kt - d171360b36d7cdc10c54663133c43c21 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/classObjectProperty.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/classObjectProperty.antlrtree.txt new file mode 100644 index 000000000..215c34079 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/classObjectProperty.antlrtree.txt @@ -0,0 +1,658 @@ +File: classObjectProperty.kt - 7f2e6b4e67bbddfacb8f66e68e79c806 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop8") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("prop7") + NL("\n") + NL("\n") + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop9") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/compareTo.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/compareTo.antlrtree.txt new file mode 100644 index 000000000..30a7976d5 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/compareTo.antlrtree.txt @@ -0,0 +1,320 @@ +File: compareTo.kt - 6d2833cb546c938a6c66b9751e828cb3 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + comparisonOperator + LE("<=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + comparisonOperator + GE(">=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("compareTo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("compareTo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/differentTypes.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/differentTypes.antlrtree.txt new file mode 100644 index 000000000..a909f2ed2 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/differentTypes.antlrtree.txt @@ -0,0 +1,560 @@ +File: differentTypes.kt - 8ba44427c833838930cde9b026b5392f + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop7") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop8") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop9") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("aaa") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop14") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("aaa") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop15") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop16") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/divideByZero.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/divideByZero.antlrtree.txt new file mode 100644 index 000000000..b0caa5a6f --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/divideByZero.antlrtree.txt @@ -0,0 +1,1142 @@ +File: divideByZero.kt - 183d09535804294f7dc07ab759d5aecb + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0.0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0.1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop8") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop9") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toDouble") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop13") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop14") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop15") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0.0") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop16") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0f") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop17") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0.0") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop18") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop19") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop20") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop21") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0.0") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop22") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop23") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop24") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0.0") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop26") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("rem") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop27") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("div") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/duplicateLabelWithNonTrivialCondition_disabled.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/duplicateLabelWithNonTrivialCondition_disabled.antlrtree.txt new file mode 100644 index 000000000..7f98b66f6 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/duplicateLabelWithNonTrivialCondition_disabled.antlrtree.txt @@ -0,0 +1,552 @@ +File: duplicateLabelWithNonTrivialCondition_disabled.kt - 73896251b29d910df61080ef55c65bf2 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("myF") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("myT") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("someBoolean") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("someBoolean") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("someBoolean") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("someBoolean") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/duplicateLabelWithNonTrivialCondition_enabled.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/duplicateLabelWithNonTrivialCondition_enabled.antlrtree.txt new file mode 100644 index 000000000..e1a697383 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/duplicateLabelWithNonTrivialCondition_enabled.antlrtree.txt @@ -0,0 +1,553 @@ +File: duplicateLabelWithNonTrivialCondition_enabled.kt - 670114967a48079190a8c899202ab1c3 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("myF") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("myT") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("someBoolean") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("someBoolean") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("someBoolean") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("someBoolean") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/equals.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/equals.antlrtree.txt new file mode 100644 index 000000000..68c8fdfdb --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/equals.antlrtree.txt @@ -0,0 +1,74 @@ +File: equals.kt - c52140ba62c35e8b1aaafb90ecef512d + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + excl + EXCL_NO_WS("!") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/exceptionWhenEvaluate.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/exceptionWhenEvaluate.antlrtree.txt new file mode 100644 index 000000000..ca3438c1d --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/exceptionWhenEvaluate.antlrtree.txt @@ -0,0 +1,71 @@ +File: exceptionWhenEvaluate.kt - f86a369dc1b08c3a8393e973c28957b4 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/finalProperty.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/finalProperty.antlrtree.txt new file mode 100644 index 000000000..3d6e2d138 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/finalProperty.antlrtree.txt @@ -0,0 +1,724 @@ +File: finalProperty.kt - e8c2f4872c87f136b77edc9bd90c68c4 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop9") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop8") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/float.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/float.antlrtree.txt new file mode 100644 index 000000000..2a9d1739f --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/float.antlrtree.txt @@ -0,0 +1,242 @@ +File: float.kt - d39f008b47294dfd4e0a6c3c878758ff + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1F") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0F") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1e-1F") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0e-1F") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0f") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1e-1f") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop8") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0e-1f") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/floatsAndDoubles.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/floatsAndDoubles.antlrtree.txt new file mode 100644 index 000000000..3bd8dce53 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/floatsAndDoubles.antlrtree.txt @@ -0,0 +1,759 @@ +File: floatsAndDoubles.kt - 8d9410c778766a30ac857d8f7e10a3ad + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Float") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Float") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Float") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Float") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lang") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Float") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("MAX_VALUE") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop7") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop8") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toDouble") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop9") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.2E400F") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop11") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.2E-400F") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop12") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("11111111111111111111111111111111111111111111111111111111111111111F") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop13") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0.000000000000000000000000000000000000000000000000000000000000001F") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop14") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0.000000000000000000000000000000000000001000000000000000000000000F") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop15") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.2E400") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop16") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.2E-400") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/integer.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/integer.antlrtree.txt new file mode 100644 index 000000000..34b6f3dbd --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/integer.antlrtree.txt @@ -0,0 +1,300 @@ +File: integer.kt - 317a58d9f8076663d86fd36562491054 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("1L") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("0x1L") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("0X1L") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("0b1L") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("0B1L") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("1l") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("0x1l") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop8") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("0X1l") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop9") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("0b1l") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("0B1l") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/integerOperations.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/integerOperations.antlrtree.txt new file mode 100644 index 000000000..14158fa0b --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/integerOperations.antlrtree.txt @@ -0,0 +1,490 @@ +File: integerOperations.kt - c63d4e75400424979c5e6ec2f09eac71 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("2L") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + HexLiteral("0x1234") + simpleIdentifier + Identifier("and") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + HexLiteral("0x5678") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + HexLiteral("0x1234") + simpleIdentifier + Identifier("and") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("0x5678L") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("0x1234L") + simpleIdentifier + Identifier("and") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + HexLiteral("0x5678") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x8") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("123_456_789_321") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1_000_000") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x9") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("123_456_789_321") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("100") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/integers.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/integers.antlrtree.txt new file mode 100644 index 000000000..5888ce839 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/integers.antlrtree.txt @@ -0,0 +1,151 @@ +File: integers.kt - d77516dfb77e575778572bb907230126 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + HexLiteral("0x7777777777") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + HexLiteral("0x7777777777") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + HexLiteral("0x7777777777") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'\n'") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("code") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/invAsCompileTimeCall.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/invAsCompileTimeCall.antlrtree.txt new file mode 100644 index 000000000..0fe702c07 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/invAsCompileTimeCall.antlrtree.txt @@ -0,0 +1,103 @@ +File: invAsCompileTimeCall.kt - 48d9e768ff98068e6c56aefccd5c94fe + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("Mask") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + HexLiteral("0xC0000000") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("Mask_Inv") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Mask") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/localVal.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/localVal.antlrtree.txt new file mode 100644 index 000000000..95e1ed10e --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/localVal.antlrtree.txt @@ -0,0 +1,595 @@ +File: localVal.kt - 4c6526529964e3fc199e89851d22d583 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + semis + NL("\n") + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("local") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop9") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop8") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/localVar.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/localVar.antlrtree.txt new file mode 100644 index 000000000..8d55d3127 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/localVar.antlrtree.txt @@ -0,0 +1,595 @@ +File: localVar.kt - a09c4082b3aaeddcfc155ba2af2ef374 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + semis + NL("\n") + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("local") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop9") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop8") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/nonFinalProperty.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/nonFinalProperty.antlrtree.txt new file mode 100644 index 000000000..13e69f537 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/nonFinalProperty.antlrtree.txt @@ -0,0 +1,725 @@ +File: nonFinalProperty.kt - 91243660b653a8be43bca653ac455381 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop9") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop8") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/objectProperty.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/objectProperty.antlrtree.txt new file mode 100644 index 000000000..178c1b370 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/objectProperty.antlrtree.txt @@ -0,0 +1,586 @@ +File: objectProperty.kt - 76851d7a25ca8d0a7dbee073dc570dd5 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop9") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/strings.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/strings.antlrtree.txt new file mode 100644 index 000000000..dd6828d65 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/strings.antlrtree.txt @@ -0,0 +1,628 @@ +File: strings.kt - bc591d126338277e6b69aa20181f877c + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("MyEnum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringExpression + LineStrExprStart("${") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RCURL("}") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("myEnum=") + lineStringExpression + LineStrExprStart("${") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + RCURL("}") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringExpression + LineStrExprStart("${") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RCURL("}") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringExpression + LineStrExprStart("${") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RCURL("}") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringExpression + LineStrExprStart("${") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringExpression + LineStrExprStart("${") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1.0") + RCURL("}") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringExpression + LineStrExprStart("${") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Int") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("java") + RCURL("}") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop8") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + lineStringExpression + LineStrExprStart("${") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toDouble") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop9") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("b") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("prop9") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("b") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("kotlin") + QUOTE_CLOSE(""") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/topLevelVal.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/topLevelVal.antlrtree.txt new file mode 100644 index 000000000..2202fefee --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/topLevelVal.antlrtree.txt @@ -0,0 +1,523 @@ +File: topLevelVal.kt - d7eea5a53e18bac13fca2cf63f959416 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop9") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/topLevelVar.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/topLevelVar.antlrtree.txt new file mode 100644 index 000000000..d2bcf904a --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/topLevelVar.antlrtree.txt @@ -0,0 +1,523 @@ +File: topLevelVar.kt - bc80194e81b58df37ccd8eb82973fe8f + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop9") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/unaryMinusIndepWoExpType.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/unaryMinusIndepWoExpType.antlrtree.txt new file mode 100644 index 000000000..9dfcd8a7b --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/unaryMinusIndepWoExpType.antlrtree.txt @@ -0,0 +1,338 @@ +File: unaryMinusIndepWoExpType.kt - a0adf38fd4f529a4d240b2e12d1a26d9 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p3a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p5a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/constant/unaryMinusIndependentExpType.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/constant/unaryMinusIndependentExpType.antlrtree.txt new file mode 100644 index 000000000..ba9e9d9c3 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/constant/unaryMinusIndependentExpType.antlrtree.txt @@ -0,0 +1,968 @@ +File: unaryMinusIndependentExpType.kt - 22763f42d5e59d694619c980e1cf064d + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("l1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("l2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("l3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("l4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/isPure/innerToType.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/isPure/innerToType.antlrtree.txt new file mode 100644 index 000000000..a216f4f93 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/isPure/innerToType.antlrtree.txt @@ -0,0 +1,209 @@ +File: innerToType.kt - fea4adb5911534141296f6156b8a5519 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/isPure/namedConstants.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/isPure/namedConstants.antlrtree.txt new file mode 100644 index 000000000..bf2ebd276 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/isPure/namedConstants.antlrtree.txt @@ -0,0 +1,105 @@ +File: namedConstants.kt - a216748b4eba8c6854d1b1d7eca6b8f2 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("NAMED_CONSTANT") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NAMED_CONSTANT") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NAMED_CONSTANT") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/isPure/toType.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/isPure/toType.antlrtree.txt new file mode 100644 index 000000000..5b7fc56ca --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/isPure/toType.antlrtree.txt @@ -0,0 +1,210 @@ +File: toType.kt - 1de1dde44a99bc25abba8ca5d6d2f431 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toChar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/isPure/unaryMinusIndepWoExpType.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/isPure/unaryMinusIndepWoExpType.antlrtree.txt new file mode 100644 index 000000000..e74e4995b --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/isPure/unaryMinusIndepWoExpType.antlrtree.txt @@ -0,0 +1,214 @@ +File: unaryMinusIndepWoExpType.kt - 3055495785de9ab3fbc8b171c0377598 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/isPure/unaryMinusIndependentExpType.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/isPure/unaryMinusIndependentExpType.antlrtree.txt new file mode 100644 index 000000000..79ce203c1 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/isPure/unaryMinusIndependentExpType.antlrtree.txt @@ -0,0 +1,968 @@ +File: unaryMinusIndependentExpType.kt - 85df0b7c9605a2596a1c0e95f2248d6f + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("l1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("l2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("l3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("l4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/usesVariableAsConstant/NamedConstants.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/usesVariableAsConstant/NamedConstants.antlrtree.txt new file mode 100644 index 000000000..1e1dadc20 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/usesVariableAsConstant/NamedConstants.antlrtree.txt @@ -0,0 +1,128 @@ +File: NamedConstants.kt - b60609bcb770cf54bf6a9e32dd60cb28 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/usesVariableAsConstant/OtherTypes.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/usesVariableAsConstant/OtherTypes.antlrtree.txt new file mode 100644 index 000000000..133898389 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/usesVariableAsConstant/OtherTypes.antlrtree.txt @@ -0,0 +1,409 @@ +File: OtherTypes.kt - a1d029fcdfe76fddb40aa513a6ee9611 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("MyEnum") + enumClassBody + LCURL("{") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("B") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrRef("$x") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intArrayOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intArrayOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/usesVariableAsConstant/binaryTypes.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/usesVariableAsConstant/binaryTypes.antlrtree.txt new file mode 100644 index 000000000..3cdb2fc16 --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/usesVariableAsConstant/binaryTypes.antlrtree.txt @@ -0,0 +1,435 @@ +File: binaryTypes.kt - 40dea94bd2e8dd0d5a4ef972eb6da8a2 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop8") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constantEvaluator/usesVariableAsConstant/simpleTypes.antlrtree.txt b/grammar/testData/diagnostics/constantEvaluator/usesVariableAsConstant/simpleTypes.antlrtree.txt new file mode 100644 index 000000000..a39e3cb0d --- /dev/null +++ b/grammar/testData/diagnostics/constantEvaluator/usesVariableAsConstant/simpleTypes.antlrtree.txt @@ -0,0 +1,221 @@ +File: simpleTypes.kt - 9f12dd2df207105a45026e29d57e68cc + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + NL("\n") + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hello") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("7453") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("3.56") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("5464564L") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/constructorConsistency/afterInitialization.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/afterInitialization.antlrtree.txt index 45989b76f..374e28dc2 100644 --- a/grammar/testData/diagnostics/constructorConsistency/afterInitialization.antlrtree.txt +++ b/grammar/testData/diagnostics/constructorConsistency/afterInitialization.antlrtree.txt @@ -297,6 +297,4 @@ File: afterInitialization.kt - f77e8871894ed95da5e85f8663185532 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/constructorConsistency/aliencall.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/aliencall.antlrtree.txt index a6c859c48..1ad0aef16 100644 --- a/grammar/testData/diagnostics/constructorConsistency/aliencall.antlrtree.txt +++ b/grammar/testData/diagnostics/constructorConsistency/aliencall.antlrtree.txt @@ -575,6 +575,4 @@ File: aliencall.kt - 44ee8732b32a9c6a935359b0ab56dc33 lineStringContent LineStrText("3") QUOTE_CLOSE(""") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/constructorConsistency/backing.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/backing.antlrtree.txt index 826a63e86..c9252cc1f 100644 --- a/grammar/testData/diagnostics/constructorConsistency/backing.antlrtree.txt +++ b/grammar/testData/diagnostics/constructorConsistency/backing.antlrtree.txt @@ -607,6 +607,4 @@ File: backing.kt - bf6f8a7488abde8f78f5b3ee0137e41b QUOTE_CLOSE(""") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/constructorConsistency/companion.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/companion.antlrtree.txt index 99651d23a..f94bdc0cb 100644 --- a/grammar/testData/diagnostics/constructorConsistency/companion.antlrtree.txt +++ b/grammar/testData/diagnostics/constructorConsistency/companion.antlrtree.txt @@ -267,6 +267,4 @@ File: companion.kt - 22b69c432cd136b3031872977ce52b65 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/constructorConsistency/init.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/init.antlrtree.txt index 82a44033c..a1fbb4d79 100644 --- a/grammar/testData/diagnostics/constructorConsistency/init.antlrtree.txt +++ b/grammar/testData/diagnostics/constructorConsistency/init.antlrtree.txt @@ -108,6 +108,4 @@ File: init.kt - 9baedb4c473942cabe71e1d91e379207 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/constructorConsistency/initializerWithSecondaryConstructor.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/initializerWithSecondaryConstructor.antlrtree.txt index 99a5f763c..c6d298b57 100644 --- a/grammar/testData/diagnostics/constructorConsistency/initializerWithSecondaryConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/constructorConsistency/initializerWithSecondaryConstructor.antlrtree.txt @@ -336,6 +336,4 @@ File: initializerWithSecondaryConstructor.kt - 00843ecf7de028eb324bba8d19ac6b2e RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/constructorConsistency/lambdaInObject.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/lambdaInObject.antlrtree.txt index 15e991e8f..f8d8bfe3b 100644 --- a/grammar/testData/diagnostics/constructorConsistency/lambdaInObject.antlrtree.txt +++ b/grammar/testData/diagnostics/constructorConsistency/lambdaInObject.antlrtree.txt @@ -309,6 +309,4 @@ File: lambdaInObject.kt - ad8f6aabba317b68f8bab597a0f34e06 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/constructorConsistency/lateInit.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/lateInit.antlrtree.txt index 4883deb6c..1c7c62cea 100644 --- a/grammar/testData/diagnostics/constructorConsistency/lateInit.antlrtree.txt +++ b/grammar/testData/diagnostics/constructorConsistency/lateInit.antlrtree.txt @@ -158,6 +158,4 @@ File: lateInit.kt - 359783469359884e3119ed931487a88f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/constructorConsistency/localObject.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/localObject.antlrtree.txt index 09c1f88a3..8ad0e1e7e 100644 --- a/grammar/testData/diagnostics/constructorConsistency/localObject.antlrtree.txt +++ b/grammar/testData/diagnostics/constructorConsistency/localObject.antlrtree.txt @@ -393,6 +393,4 @@ File: localObject.kt - d906e856190ab669ced7f33a813f1755 DOT(".") simpleIdentifier Identifier("x") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/constructorConsistency/nobacking.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/nobacking.antlrtree.txt index e23359681..e54bd635b 100644 --- a/grammar/testData/diagnostics/constructorConsistency/nobacking.antlrtree.txt +++ b/grammar/testData/diagnostics/constructorConsistency/nobacking.antlrtree.txt @@ -110,6 +110,4 @@ File: nobacking.kt - dfd75721d44f95bc2f2bc4274391f888 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/constructorConsistency/outer.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/outer.antlrtree.txt index 6e76482b9..b5fbd0c93 100644 --- a/grammar/testData/diagnostics/constructorConsistency/outer.antlrtree.txt +++ b/grammar/testData/diagnostics/constructorConsistency/outer.antlrtree.txt @@ -135,6 +135,4 @@ File: outer.kt - 560478b33a4bce385e1a30311f1f29a9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/constructorConsistency/property.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/property.antlrtree.txt index 32ac03642..0030d7b37 100644 --- a/grammar/testData/diagnostics/constructorConsistency/property.antlrtree.txt +++ b/grammar/testData/diagnostics/constructorConsistency/property.antlrtree.txt @@ -133,6 +133,4 @@ File: property.kt - b2659acc4d4a16f8f312164a066f0dc7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/constructorConsistency/twoSecondaryConstructors.antlrtree.txt b/grammar/testData/diagnostics/constructorConsistency/twoSecondaryConstructors.antlrtree.txt index 7ae9ac43b..3f2a239fb 100644 --- a/grammar/testData/diagnostics/constructorConsistency/twoSecondaryConstructors.antlrtree.txt +++ b/grammar/testData/diagnostics/constructorConsistency/twoSecondaryConstructors.antlrtree.txt @@ -233,6 +233,4 @@ File: twoSecondaryConstructors.kt - 10c3778102e0995edafd8b602e4f7d8f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/UninitializedEnumCompanionVals.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/UninitializedEnumCompanionVals.antlrtree.txt new file mode 100644 index 000000000..f46f86091 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/UninitializedEnumCompanionVals.antlrtree.txt @@ -0,0 +1,235 @@ +File: UninitializedEnumCompanionVals.kt - 8c0b2c09fbef965a11223148bb236820 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("Y") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ordinal") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("Y") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + RPAREN(")") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ordinal") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/UninitializedOrReassignedVariables.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/UninitializedOrReassignedVariables.antlrtree.txt index 0c7046cc7..0fa714ed7 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/UninitializedOrReassignedVariables.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/UninitializedOrReassignedVariables.antlrtree.txt @@ -1,5 +1,4 @@ -File: UninitializedOrReassignedVariables.kt - df2cf31492fd4daee96f5af7cb43dffc - NL("\n") +File: UninitializedOrReassignedVariables.kt - 7975ffb3a9c36b9518aadcdf6e002d3e packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/accessValueParameterInDefaultValue_after.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/accessValueParameterInDefaultValue_after.antlrtree.txt new file mode 100644 index 000000000..253a4575d --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/accessValueParameterInDefaultValue_after.antlrtree.txt @@ -0,0 +1,1494 @@ +File: accessValueParameterInDefaultValue_after.kt - 92bb5333e3b1103eac1735210c4e174a + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RCURL("}") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + RCURL("}") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + RCURL("}") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("run") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_6") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("run") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_7") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + simpleIdentifier + Identifier("by") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_8") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + simpleIdentifier + Identifier("by") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/accessValueParameterInDefaultValue_before.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/accessValueParameterInDefaultValue_before.antlrtree.txt new file mode 100644 index 000000000..d673c4e13 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/accessValueParameterInDefaultValue_before.antlrtree.txt @@ -0,0 +1,1494 @@ +File: accessValueParameterInDefaultValue_before.kt - a6d756a14344bddb497cde3788e7dff0 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RCURL("}") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + RCURL("}") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + RCURL("}") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("run") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_6") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("run") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_7") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + simpleIdentifier + Identifier("by") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_8") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + simpleIdentifier + Identifier("by") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/breakContinueInTryFinallyInLoop.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/breakContinueInTryFinallyInLoop.antlrtree.txt new file mode 100644 index 000000000..db75ee73a --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/breakContinueInTryFinallyInLoop.antlrtree.txt @@ -0,0 +1,404 @@ +File: breakContinueInTryFinallyInLoop.kt - ff03277580572913a97587af714f0096 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testBreak") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + semis + NL("\n") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testContinue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + semis + NL("\n") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/breakInsideLocal.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/breakInsideLocal.antlrtree.txt index 2b6eb743c..73d5115bb 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/breakInsideLocal.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/breakInsideLocal.antlrtree.txt @@ -1144,6 +1144,4 @@ File: breakInsideLocal.kt - 9315fc969e79bea66807ad71405067b4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/breakOrContinueInLoopCondition.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/breakOrContinueInLoopCondition.antlrtree.txt index b2123e80c..9701fa714 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/breakOrContinueInLoopCondition.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/breakOrContinueInLoopCondition.antlrtree.txt @@ -882,6 +882,4 @@ File: breakOrContinueInLoopCondition.kt - 34de38dc28a3ecdaccc0a1394bc65b3f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/checkInnerLocalDeclarations.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/checkInnerLocalDeclarations.antlrtree.txt index 315cf21bb..568dcb154 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/checkInnerLocalDeclarations.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/checkInnerLocalDeclarations.antlrtree.txt @@ -129,6 +129,4 @@ File: checkInnerLocalDeclarations.kt - b9ad85b13dfdc70e562f358d06447a21 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/checkPropertyAccessor.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/checkPropertyAccessor.antlrtree.txt index 1d38306d0..4b358db98 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/checkPropertyAccessor.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/checkPropertyAccessor.antlrtree.txt @@ -510,6 +510,4 @@ File: checkPropertyAccessor.kt - 4f26b33ad9ddf7c51c4f458928fb6b90 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/constructorPropertyInterdependence.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/constructorPropertyInterdependence.antlrtree.txt index e0d1f9991..eed907c03 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/constructorPropertyInterdependence.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/constructorPropertyInterdependence.antlrtree.txt @@ -156,6 +156,4 @@ File: constructorPropertyInterdependence.kt - 8021ba309d1b273f45ba258ed2f0b1b1 IntegerLiteral("4") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/commasAndWhitespaces.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/commasAndWhitespaces.antlrtree.txt index fbcbe0f66..711ecfe52 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/commasAndWhitespaces.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/commasAndWhitespaces.antlrtree.txt @@ -1,4 +1,5 @@ -File: commasAndWhitespaces.kt - fcb720779da7f44b61aadf2500f1ea01 +File: commasAndWhitespaces.kt - 1e3a5d75faed1a2fded8330a39615778 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCallInInvokeCall.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCallInInvokeCall.antlrtree.txt index 83c808b77..01cf0cce2 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCallInInvokeCall.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCallInInvokeCall.antlrtree.txt @@ -321,6 +321,4 @@ File: deadCallInInvokeCall.kt - b436d6ae500b008c54c0f24c6af8cc76 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCallInReceiver.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCallInReceiver.antlrtree.txt index 226c7703c..c81ffd0bd 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCallInReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCallInReceiver.antlrtree.txt @@ -1,4 +1,4 @@ -File: deadCallInReceiver.kt - bcf2bc672f46ad3f4b0a5d730d1652d1 +File: deadCallInReceiver.kt - ca6a0438a4db43d6587c612c832d9b31 packageHeader importList topLevelObject @@ -279,5 +279,5 @@ File: deadCallInReceiver.kt - bcf2bc672f46ad3f4b0a5d730d1652d1 LPAREN("(") RPAREN(")") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeDifferentExamples.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeDifferentExamples.antlrtree.txt index 2c79d76e7..e43351d67 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeDifferentExamples.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeDifferentExamples.antlrtree.txt @@ -1,4 +1,5 @@ -File: deadCodeDifferentExamples.kt - ca024baaadc471c97b638fa96ae97521 +File: deadCodeDifferentExamples.kt - 4720cfde61cf287099abb1163288995b + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeFromDifferentSources.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeFromDifferentSources.antlrtree.txt index 389de497f..face59860 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeFromDifferentSources.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeFromDifferentSources.antlrtree.txt @@ -368,6 +368,4 @@ File: deadCodeFromDifferentSources.kt - ab085357f8792278e3f8035e995bb48d LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInArrayAccess.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInArrayAccess.antlrtree.txt index eaa9f86da..94e246187 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInArrayAccess.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInArrayAccess.antlrtree.txt @@ -980,6 +980,4 @@ File: deadCodeInArrayAccess.kt - 97715ece23daf975c90133c58782370b valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInAssignment.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInAssignment.antlrtree.txt index 7b5f68b86..5af62a578 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInAssignment.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInAssignment.antlrtree.txt @@ -308,6 +308,4 @@ File: deadCodeInAssignment.kt - 7d75bb53edf96fc750ac3feb0d19994d valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInBinaryExpressions.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInBinaryExpressions.antlrtree.txt index 766e2351b..6365966fd 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInBinaryExpressions.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInBinaryExpressions.antlrtree.txt @@ -824,6 +824,4 @@ File: deadCodeInBinaryExpressions.kt - 86bae34b55573b8b4ff646fdc6b8cc4f LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInCalls.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInCalls.antlrtree.txt index 0cc959a1f..87b7603db 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInCalls.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInCalls.antlrtree.txt @@ -315,6 +315,4 @@ File: deadCodeInCalls.kt - 5eaee4df2cb3ad6e058508308ac25a10 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInIf.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInIf.antlrtree.txt index 1f00a2df2..09db6cea2 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInIf.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInIf.antlrtree.txt @@ -324,6 +324,4 @@ File: deadCodeInIf.kt - b23767019be4dd57631ba0b4e1a18412 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInInnerExpressions.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInInnerExpressions.antlrtree.txt index ce416528a..808d6ef5f 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInInnerExpressions.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInInnerExpressions.antlrtree.txt @@ -1,4 +1,5 @@ -File: deadCodeInInnerExpressions.kt - d6eb91238a8e9617bd540db0b58f663c +File: deadCodeInInnerExpressions.kt - 8a582c51f05d1882e7edeaca3cbca792 + NL("\n") NL("\n") NL("\n") packageHeader @@ -359,6 +360,4 @@ File: deadCodeInInnerExpressions.kt - d6eb91238a8e9617bd540db0b58f663c valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInLocalDeclarations.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInLocalDeclarations.antlrtree.txt index e056d62ed..9d1c1d575 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInLocalDeclarations.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInLocalDeclarations.antlrtree.txt @@ -718,6 +718,4 @@ File: deadCodeInLocalDeclarations.kt - ab3461974da987a82f7adb982c67e7c2 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInLoops.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInLoops.antlrtree.txt index bd0f70f0a..ae1871cb5 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInLoops.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInLoops.antlrtree.txt @@ -1,4 +1,6 @@ -File: deadCodeInLoops.kt - a2a1be72976a6685575d103220608222 +File: deadCodeInLoops.kt - 53246c5cc4f57e47ccc5511df1de54fa + NL("\n") + NL("\n") packageHeader importList topLevelObject @@ -355,6 +357,4 @@ File: deadCodeInLoops.kt - a2a1be72976a6685575d103220608222 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInReturn.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInReturn.antlrtree.txt index 7e783985d..205ba83ac 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInReturn.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInReturn.antlrtree.txt @@ -1,4 +1,5 @@ -File: deadCodeInReturn.kt - 0631e3e670b8103f24ae9bf0ac475486 +File: deadCodeInReturn.kt - 2eb1ef8ecf5cf912635cd7d83db3aa72 + NL("\n") packageHeader importList topLevelObject @@ -122,6 +123,4 @@ File: deadCodeInReturn.kt - 0631e3e670b8103f24ae9bf0ac475486 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInUnaryExpr.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInUnaryExpr.antlrtree.txt index d57df99e3..9a48f5ef1 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInUnaryExpr.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/deadCodeInUnaryExpr.antlrtree.txt @@ -286,6 +286,4 @@ File: deadCodeInUnaryExpr.kt - 7997cadce47c1071738904a23f53e2eb valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt2585_1.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt2585_1.antlrtree.txt index d1d9cacdf..0b906b15c 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt2585_1.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt2585_1.antlrtree.txt @@ -196,6 +196,4 @@ File: kt2585_1.kt - 8c082b0e7a31c1f1b5860d5729a71e9e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt2585_2.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt2585_2.antlrtree.txt index fb1c96ab4..88b3f1287 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt2585_2.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt2585_2.antlrtree.txt @@ -359,6 +359,4 @@ File: kt2585_2.kt - eff081e17e8a3912685aabb71901d626 primaryExpression literalConstant BooleanLiteral("true") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt2585_3.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt2585_3.antlrtree.txt index e1e01d2ab..71c241851 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt2585_3.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt2585_3.antlrtree.txt @@ -157,6 +157,4 @@ File: kt2585_3.kt - 2343931ff2b8a70039b213c6a4dc864d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt3162tryAsInitializer.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt3162tryAsInitializer.antlrtree.txt index 085e56a1f..e93703afc 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt3162tryAsInitializer.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt3162tryAsInitializer.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt3162tryAsInitializer.kt - 80b3b120a857d0a6fe1ddbe440dba918 +File: kt3162tryAsInitializer.kt - a3aed1ce78cc6f0c7d397e1e228aacf6 + NL("\n") NL("\n") NL("\n") packageHeader @@ -179,6 +180,4 @@ File: kt3162tryAsInitializer.kt - 80b3b120a857d0a6fe1ddbe440dba918 RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt5200DeadCodeInLambdas.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt5200DeadCodeInLambdas.antlrtree.txt index 9297dcee4..76673cd72 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt5200DeadCodeInLambdas.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/deadCode/kt5200DeadCodeInLambdas.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt5200DeadCodeInLambdas.kt - 5f144dfcff4f05ed6272565523cae140 +File: kt5200DeadCodeInLambdas.kt - 2b23fc98e03be78d66b599c7f11f50c6 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/ReturnFromFunctionInObject.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/ReturnFromFunctionInObject.antlrtree.txt index 79713f057..6835fce38 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/ReturnFromFunctionInObject.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/ReturnFromFunctionInObject.antlrtree.txt @@ -1,4 +1,5 @@ -File: ReturnFromFunctionInObject.kt - a0a9320298c376bcaae8ad983be98e0e +File: ReturnFromFunctionInObject.kt - 9aa65500ccd1b48a85687e27dd10b22c + NL("\n") packageHeader importList topLevelObject @@ -143,6 +144,4 @@ File: ReturnFromFunctionInObject.kt - a0a9320298c376bcaae8ad983be98e0e NL("\n") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/kt3444_ReturnFromLocalFunctions.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/kt3444_ReturnFromLocalFunctions.antlrtree.txt index dfa25c9c4..4b67fc48c 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/kt3444_ReturnFromLocalFunctions.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/kt3444_ReturnFromLocalFunctions.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt3444_ReturnFromLocalFunctions.kt - a7d490d50cbeac180acf743f93e5cd70 +File: kt3444_ReturnFromLocalFunctions.kt - 51503708cc35f3b0a65fa7124514f796 + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/lambdaInTryFalsePositive.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/lambdaInTryFalsePositive.antlrtree.txt new file mode 100644 index 000000000..382daf098 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/lambdaInTryFalsePositive.antlrtree.txt @@ -0,0 +1,528 @@ +File: lambdaInTryFalsePositive.kt - 65dff6bc7950292774764fda09fa69bd + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("java") + DOT(".") + simpleIdentifier + Identifier("io") + DOT(".") + simpleIdentifier + Identifier("File") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AutoCloseable") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + simpleIdentifier + Identifier("use") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("block") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + quest + QUEST_WS("? ") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("File") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("123") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bufferedWriter") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("use") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("45") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("e") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("message") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("startsWith") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Remote does not have ") + QUOTE_CLOSE(""") + RPAREN(")") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/simpleClass.f.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/simpleClass.f.antlrtree.txt index c895b0fab..bdc00fa22 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/simpleClass.f.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/definiteReturn/simpleClass.f.antlrtree.txt @@ -35,6 +35,4 @@ File: simpleClass.f.kt - 91d50bbd22e64ed90eaf96f7824af411 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/elvisNotProcessed.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/elvisNotProcessed.antlrtree.txt index 0b4c3698f..77757bdf7 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/elvisNotProcessed.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/elvisNotProcessed.antlrtree.txt @@ -1,5 +1,4 @@ -File: elvisNotProcessed.kt - 390ecdc7c4c3e23cdcb59f26a726e93b - NL("\n") +File: elvisNotProcessed.kt - 8ce2c562d329c085f9dc9eb6c6f828b0 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/enumCompanionInterdependence.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/enumCompanionInterdependence.antlrtree.txt index 39c980111..260d903cb 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/enumCompanionInterdependence.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/enumCompanionInterdependence.antlrtree.txt @@ -1,4 +1,4 @@ -File: enumCompanionInterdependence.kt - 11c5d94ce89bbda8860075364bf15710 +File: enumCompanionInterdependence.kt - b8acda6dd5fdabad301fa1069e887037 packageHeader importList topLevelObject @@ -484,6 +484,69 @@ File: enumCompanionInterdependence.kt - 11c5d94ce89bbda8860075364bf15710 simpleIdentifier Identifier("common") NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("score2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("personal") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("common") + RCURL("}") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") RCURL("}") semis NL("\n") @@ -861,4 +924,427 @@ File: enumCompanionInterdependence.kt - 11c5d94ce89bbda8860075364bf15710 RCURL("}") semis NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ExtractableCodeDescriptor") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("isInterface") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("ExtractionTarget") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("targetName") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("FUNCTION") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("function") + QUOTE_CLOSE(""") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("isAvailable") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("descriptor") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ExtractableCodeDescriptor") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semis + NL("\n") + RCURL("}") + COMMA(",") + NL("\n") + NL("\n") + enumEntry + simpleIdentifier + Identifier("LAZY_PROPERTY") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("lazy property") + QUOTE_CLOSE(""") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("isAvailable") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("descriptor") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ExtractableCodeDescriptor") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("checkNotTrait") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("descriptor") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") + simpleIdentifier + Identifier("isAvailable") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("descriptor") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ExtractableCodeDescriptor") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + NL("\n") + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("checkNotTrait") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("descriptor") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ExtractableCodeDescriptor") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + excl + EXCL_NO_WS("!") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("descriptor") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("isInterface") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/enumInterdependence.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/enumInterdependence.antlrtree.txt index aa5af97af..f2cc72e11 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/enumInterdependence.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/enumInterdependence.antlrtree.txt @@ -1,4 +1,4 @@ -File: enumInterdependence.kt - 45d72d2e1512958151344322cd0284bf +File: enumInterdependence.kt - f31ec5beb33efc653eb5262ca29e22e9 packageHeader importList topLevelObject @@ -82,6 +82,33 @@ File: enumInterdependence.kt - 45d72d2e1512958151344322cd0284bf simpleIdentifier Identifier("A1") RPAREN(")") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("A3") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A3") + RPAREN(")") NL("\n") RCURL("}") semis diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/fieldAsClassDelegate.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/fieldAsClassDelegate.antlrtree.txt index 0a20615b5..ef82b461b 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/fieldAsClassDelegate.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/fieldAsClassDelegate.antlrtree.txt @@ -1,5 +1,4 @@ -File: fieldAsClassDelegate.kt - d09a838080d27d4c9c3a480e7d0f9757 - NL("\n") +File: fieldAsClassDelegate.kt - 0fb3767a704d36327233cfd640ee4374 NL("\n") NL("\n") NL("\n") @@ -595,6 +594,4 @@ File: fieldAsClassDelegate.kt - d09a838080d27d4c9c3a480e7d0f9757 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/fieldInitialization.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/fieldInitialization.antlrtree.txt index dadbb8ae3..612c7d05c 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/fieldInitialization.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/fieldInitialization.antlrtree.txt @@ -1,4 +1,4 @@ -File: fieldInitialization.kt - 7709b92c7efb5c3a097e439a8b67a9e4 +File: fieldInitialization.kt - fce5689629a2424f4f7afbd5b4815b6e NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/infiniteLoops.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/infiniteLoops.antlrtree.txt index 5cc93596c..07e22134a 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/infiniteLoops.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/infiniteLoops.antlrtree.txt @@ -1,4 +1,5 @@ -File: infiniteLoops.kt - 641df679808a03d03010810b0345cfe2 +File: infiniteLoops.kt - 766bbf8dfd41767d57c27acd27098b97 + NL("\n") packageHeader importList topLevelObject @@ -1029,5 +1030,5 @@ File: infiniteLoops.kt - 641df679808a03d03010810b0345cfe2 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/initializationInLambda.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/initializationInLambda.antlrtree.txt index 7d762adc2..9a8dda80c 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/initializationInLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/initializationInLambda.antlrtree.txt @@ -1134,6 +1134,4 @@ File: initializationInLambda.kt - b3feb0e80a343c0c57bf3714ceeb86b8 literalConstant IntegerLiteral("0") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/initializationInLocalViaExplicitThis_after.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/initializationInLocalViaExplicitThis_after.antlrtree.txt index 93fa6119e..d9854cd0f 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/initializationInLocalViaExplicitThis_after.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/initializationInLocalViaExplicitThis_after.antlrtree.txt @@ -207,6 +207,4 @@ File: initializationInLocalViaExplicitThis_after.kt - 71602bf2ae230fa6c6b0c437b1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/initializationInLocalViaExplicitThis_before.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/initializationInLocalViaExplicitThis_before.antlrtree.txt index f76ade1cd..7a2db0646 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/initializationInLocalViaExplicitThis_before.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/initializationInLocalViaExplicitThis_before.antlrtree.txt @@ -207,6 +207,4 @@ File: initializationInLocalViaExplicitThis_before.kt - 98d0e4daf567d48862268c795 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt10805.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt10805.antlrtree.txt index 337d188bb..7c74ce1b2 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt10805.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt10805.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt10805.kt - 062a4660abcfea0f86a1060277f13660 +File: kt10805.kt - f9e76520d46c91df3797e3475bf1c4e1 NL("\n") NL("\n") NL("\n") @@ -226,6 +226,4 @@ File: kt10805.kt - 062a4660abcfea0f86a1060277f13660 NL("\n") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt10823.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt10823.antlrtree.txt index 252a0fd18..3ce569c82 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt10823.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt10823.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt10823.kt - d98cbef809d1f417d2226fca2f71fc1d +File: kt10823.kt - 00fde70559e83cdcdc9d85d60e6954c8 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt1185enums.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt1185enums.antlrtree.txt index cd5186a3c..5ac1e58ba 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt1185enums.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt1185enums.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt1185enums.kt - 896d04781f2b14aee2bc4e4a97ec1840 +File: kt1185enums.kt - 908c9a828c6cd778853419f711600f15 + NL("\n") NL("\n") NL("\n") packageHeader @@ -1083,5 +1084,5 @@ File: kt1185enums.kt - 896d04781f2b14aee2bc4e4a97ec1840 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt1977.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt1977.antlrtree.txt index 37452ebee..111f73f9e 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt1977.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt1977.antlrtree.txt @@ -807,6 +807,4 @@ File: kt1977.kt - f5ebe876a669eef54db494cadf7a4205 NL("\n") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt2166_kt2103.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt2166_kt2103.antlrtree.txt index 92abec5db..62ff24a11 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt2166_kt2103.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt2166_kt2103.antlrtree.txt @@ -266,6 +266,4 @@ File: kt2166_kt2103.kt - 5a1c3840c49fe8f2f6dfc1100ffc2082 primaryExpression literalConstant BooleanLiteral("true") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt2226.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt2226.antlrtree.txt index 7ab754b98..656bc2791 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt2226.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt2226.antlrtree.txt @@ -245,6 +245,4 @@ File: kt2226.kt - 54b24d1a8aeca85bc8bc1d9a79eac839 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt2330.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt2330.antlrtree.txt index 49027b29c..44c756bb7 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt2330.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt2330.antlrtree.txt @@ -761,6 +761,4 @@ File: kt2330.kt - 0c7cef6a99a44e2be67eaa7bedce81e3 RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt2334.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt2334.antlrtree.txt index 12a6c0b62..3becfc323 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt2334.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt2334.antlrtree.txt @@ -29,6 +29,4 @@ File: kt2334.kt - db9cb285f63b13a5dc488a4e60f0e433 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt2369.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt2369.antlrtree.txt index b8c722894..e4b5ad217 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt2369.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt2369.antlrtree.txt @@ -213,6 +213,4 @@ File: kt2369.kt - 33716c5ca2f1a099333cc0727a3164f1 primaryExpression simpleIdentifier Identifier("a") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt2960.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt2960.antlrtree.txt index 969fdd75c..cc4b0f297 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt2960.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt2960.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2960.kt - 3a4a399179e8a6891263fee81af0919c +File: kt2960.kt - 35a177e1168ebc63489aa020675758d4 + NL("\n") NL("\n") NL("\n") packageHeader @@ -602,6 +603,4 @@ File: kt2960.kt - 3a4a399179e8a6891263fee81af0919c primaryExpression simpleIdentifier Identifier("i") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt2972.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt2972.antlrtree.txt index c84dcb645..5d467c483 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt2972.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt2972.antlrtree.txt @@ -467,6 +467,4 @@ File: kt2972.kt - a3c7bd7c70faeb336f83a522c0d1d785 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt3444.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt3444.antlrtree.txt index 30e4021c6..6a7f67baf 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt3444.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt3444.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt3444.kt - d8f94d30c01af73fd4c4c0c60151e43d +File: kt3444.kt - 722cb650baaea00f44ab99df0c4a5c83 + NL("\n") packageHeader importList topLevelObject @@ -142,6 +143,4 @@ File: kt3444.kt - d8f94d30c01af73fd4c4c0c60151e43d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt3501.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt3501.antlrtree.txt index 97f375c18..a1efac27b 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt3501.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt3501.antlrtree.txt @@ -80,6 +80,4 @@ File: kt3501.kt - b5b4ba27642b5bdbf8b7064409aea86b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt4405.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt4405.antlrtree.txt index 01ec85aa3..be0fc695b 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt4405.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt4405.antlrtree.txt @@ -307,6 +307,4 @@ File: kt4405.kt - db3ff226d8c18f594bdd02f533a4e8a8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt52131.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt52131.antlrtree.txt new file mode 100644 index 000000000..416c9b581 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt52131.antlrtree.txt @@ -0,0 +1,164 @@ +File: kt52131.kt - 8908c55c10108dfb29239ea2a6ec50f5 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("result") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("let") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("result") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt609.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt609.antlrtree.txt index 63fdcc398..5c933c41f 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt609.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt609.antlrtree.txt @@ -252,6 +252,4 @@ File: kt609.kt - 93f2de9ef70733244c9adbf44c8af426 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/kt897.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/kt897.antlrtree.txt index fdf47e1f5..084e47b93 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/kt897.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/kt897.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt897.kt - 314afe7e1c870da7b1916f310eee59df +File: kt897.kt - 6a9e961d6d0a3b26dbad04542109150e + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/loopWithNonTrivialBooleanConst_error.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/loopWithNonTrivialBooleanConst_error.antlrtree.txt new file mode 100644 index 000000000..ff3665ca4 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/loopWithNonTrivialBooleanConst_error.antlrtree.txt @@ -0,0 +1,994 @@ +File: loopWithNonTrivialBooleanConst_error.kt - 1ac86312a48fa45ec8e3ee5ce69436a5 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_6") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + doWhileStatement + DO("do") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_7") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + doWhileStatement + DO("do") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_8") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + doWhileStatement + DO("do") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_9") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + doWhileStatement + DO("do") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_10") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + doWhileStatement + DO("do") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/loopWithNonTrivialBooleanConst_warning.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/loopWithNonTrivialBooleanConst_warning.antlrtree.txt new file mode 100644 index 000000000..654db2ff2 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/loopWithNonTrivialBooleanConst_warning.antlrtree.txt @@ -0,0 +1,993 @@ +File: loopWithNonTrivialBooleanConst_warning.kt - bb30a295bfc8489717816b3e9431be85 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_6") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + doWhileStatement + DO("do") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_7") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + doWhileStatement + DO("do") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_8") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + doWhileStatement + DO("do") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_9") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + doWhileStatement + DO("do") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_10") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + doWhileStatement + DO("do") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/mainWithWarningOnUnusedParam.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/mainWithWarningOnUnusedParam.antlrtree.txt index b229883fe..6b5a12f8d 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/mainWithWarningOnUnusedParam.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/mainWithWarningOnUnusedParam.antlrtree.txt @@ -40,6 +40,4 @@ File: mainWithWarningOnUnusedParam.kt - cdf3e698ca7f8c5c01b3052b767c9d42 NL("\n") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/mainWithoutWarningOnUnusedParam.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/mainWithoutWarningOnUnusedParam.antlrtree.txt index e4cd7a0c6..608369c19 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/mainWithoutWarningOnUnusedParam.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/mainWithoutWarningOnUnusedParam.antlrtree.txt @@ -41,6 +41,4 @@ File: mainWithoutWarningOnUnusedParam.kt - 010c8756e5a300a03bb277be90b0a4f0 NL("\n") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/nonLocalReturnUnreachable.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/nonLocalReturnUnreachable.antlrtree.txt index 45e63ebbb..9ed10197f 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/nonLocalReturnUnreachable.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/nonLocalReturnUnreachable.antlrtree.txt @@ -1,5 +1,4 @@ -File: nonLocalReturnUnreachable.kt - 4612ce744b417e8d4b4ecdbd9b4cab13 - NL("\n") +File: nonLocalReturnUnreachable.kt - 19151f1ff51923f91d82ab5c7add1579 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/privateSetter.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/privateSetter.antlrtree.txt index 6b142b172..1e32fb509 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/privateSetter.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/privateSetter.antlrtree.txt @@ -1,4 +1,5 @@ -File: privateSetter.kt - 61aeca2e935a66164a8f9ee97b2057aa +File: privateSetter.kt - 8304f753e2a271dd6ea3f5102a6a8bd2 + NL("\n") packageHeader importList topLevelObject @@ -297,6 +298,4 @@ File: privateSetter.kt - 61aeca2e935a66164a8f9ee97b2057aa semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/propertiesOrderInPackage.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/propertiesOrderInPackage.antlrtree.txt index f2180760e..193f5d908 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/propertiesOrderInPackage.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/propertiesOrderInPackage.antlrtree.txt @@ -75,6 +75,4 @@ File: propertiesOrderInPackage.kt - 6a4fe2528bc17f6d13aa4dbe50ba6144 primaryExpression simpleIdentifier Identifier("a") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/scopeOfAnonymousInitializer.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/scopeOfAnonymousInitializer.antlrtree.txt index aaae1bc86..021b2d586 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/scopeOfAnonymousInitializer.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/scopeOfAnonymousInitializer.antlrtree.txt @@ -68,6 +68,4 @@ File: scopeOfAnonymousInitializer.kt - 103bc85e6b139585dd94ebc351a39aae semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/throwInLambda.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/throwInLambda.antlrtree.txt index ed8f9b6e5..a7c98fc48 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/throwInLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/throwInLambda.antlrtree.txt @@ -1,4 +1,5 @@ -File: throwInLambda.kt - d92a7b68557ccae7d5f24361fa76ef1d +File: throwInLambda.kt - 32379ade005b1adfd024a235f9427619 + NL("\n") NL("\n") NL("\n") packageHeader @@ -444,5 +445,5 @@ File: throwInLambda.kt - d92a7b68557ccae7d5f24361fa76ef1d NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/tryWithAssignmentUsedInCatch.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/tryWithAssignmentUsedInCatch.antlrtree.txt index d835fc33b..14d1eaffb 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/tryWithAssignmentUsedInCatch.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/tryWithAssignmentUsedInCatch.antlrtree.txt @@ -619,6 +619,4 @@ File: tryWithAssignmentUsedInCatch.kt - fbbe51fb70f402012d8e8ac87783532c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedCompanionOfEnum_after.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedCompanionOfEnum_after.antlrtree.txt new file mode 100644 index 000000000..709b66d35 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedCompanionOfEnum_after.antlrtree.txt @@ -0,0 +1,854 @@ +File: uninitializedCompanionOfEnum_after.kt - 0e1b4bc995a4231ab3fdb4f824f26d06 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("companionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("companionProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + NL("\n") + enumEntry + simpleIdentifier + Identifier("C") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("companionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("D") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("companionProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + NL("\n") + enumEntry + simpleIdentifier + Identifier("E") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("companionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("F") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("companionProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("companionProp") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("someString") + QUOTE_CLOSE(""") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("companionFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("someString") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("OtherEnum") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("G") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("extensionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("H") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("extensionProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + NL("\n") + enumEntry + simpleIdentifier + Identifier("I") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("OtherEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("extensionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("J") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("OtherEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("extensionProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + NL("\n") + enumEntry + simpleIdentifier + Identifier("K") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("OtherEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("extensionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("L") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("OtherEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("extensionProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("companionProp") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("someString") + QUOTE_CLOSE(""") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("companionFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("someString") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("OtherEnum") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Companion") + DOT(".") + simpleIdentifier + Identifier("extensionFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("companionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("OtherEnum") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Companion") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("extensionProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("companionProp") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedCompanionOfEnum_before.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedCompanionOfEnum_before.antlrtree.txt new file mode 100644 index 000000000..684b99bca --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedCompanionOfEnum_before.antlrtree.txt @@ -0,0 +1,854 @@ +File: uninitializedCompanionOfEnum_before.kt - 86075542b2276730262b598650ee1836 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("companionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("companionProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + NL("\n") + enumEntry + simpleIdentifier + Identifier("C") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("companionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("D") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("companionProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + NL("\n") + enumEntry + simpleIdentifier + Identifier("E") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("companionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("F") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("companionProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("companionProp") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("someString") + QUOTE_CLOSE(""") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("companionFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("someString") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("OtherEnum") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("G") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("extensionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("H") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("extensionProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + NL("\n") + enumEntry + simpleIdentifier + Identifier("I") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("OtherEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("extensionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("J") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("OtherEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("extensionProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + NL("\n") + enumEntry + simpleIdentifier + Identifier("K") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("OtherEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("extensionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("L") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("OtherEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("extensionProp") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("companionProp") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("someString") + QUOTE_CLOSE(""") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("companionFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("someString") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("OtherEnum") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Companion") + DOT(".") + simpleIdentifier + Identifier("extensionFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("companionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("OtherEnum") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Companion") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("extensionProp") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("companionProp") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedInLocalDeclarations.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedInLocalDeclarations.antlrtree.txt index 5badbc6e1..eb62aa1df 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedInLocalDeclarations.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedInLocalDeclarations.antlrtree.txt @@ -724,6 +724,4 @@ File: uninitializedInLocalDeclarations.kt - a8f3192c00eaf1f0cf8d8f4aefea4713 primaryExpression simpleIdentifier Identifier("a") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedQualifiedEnumEntry.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedQualifiedEnumEntry.antlrtree.txt new file mode 100644 index 000000000..a6c6fc201 --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/uninitializedQualifiedEnumEntry.antlrtree.txt @@ -0,0 +1,954 @@ +File: uninitializedQualifiedEnumEntry.kt - 02264c790426875f419b7bb6765188d8 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum11") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAR("var") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum12") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAR("var") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum12") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum21") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAR("var") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum21") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum22") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAR("var") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum22") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum22") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("B") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAR("var") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("B") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/unmappedArgs.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/unmappedArgs.antlrtree.txt index 3731ab649..a35dd5e1b 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/unmappedArgs.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/unmappedArgs.antlrtree.txt @@ -1,4 +1,5 @@ -File: unmappedArgs.kt - a30d5658da0f7a808553d331b057b620 +File: unmappedArgs.kt - 06b1bd0d85daf55fdf0d77f632574765 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/lateinitWithInit.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/lateinitWithInit.antlrtree.txt index 41d7ad74a..4ee8bcda7 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/lateinitWithInit.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/lateinitWithInit.antlrtree.txt @@ -71,6 +71,4 @@ File: lateinitWithInit.kt - e503b5a1e20e631a15fc5c660e58c599 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/lateinitWithMultipleConstructors.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/lateinitWithMultipleConstructors.antlrtree.txt index 15d2b3bf7..3960b3b47 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/lateinitWithMultipleConstructors.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/lateinitWithMultipleConstructors.antlrtree.txt @@ -129,6 +129,4 @@ File: lateinitWithMultipleConstructors.kt - 2f498360daabc239ed07b27a640c4d59 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/lateinitWithMultipleConstructorsAndDelegation.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/lateinitWithMultipleConstructorsAndDelegation.antlrtree.txt index 87a370a5a..fab922d34 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/lateinitWithMultipleConstructorsAndDelegation.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/lateinitWithMultipleConstructorsAndDelegation.antlrtree.txt @@ -169,6 +169,4 @@ File: lateinitWithMultipleConstructorsAndDelegation.kt - cd9495b62624074a0750093 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/lateinitWithPrimaryConstructorAndConstructor.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/lateinitWithPrimaryConstructorAndConstructor.antlrtree.txt index 2b61d13af..10346c5d3 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/lateinitWithPrimaryConstructorAndConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/lateinitWithPrimaryConstructorAndConstructor.antlrtree.txt @@ -97,6 +97,4 @@ File: lateinitWithPrimaryConstructorAndConstructor.kt - 01cc5dac597076a0e932a8fb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/normalLateinit.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/normalLateinit.antlrtree.txt index 280c88d07..383376d68 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/normalLateinit.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/normalLateinit.antlrtree.txt @@ -78,6 +78,4 @@ File: normalLateinit.kt - 6b239474bc13330a771fb13908e20bf6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/normalLateinitWithTwoConstructors.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/normalLateinitWithTwoConstructors.antlrtree.txt index 031b1aae2..f3091e69d 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/normalLateinitWithTwoConstructors.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/unnecessaryLateinit/normalLateinitWithTwoConstructors.antlrtree.txt @@ -91,6 +91,4 @@ File: normalLateinitWithTwoConstructors.kt - 1945f81924e48126e08a5055e3672090 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/unresolvedReference.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/unresolvedReference.antlrtree.txt index 3b56a342a..90a74158f 100644 --- a/grammar/testData/diagnostics/controlFlowAnalysis/unresolvedReference.antlrtree.txt +++ b/grammar/testData/diagnostics/controlFlowAnalysis/unresolvedReference.antlrtree.txt @@ -1214,6 +1214,4 @@ File: unresolvedReference.kt - c36ef950ab6832bf3bc284927bec8f5f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlFlowAnalysis/unusedPropertyWithCustomAccessors.antlrtree.txt b/grammar/testData/diagnostics/controlFlowAnalysis/unusedPropertyWithCustomAccessors.antlrtree.txt new file mode 100644 index 000000000..2daded6fd --- /dev/null +++ b/grammar/testData/diagnostics/controlFlowAnalysis/unusedPropertyWithCustomAccessors.antlrtree.txt @@ -0,0 +1,670 @@ +File: unusedPropertyWithCustomAccessors.kt - b3bf1f20c32ee4ed95d10969ec256038 + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KProperty") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + DELEGATE("delegate") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Delegate") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p1") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + DELEGATE("delegate") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("p1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p2") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + DELEGATE("delegate") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p2") + postfixUnarySuffix + postfixUnaryOperator + INCR("++") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p3") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + DELEGATE("delegate") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + INCR("++") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p3") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("p1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("p2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p3") + postfixUnarySuffix + postfixUnaryOperator + INCR("++") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + INCR("++") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p4") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Delegate") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("thisRef") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + PROPERTY("property") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("prop") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("setValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("thisRef") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + PROPERTY("property") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("prop") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/ForLoopWithExtensionIteratorOnNullable.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/ForLoopWithExtensionIteratorOnNullable.antlrtree.txt index f4d1a6227..929838fd7 100644 --- a/grammar/testData/diagnostics/controlStructures/ForLoopWithExtensionIteratorOnNullable.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/ForLoopWithExtensionIteratorOnNullable.antlrtree.txt @@ -1,4 +1,4 @@ -File: ForLoopWithExtensionIteratorOnNullable.kt - bc06dc50b2e6b50beaa5a41979f8c50e +File: ForLoopWithExtensionIteratorOnNullable.kt - 0f29f02d2742f827b7ad1f896e235f27 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/controlStructures/ForbidStatementAsDirectFunctionBody.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/ForbidStatementAsDirectFunctionBody.antlrtree.txt index 8f5ecc47c..0216d2cc5 100644 --- a/grammar/testData/diagnostics/controlStructures/ForbidStatementAsDirectFunctionBody.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/ForbidStatementAsDirectFunctionBody.antlrtree.txt @@ -1,5 +1,4 @@ -File: ForbidStatementAsDirectFunctionBody.kt - 4de5fd651bc11d7239192201a0ff99a1 (WITH_ERRORS) - NL("\n") +File: ForbidStatementAsDirectFunctionBody.kt - 42f54aae3d580114f4de2faad8e81848 (WITH_ERRORS) packageHeader importList topLevelObject @@ -304,5 +303,5 @@ File: ForbidStatementAsDirectFunctionBody.kt - 4de5fd651bc11d7239192201a0ff99a1 literalConstant BooleanLiteral("true") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/breakToLabel.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/breakToLabel.antlrtree.txt new file mode 100644 index 000000000..17cf5d210 --- /dev/null +++ b/grammar/testData/diagnostics/controlStructures/breakToLabel.antlrtree.txt @@ -0,0 +1,460 @@ +File: breakToLabel.kt - 5facd459de9bef57f027ba025e42870c + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("tokenType") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + label + simpleIdentifier + Identifier("FindTagEnd") + AT_POST_WS("@ ") + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tokenType") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("let") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + equalityOperator + EXCL_EQEQ("!==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("XML_END_TAG_START") + QUOTE_CLOSE(""") + RCURL("}") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tokenType") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("XML_COMMENT_CHARACTERS") + QUOTE_CLOSE(""") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("end") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tokenType") + semis + NL("\n") + statement + loopStatement + forStatement + FOR("for") + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("i") + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tokenType") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("' '") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK_AT("break@FindTagEnd") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("tokenType") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("abc") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/catchGenerics.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/catchGenerics.antlrtree.txt index 9717665de..b0e4970da 100644 --- a/grammar/testData/diagnostics/controlStructures/catchGenerics.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/catchGenerics.antlrtree.txt @@ -538,6 +538,4 @@ File: catchGenerics.kt - ae02f26be6b207453ef30bed8fcf4c00 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/commonSupertypeOfT.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/commonSupertypeOfT.antlrtree.txt index cf26e3b38..a2e76cb8d 100644 --- a/grammar/testData/diagnostics/controlStructures/commonSupertypeOfT.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/commonSupertypeOfT.antlrtree.txt @@ -882,6 +882,4 @@ File: commonSupertypeOfT.kt - 34c5f2cdab33e058e3a92bcabbc9b03e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/continueAndBreakLabelWithSameFunctionName.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/continueAndBreakLabelWithSameFunctionName.antlrtree.txt index a5b12635a..d0d2f7893 100644 --- a/grammar/testData/diagnostics/controlStructures/continueAndBreakLabelWithSameFunctionName.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/continueAndBreakLabelWithSameFunctionName.antlrtree.txt @@ -603,6 +603,4 @@ File: continueAndBreakLabelWithSameFunctionName.kt - 12966f64301823b4e116cf53812 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/emptyIf.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/emptyIf.antlrtree.txt index 3944f697d..ccc879759 100644 --- a/grammar/testData/diagnostics/controlStructures/emptyIf.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/emptyIf.antlrtree.txt @@ -512,6 +512,4 @@ File: emptyIf.kt - eba73e7a7b15db9252e1f90f7b541f69 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/forWithNullableIterator.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/forWithNullableIterator.antlrtree.txt index 7847c8d6a..1b802c817 100644 --- a/grammar/testData/diagnostics/controlStructures/forWithNullableIterator.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/forWithNullableIterator.antlrtree.txt @@ -1,4 +1,5 @@ -File: forWithNullableIterator.kt - f146e44e16ec080b2135d835d281f199 +File: forWithNullableIterator.kt - a8acb5743d175e30e6b37d78f9391eff + NL("\n") packageHeader importList topLevelObject @@ -199,6 +200,4 @@ File: forWithNullableIterator.kt - f146e44e16ec080b2135d835d281f199 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/ifElseIntersection.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/ifElseIntersection.antlrtree.txt index b69ef017f..119c11fb5 100644 --- a/grammar/testData/diagnostics/controlStructures/ifElseIntersection.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/ifElseIntersection.antlrtree.txt @@ -1,5 +1,4 @@ -File: ifElseIntersection.kt - f777ead4fc8a7008fbeb52bc1f4c9036 - NL("\n") +File: ifElseIntersection.kt - 473df5c2385fc69c9212a82744e7807e NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/controlStructures/ifInResultOfLambda.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/ifInResultOfLambda.antlrtree.txt index 85c16cbf3..594f1041a 100644 --- a/grammar/testData/diagnostics/controlStructures/ifInResultOfLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/ifInResultOfLambda.antlrtree.txt @@ -1,4 +1,4 @@ -File: ifInResultOfLambda.kt - 92b81858f5aa84e6e26d6165925718d4 +File: ifInResultOfLambda.kt - 4245335bd9dd2f322c878960c462d7b4 NL("\n") NL("\n") NL("\n") @@ -518,6 +518,4 @@ File: ifInResultOfLambda.kt - 92b81858f5aa84e6e26d6165925718d4 QUOTE_CLOSE(""") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/ifToAnyDiscriminatingUsages.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/ifToAnyDiscriminatingUsages.antlrtree.txt index bf49e6e51..f78b3dcc3 100644 --- a/grammar/testData/diagnostics/controlStructures/ifToAnyDiscriminatingUsages.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/ifToAnyDiscriminatingUsages.antlrtree.txt @@ -1,5 +1,4 @@ -File: ifToAnyDiscriminatingUsages.kt - 5119c35df9051827b056a2096efa84d0 - NL("\n") +File: ifToAnyDiscriminatingUsages.kt - 6bdba87d7dad11d34b7cb2d5a88768ff NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/controlStructures/ifWhenToAnyComplexExpressions.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/ifWhenToAnyComplexExpressions.antlrtree.txt index 81562c9f6..855c10c5c 100644 --- a/grammar/testData/diagnostics/controlStructures/ifWhenToAnyComplexExpressions.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/ifWhenToAnyComplexExpressions.antlrtree.txt @@ -837,6 +837,4 @@ File: ifWhenToAnyComplexExpressions.kt - 4812453272182c8a600ab4d7c5ecd1bb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/ifWhenWithoutElse.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/ifWhenWithoutElse.antlrtree.txt index 31e11d9b8..68f8e3d01 100644 --- a/grammar/testData/diagnostics/controlStructures/ifWhenWithoutElse.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/ifWhenWithoutElse.antlrtree.txt @@ -1,5 +1,4 @@ -File: ifWhenWithoutElse.kt - de668c40ed40eac32f56c319e9ce7c0d - NL("\n") +File: ifWhenWithoutElse.kt - ff55449a5958d31ea7d57df1b3457de3 packageHeader importList topLevelObject @@ -4401,5 +4400,4 @@ File: ifWhenWithoutElse.kt - de668c40ed40eac32f56c319e9ce7c0d RCURL("}") semis NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/improperElseInExpression.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/improperElseInExpression.antlrtree.txt index 82a594cda..ca1daa9e3 100644 --- a/grammar/testData/diagnostics/controlStructures/improperElseInExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/improperElseInExpression.antlrtree.txt @@ -1,5 +1,4 @@ -File: improperElseInExpression.kt - 2fcf49d6d7f65ecdf00a9868dbb6d2fe - NL("\n") +File: improperElseInExpression.kt - f017877954aa23be6748cd4e67201c3b NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/controlStructures/jumpAcrossFunctionBoundary.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/jumpAcrossFunctionBoundary.antlrtree.txt index f21f62ab7..e4771fad7 100644 --- a/grammar/testData/diagnostics/controlStructures/jumpAcrossFunctionBoundary.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/jumpAcrossFunctionBoundary.antlrtree.txt @@ -1,4 +1,5 @@ -File: jumpAcrossFunctionBoundary.kt - 7cb5f0934fbd5e482411b7168b7fa26a +File: jumpAcrossFunctionBoundary.kt - fe1c386ae81c905e98f03e383e78ca1c + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/controlStructures/kt10706.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/kt10706.antlrtree.txt index c37146655..b49e5ad40 100644 --- a/grammar/testData/diagnostics/controlStructures/kt10706.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/kt10706.antlrtree.txt @@ -379,6 +379,4 @@ File: kt10706.kt - 4147a470f5fc1d3cffa3ea1dc26be6b3 semi NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/kt1075.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/kt1075.antlrtree.txt index f98a77037..df70f7435 100644 --- a/grammar/testData/diagnostics/controlStructures/kt1075.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/kt1075.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt1075.kt - 5f2abb4856632a99ccf5ed1f8f012959 - NL("\n") +File: kt1075.kt - dc22c1709d825dc586c126185e4d9bee packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/controlStructures/kt30406.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/kt30406.antlrtree.txt index 2a89820db..908a8f672 100644 --- a/grammar/testData/diagnostics/controlStructures/kt30406.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/kt30406.antlrtree.txt @@ -335,6 +335,4 @@ File: kt30406.kt - 2976aa9f515de9b712ec13f010bdb1f9 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/kt4310.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/kt4310.antlrtree.txt index 03e7ab75d..a91cbdae3 100644 --- a/grammar/testData/diagnostics/controlStructures/kt4310.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/kt4310.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt4310.kt - 4323bc3e57769eb2aea4531565d738d8 - NL("\n") +File: kt4310.kt - eb3fe64924e1f1b5699dda66504fd957 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/controlStructures/kt51711.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/kt51711.antlrtree.txt new file mode 100644 index 000000000..d2cda64af --- /dev/null +++ b/grammar/testData/diagnostics/controlStructures/kt51711.antlrtree.txt @@ -0,0 +1,487 @@ +File: kt51711.kt - cb6ec2ca255300584226f4d0b1e0534a + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("fake") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("fake") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("filter") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("isLowerCase") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/kt770.kt351.kt735_StatementType.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/kt770.kt351.kt735_StatementType.antlrtree.txt index 6e32414c8..bd79348ea 100644 --- a/grammar/testData/diagnostics/controlStructures/kt770.kt351.kt735_StatementType.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/kt770.kt351.kt735_StatementType.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt770.kt351.kt735_StatementType.kt - 371061476d7ef8fd80c2856e9909e152 (WITH_ERRORS) - NL("\n") +File: kt770.kt351.kt735_StatementType.kt - c44b3362353510d340f8ed3426c9ceb7 (WITH_ERRORS) NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/controlStructures/kt786.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/kt786.antlrtree.txt index 70980edb8..e38dd1ec5 100644 --- a/grammar/testData/diagnostics/controlStructures/kt786.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/kt786.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt786.kt - 0550cec7d3a742133793573cd7d87fdc +File: kt786.kt - 888ae95e892547438686f4260b47d032 packageHeader PACKAGE("package") identifier @@ -687,5 +687,5 @@ File: kt786.kt - 0550cec7d3a742133793573cd7d87fdc literalConstant IntegerLiteral("8") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/lambdasInExclExclAndElvis.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/lambdasInExclExclAndElvis.antlrtree.txt index a266d4cb5..6d5881466 100644 --- a/grammar/testData/diagnostics/controlStructures/lambdasInExclExclAndElvis.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/lambdasInExclExclAndElvis.antlrtree.txt @@ -1,4 +1,4 @@ -File: lambdasInExclExclAndElvis.kt - 4c41a0d2cc5b57d66b95dcfc13058bee +File: lambdasInExclExclAndElvis.kt - 14e90cd666d0540f7424db1e87120bdc NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/controlStructures/localReturnInsidePropertyAccessor.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/localReturnInsidePropertyAccessor.antlrtree.txt index d6dda6e00..38f168555 100644 --- a/grammar/testData/diagnostics/controlStructures/localReturnInsidePropertyAccessor.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/localReturnInsidePropertyAccessor.antlrtree.txt @@ -1,4 +1,4 @@ -File: localReturnInsidePropertyAccessor.kt - ff5e38571faf2d706e597f587a5c18fb +File: localReturnInsidePropertyAccessor.kt - 9d85c53b438f0bc81e7857f8b7d966a3 packageHeader importList topLevelObject @@ -324,5 +324,5 @@ File: localReturnInsidePropertyAccessor.kt - ff5e38571faf2d706e597f587a5c18fb NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/nestedLoopsWithMultipleLabels.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/nestedLoopsWithMultipleLabels.antlrtree.txt new file mode 100644 index 000000000..d02712776 --- /dev/null +++ b/grammar/testData/diagnostics/controlStructures/nestedLoopsWithMultipleLabels.antlrtree.txt @@ -0,0 +1,136 @@ +File: nestedLoopsWithMultipleLabels.kt - 35db02ab0f16a3f1439572b09ac1ea49 + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + label + simpleIdentifier + Identifier("a") + AT_POST_WS("@ ") + label + simpleIdentifier + Identifier("b") + AT_POST_WS("@ ") + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@a") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK_AT("break@b") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/nonExhaustiveIfInElvis_after.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/nonExhaustiveIfInElvis_after.antlrtree.txt new file mode 100644 index 000000000..08bedfc58 --- /dev/null +++ b/grammar/testData/diagnostics/controlStructures/nonExhaustiveIfInElvis_after.antlrtree.txt @@ -0,0 +1,881 @@ +File: nonExhaustiveIfInElvis_after.kt - 7a03ac6e09676c958e50be4cef00e1ad + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hello") + QUOTE_CLOSE(""") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hello") + QUOTE_CLOSE(""") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/nonExhaustiveIfInElvis_before.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/nonExhaustiveIfInElvis_before.antlrtree.txt new file mode 100644 index 000000000..ce7b8c896 --- /dev/null +++ b/grammar/testData/diagnostics/controlStructures/nonExhaustiveIfInElvis_before.antlrtree.txt @@ -0,0 +1,880 @@ +File: nonExhaustiveIfInElvis_before.kt - 912d96885a2b01b23201919a87707825 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hello") + QUOTE_CLOSE(""") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hello") + QUOTE_CLOSE(""") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/notAFunctionLabel_after.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/notAFunctionLabel_after.antlrtree.txt index ab4e0922e..50cc535ee 100644 --- a/grammar/testData/diagnostics/controlStructures/notAFunctionLabel_after.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/notAFunctionLabel_after.antlrtree.txt @@ -1,4 +1,4 @@ -File: notAFunctionLabel_after.kt - 68fc699e2c5dcb4983f69012ad35eee7 +File: notAFunctionLabel_after.kt - 27f4181f033f43bc64eead9dee5c4a2d NL("\n") packageHeader importList @@ -942,5 +942,123 @@ File: notAFunctionLabel_after.kt - 68fc699e2c5dcb4983f69012ad35eee7 NL("\n") RCURL("}") semis - EOF("") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testMultipleLabelsWithNestedLambda") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + label + simpleIdentifier + Identifier("l1") + AT_POST_WS("@ ") + label + simpleIdentifier + Identifier("l2") + AT_NO_WS("@") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@l1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@l2") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/notAFunctionLabel_before.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/notAFunctionLabel_before.antlrtree.txt index bcc9ca67b..1ce4b258c 100644 --- a/grammar/testData/diagnostics/controlStructures/notAFunctionLabel_before.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/notAFunctionLabel_before.antlrtree.txt @@ -1,4 +1,4 @@ -File: notAFunctionLabel_before.kt - ed65f2cf6dd894261db005b6136fc6f0 +File: notAFunctionLabel_before.kt - f98d68368e75b99183471c85e0974e7c NL("\n") packageHeader importList @@ -942,5 +942,123 @@ File: notAFunctionLabel_before.kt - ed65f2cf6dd894261db005b6136fc6f0 NL("\n") RCURL("}") semis - EOF("") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testMultipleLabelsWithNestedLambda") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + label + simpleIdentifier + Identifier("l1") + AT_POST_WS("@ ") + label + simpleIdentifier + Identifier("l2") + AT_NO_WS("@") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@l1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@l2") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/redundantLabel.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/redundantLabel.antlrtree.txt index d977ea6aa..3f97ec2e9 100644 --- a/grammar/testData/diagnostics/controlStructures/redundantLabel.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/redundantLabel.antlrtree.txt @@ -802,6 +802,4 @@ File: redundantLabel.kt - b743ffe68506ab338967b6c08e9c2c0c LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/specialConstructsAndPlatformTypes.k.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/specialConstructsAndPlatformTypes.k.antlrtree.txt index 22dcb6c31..4ea0c465d 100644 --- a/grammar/testData/diagnostics/controlStructures/specialConstructsAndPlatformTypes.k.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/specialConstructsAndPlatformTypes.k.antlrtree.txt @@ -1663,6 +1663,4 @@ File: specialConstructsAndPlatformTypes.k.kt - ef33d538f30b12e076f310b313316f38 RSQUARE("]") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/specialConstructsWithNullableExpectedType.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/specialConstructsWithNullableExpectedType.antlrtree.txt index d49cd8766..cb881f8ca 100644 --- a/grammar/testData/diagnostics/controlStructures/specialConstructsWithNullableExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/specialConstructsWithNullableExpectedType.antlrtree.txt @@ -1551,6 +1551,4 @@ File: specialConstructsWithNullableExpectedType.kt - df830864c2d49403b9c6104686d EXCL_WS("! ") RCURL("}") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/tryReturnType.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/tryReturnType.antlrtree.txt index 99d1b60cf..de553d65b 100644 --- a/grammar/testData/diagnostics/controlStructures/tryReturnType.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/tryReturnType.antlrtree.txt @@ -1,5 +1,4 @@ -File: tryReturnType.kt - 94be664078210176ef0fc37d420b8459 - NL("\n") +File: tryReturnType.kt - 6b4e65399f51e46b8a3223c708f8ed0a packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/controlStructures/valVarCatchParameter.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/valVarCatchParameter.antlrtree.txt index 3b119f4d1..132c374ac 100644 --- a/grammar/testData/diagnostics/controlStructures/valVarCatchParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/valVarCatchParameter.antlrtree.txt @@ -1,4 +1,5 @@ -File: valVarCatchParameter.kt - 3eb7c43139240bb2d1815a52565b39a0 (WITH_ERRORS) +File: valVarCatchParameter.kt - b2aab4a80317d820b2b733aa592ae974 (WITH_ERRORS) + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/controlStructures/valVarLoopParameter.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/valVarLoopParameter.antlrtree.txt index 9005fe0b2..be578e001 100644 --- a/grammar/testData/diagnostics/controlStructures/valVarLoopParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/valVarLoopParameter.antlrtree.txt @@ -1,4 +1,5 @@ -File: valVarLoopParameter.kt - 3943cda4074ea2e67d4aed5df7364883 (WITH_ERRORS) +File: valVarLoopParameter.kt - bac1ff94cbbe975d76fecb9fb475440f (WITH_ERRORS) + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/controlStructures/whenInResultOfLambda.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/whenInResultOfLambda.antlrtree.txt index 98e6f287e..362339539 100644 --- a/grammar/testData/diagnostics/controlStructures/whenInResultOfLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/whenInResultOfLambda.antlrtree.txt @@ -1,4 +1,4 @@ -File: whenInResultOfLambda.kt - 6dca044eed3987fd6fe5c1b92850c042 +File: whenInResultOfLambda.kt - 49f885651e3504c9ef391c01d5d788c7 NL("\n") NL("\n") NL("\n") @@ -802,6 +802,4 @@ File: whenInResultOfLambda.kt - 6dca044eed3987fd6fe5c1b92850c042 NL("\n") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/whenToAnyDiscriminatingUsages.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/whenToAnyDiscriminatingUsages.antlrtree.txt index 7c8cb5414..5aeb0ad45 100644 --- a/grammar/testData/diagnostics/controlStructures/whenToAnyDiscriminatingUsages.antlrtree.txt +++ b/grammar/testData/diagnostics/controlStructures/whenToAnyDiscriminatingUsages.antlrtree.txt @@ -1598,6 +1598,4 @@ File: whenToAnyDiscriminatingUsages.kt - aa48506a4cd3d32052be3d0cfce53451 semi NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/controlStructures/whenWithNothingTypedSubject.antlrtree.txt b/grammar/testData/diagnostics/controlStructures/whenWithNothingTypedSubject.antlrtree.txt new file mode 100644 index 000000000..079d6f05f --- /dev/null +++ b/grammar/testData/diagnostics/controlStructures/whenWithNothingTypedSubject.antlrtree.txt @@ -0,0 +1,176 @@ +File: whenWithNothingTypedSubject.kt - 33fde57a7982e233896b876d6e52e8e4 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("MyNothing") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("n") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("n2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyNothing") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + LCURL("{") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n2") + RPAREN(")") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/callableReference/invokeOutideSuspend.antlrtree.txt b/grammar/testData/diagnostics/coroutines/callableReference/invokeOutideSuspend.antlrtree.txt index 2730f4294..f8f3df312 100644 --- a/grammar/testData/diagnostics/coroutines/callableReference/invokeOutideSuspend.antlrtree.txt +++ b/grammar/testData/diagnostics/coroutines/callableReference/invokeOutideSuspend.antlrtree.txt @@ -1,4 +1,5 @@ -File: invokeOutideSuspend.kt - be96a3bc802ba995531366c26a6cf65d +File: invokeOutideSuspend.kt - 20e1de90a0f748207dc1b5518ef1050b + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/coroutines/modifierFormBuiltinSuspendFun.antlrtree.txt b/grammar/testData/diagnostics/coroutines/modifierFormBuiltinSuspendFun.antlrtree.txt new file mode 100644 index 000000000..8c972bbf0 --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/modifierFormBuiltinSuspendFun.antlrtree.txt @@ -0,0 +1,172 @@ +File: modifierFormBuiltinSuspendFun.kt - 02d1c384e46beb8ad7209c399ca89781 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + simpleIdentifier + SUSPEND("suspend") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + simpleIdentifier + SUSPEND("suspend") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + SUSPEND("suspend") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/kSuspendFunctionN/mixingSuspendAndNonSuspendSupertypes.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/kSuspendFunctionN/mixingSuspendAndNonSuspendSupertypes.antlrtree.txt new file mode 100644 index 000000000..7c3a46545 --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/kSuspendFunctionN/mixingSuspendAndNonSuspendSupertypes.antlrtree.txt @@ -0,0 +1,206 @@ +File: mixingSuspendAndNonSuspendSupertypes.kt - 23d2e90b83dcd8a905a22b04296114df + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KSuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KSuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KSuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/kSuspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperClass.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/kSuspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperClass.antlrtree.txt new file mode 100644 index 000000000..5b7f8289c --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/kSuspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperClass.antlrtree.txt @@ -0,0 +1,341 @@ +File: mixingSuspendAndNonSuspendSupertypesThruSuperClass.kt - 918b3775bacc6444c04567351e1bb54d + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("CSuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CSuper") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KSuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CSuper") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KSuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("SCSuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KSuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SCSuper") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SCSuper") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/kSuspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperFunInterface.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/kSuspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperFunInterface.antlrtree.txt new file mode 100644 index 000000000..7368b63b5 --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/kSuspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperFunInterface.antlrtree.txt @@ -0,0 +1,210 @@ +File: mixingSuspendAndNonSuspendSupertypesThruSuperFunInterface.kt - 9bd078a9b977675a3407b34c508f55ab + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FISuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KSuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KSuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KSuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/kSuspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperinterface.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/kSuspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperinterface.antlrtree.txt new file mode 100644 index 000000000..db941c57c --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/kSuspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperinterface.antlrtree.txt @@ -0,0 +1,527 @@ +File: mixingSuspendAndNonSuspendSupertypesThruSuperinterface.kt - decb1aed0bd69f1a6e629078102eda0c + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ISuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KSuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KSuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KSuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("SISuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KSuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/kSuspendFunctionN/simple.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/kSuspendFunctionN/simple.antlrtree.txt new file mode 100644 index 000000000..dd5d6cffe --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/kSuspendFunctionN/simple.antlrtree.txt @@ -0,0 +1,166 @@ +File: simple.kt - 2df9d7208bce5cc097d3c401963f1ad1 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KSuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KSuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KSuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/simple/mixingSuspendAndNonSuspendSupertypes.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/simple/mixingSuspendAndNonSuspendSupertypes.antlrtree.txt new file mode 100644 index 000000000..5f109c8e5 --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/simple/mixingSuspendAndNonSuspendSupertypes.antlrtree.txt @@ -0,0 +1,232 @@ +File: mixingSuspendAndNonSuspendSupertypes.kt - c48b673222f0bfbabed50e0aa42a57f8 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/simple/mixingSuspendAndNonSuspendSupertypesThruSuperClass.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/simple/mixingSuspendAndNonSuspendSupertypesThruSuperClass.antlrtree.txt new file mode 100644 index 000000000..13eacb0be --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/simple/mixingSuspendAndNonSuspendSupertypesThruSuperClass.antlrtree.txt @@ -0,0 +1,322 @@ +File: mixingSuspendAndNonSuspendSupertypesThruSuperClass.kt - f090243b8f8a36cda860d1816c83b002 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("CSuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CSuper") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CSuper") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("SCSuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SCSuper") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SCSuper") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/simple/mixingSuspendAndNonSuspendSupertypesThruSuperFunInterface.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/simple/mixingSuspendAndNonSuspendSupertypesThruSuperFunInterface.antlrtree.txt new file mode 100644 index 000000000..cb6db84dd --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/simple/mixingSuspendAndNonSuspendSupertypesThruSuperFunInterface.antlrtree.txt @@ -0,0 +1,613 @@ +File: mixingSuspendAndNonSuspendSupertypesThruSuperFunInterface.kt - 49a756b61868a329d42f73c6a0bec797 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FISuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("SFISuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SFISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SFISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SFISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SFISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SFISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SFISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SFISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SFISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/simple/mixingSuspendAndNonSuspendSupertypesThruSuperinterface.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/simple/mixingSuspendAndNonSuspendSupertypesThruSuperinterface.antlrtree.txt new file mode 100644 index 000000000..3dc1373de --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/simple/mixingSuspendAndNonSuspendSupertypesThruSuperinterface.antlrtree.txt @@ -0,0 +1,611 @@ +File: mixingSuspendAndNonSuspendSupertypesThruSuperinterface.kt - fd3db93ca96b337c189dbee7e9b7261c + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ISuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("SISuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/simple/simple.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/simple/simple.antlrtree.txt new file mode 100644 index 000000000..f3f46b1d9 --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/simple/simple.antlrtree.txt @@ -0,0 +1,177 @@ +File: simple.kt - 121b48dc6d0f43e046c40471ec616433 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/suspendFunctionN/mixingSuspendAndNonSuspendSupertypes.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/suspendFunctionN/mixingSuspendAndNonSuspendSupertypes.antlrtree.txt new file mode 100644 index 000000000..32980d757 --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/suspendFunctionN/mixingSuspendAndNonSuspendSupertypes.antlrtree.txt @@ -0,0 +1,252 @@ +File: mixingSuspendAndNonSuspendSupertypes.kt - 0e54ff2f683c2f081a200ae5e8a20fa4 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("coroutines") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/suspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperClass.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/suspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperClass.antlrtree.txt new file mode 100644 index 000000000..2fa24e4af --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/suspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperClass.antlrtree.txt @@ -0,0 +1,341 @@ +File: mixingSuspendAndNonSuspendSupertypesThruSuperClass.kt - 940176aa7cbda72e78e5fcd870924115 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("coroutines") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("CSuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CSuper") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CSuper") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("SCSuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SCSuper") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SCSuper") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/suspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperFunInterface.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/suspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperFunInterface.antlrtree.txt new file mode 100644 index 000000000..0743ff0d4 --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/suspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperFunInterface.antlrtree.txt @@ -0,0 +1,636 @@ +File: mixingSuspendAndNonSuspendSupertypesThruSuperFunInterface.kt - adfc2141b4b2a01b3459afa5b3053aa6 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("coroutines") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FISuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("SFISuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SFISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SFISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SFISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SFISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SFISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SFISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SFISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SFISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("FISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/suspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperinterface.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/suspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperinterface.antlrtree.txt new file mode 100644 index 000000000..65a7732d3 --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/suspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperinterface.antlrtree.txt @@ -0,0 +1,634 @@ +File: mixingSuspendAndNonSuspendSupertypesThruSuperinterface.kt - 1d0c1111bbb5178463251f61befc7dc7 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("coroutines") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ISuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("SISuper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SISuper") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ISuper") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/suspendFunctionN/simple.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/suspendFunctionN/simple.antlrtree.txt new file mode 100644 index 000000000..e023f7431 --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendFunctionAsSupertype/suspendFunctionN/simple.antlrtree.txt @@ -0,0 +1,198 @@ +File: simple.kt - ddbced6c9a1756cd1410b5de4fd14b4a + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("coroutines") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SuspendFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendInvokeInsideTry.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendInvokeInsideTry.antlrtree.txt index ff37c6946..a6d29f308 100644 --- a/grammar/testData/diagnostics/coroutines/suspendInvokeInsideTry.antlrtree.txt +++ b/grammar/testData/diagnostics/coroutines/suspendInvokeInsideTry.antlrtree.txt @@ -229,6 +229,4 @@ File: suspendInvokeInsideTry.kt - bcd2898a9aec082285378b933c401362 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendInvokeInsideWhen.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendInvokeInsideWhen.antlrtree.txt index e0e84e3a6..2d8d32b86 100644 --- a/grammar/testData/diagnostics/coroutines/suspendInvokeInsideWhen.antlrtree.txt +++ b/grammar/testData/diagnostics/coroutines/suspendInvokeInsideWhen.antlrtree.txt @@ -347,6 +347,4 @@ File: suspendInvokeInsideWhen.kt - 23bf0fed91dc04541fd816ed8e6b0b5e semi NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendInvokeWithReceiver.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendInvokeWithReceiver.antlrtree.txt new file mode 100644 index 000000000..a9d55d112 --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendInvokeWithReceiver.antlrtree.txt @@ -0,0 +1,270 @@ +File: suspendInvokeWithReceiver.kt - 0a8c2c48da0f23a01432af3a83712cda + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("r") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("nonReproducer1") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("r") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyObject") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("someProperty") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("MyObject") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("someProperty") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("TODO()") + QUOTE_CLOSE(""") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + SUSPEND("suspend") + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/coroutines/suspendLambdaFromExpectedType.antlrtree.txt b/grammar/testData/diagnostics/coroutines/suspendLambdaFromExpectedType.antlrtree.txt new file mode 100644 index 000000000..f9d686f40 --- /dev/null +++ b/grammar/testData/diagnostics/coroutines/suspendLambdaFromExpectedType.antlrtree.txt @@ -0,0 +1,207 @@ +File: suspendLambdaFromExpectedType.kt - f9e498529ae7aa61475ac56c17df9fc4 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("runBlocking") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("runBlocking") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/cyclicHierarchy/classIndirectlyInheritsNested.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/classIndirectlyInheritsNested.antlrtree.txt index cac6c762e..26d8df5d7 100644 --- a/grammar/testData/diagnostics/cyclicHierarchy/classIndirectlyInheritsNested.antlrtree.txt +++ b/grammar/testData/diagnostics/cyclicHierarchy/classIndirectlyInheritsNested.antlrtree.txt @@ -1,4 +1,5 @@ -File: classIndirectlyInheritsNested.kt - 8fae120e00aaf8933bcb7450fa5d80ec +File: classIndirectlyInheritsNested.kt - 5c467888806dcb2708cfe3c59e0cb6ad + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/cyclicHierarchy/classInheritsNested.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/classInheritsNested.antlrtree.txt index 24ba77064..5d618f8bb 100644 --- a/grammar/testData/diagnostics/cyclicHierarchy/classInheritsNested.antlrtree.txt +++ b/grammar/testData/diagnostics/cyclicHierarchy/classInheritsNested.antlrtree.txt @@ -1,4 +1,5 @@ -File: classInheritsNested.kt - b92a748aeedcd9234139f1a887f70b4e +File: classInheritsNested.kt - 0eabfc99588bd8329148c67a4e4326e3 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/cyclicHierarchy/commonSupertypeForCyclicAndUsualTypes.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/commonSupertypeForCyclicAndUsualTypes.antlrtree.txt index bba038306..633d1c41a 100644 --- a/grammar/testData/diagnostics/cyclicHierarchy/commonSupertypeForCyclicAndUsualTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/cyclicHierarchy/commonSupertypeForCyclicAndUsualTypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: commonSupertypeForCyclicAndUsualTypes.kt - 317553adcb90b4055553fdc37a45bf98 +File: commonSupertypeForCyclicAndUsualTypes.kt - d397c8412f6049ac05817ec6356a1bb2 + NL("\n") packageHeader importList topLevelObject @@ -252,5 +253,5 @@ File: commonSupertypeForCyclicAndUsualTypes.kt - 317553adcb90b4055553fdc37a45bf9 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/cyclicHierarchy/commonSupertypeForCyclicTypes.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/commonSupertypeForCyclicTypes.antlrtree.txt index abe21e034..7dce13a0a 100644 --- a/grammar/testData/diagnostics/cyclicHierarchy/commonSupertypeForCyclicTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/cyclicHierarchy/commonSupertypeForCyclicTypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: commonSupertypeForCyclicTypes.kt - 289cce2ad258e5a057fc7a740beb71ad +File: commonSupertypeForCyclicTypes.kt - 25b5ba580303d1395975972f42543f38 + NL("\n") packageHeader importList topLevelObject @@ -221,6 +222,4 @@ File: commonSupertypeForCyclicTypes.kt - 289cce2ad258e5a057fc7a740beb71ad semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cyclicHierarchy/cyclicHierarchy.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/cyclicHierarchy.antlrtree.txt index e39723627..9a4c38c98 100644 --- a/grammar/testData/diagnostics/cyclicHierarchy/cyclicHierarchy.antlrtree.txt +++ b/grammar/testData/diagnostics/cyclicHierarchy/cyclicHierarchy.antlrtree.txt @@ -1,4 +1,5 @@ -File: cyclicHierarchy.kt - 2bfe95aa5a5de2fb41e2edeb00da0ce1 +File: cyclicHierarchy.kt - d67ae0ce53fc2f9e91398d4ec37406e3 + NL("\n") packageHeader importList topLevelObject @@ -769,6 +770,4 @@ File: cyclicHierarchy.kt - 2bfe95aa5a5de2fb41e2edeb00da0ce1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cyclicHierarchy/kt303.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/kt303.antlrtree.txt index a62a02692..2b9153654 100644 --- a/grammar/testData/diagnostics/cyclicHierarchy/kt303.antlrtree.txt +++ b/grammar/testData/diagnostics/cyclicHierarchy/kt303.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt303.kt - d3c33cb4b7a3080e811a7e666630c6fc - NL("\n") +File: kt303.kt - 0b4b8aabc02521c463e6986a03209abe NL("\n") NL("\n") packageHeader @@ -146,6 +145,4 @@ File: kt303.kt - d3c33cb4b7a3080e811a7e666630c6fc LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cyclicHierarchy/nestedClassInSuperClassParameter.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/nestedClassInSuperClassParameter.antlrtree.txt index b24d961e2..9d55af43b 100644 --- a/grammar/testData/diagnostics/cyclicHierarchy/nestedClassInSuperClassParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/cyclicHierarchy/nestedClassInSuperClassParameter.antlrtree.txt @@ -66,6 +66,4 @@ File: nestedClassInSuperClassParameter.kt - e35629fd5e0b501a501382c61fc0aabd semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cyclicHierarchy/objectInheritsNested.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/objectInheritsNested.antlrtree.txt index c3b9674ab..c9565ad6c 100644 --- a/grammar/testData/diagnostics/cyclicHierarchy/objectInheritsNested.antlrtree.txt +++ b/grammar/testData/diagnostics/cyclicHierarchy/objectInheritsNested.antlrtree.txt @@ -1,4 +1,5 @@ -File: objectInheritsNested.kt - f04fa5206c3c278a9d8e1610c6d05af1 +File: objectInheritsNested.kt - ffa31284c401cbc947045ddab75da2f0 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/cyclicHierarchy/twoClassesWithNestedCycle.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/twoClassesWithNestedCycle.antlrtree.txt index 84fd6b983..82a21b413 100644 --- a/grammar/testData/diagnostics/cyclicHierarchy/twoClassesWithNestedCycle.antlrtree.txt +++ b/grammar/testData/diagnostics/cyclicHierarchy/twoClassesWithNestedCycle.antlrtree.txt @@ -1,4 +1,5 @@ -File: twoClassesWithNestedCycle.kt - 9bdf8f1e6831332ae8ba80513bf52ff7 +File: twoClassesWithNestedCycle.kt - df59a2cf26dec266cf821d34b022c0e4 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/noMembers_after.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/noMembers_after.antlrtree.txt index af4b70677..1fc27cca3 100644 --- a/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/noMembers_after.antlrtree.txt +++ b/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/noMembers_after.antlrtree.txt @@ -123,6 +123,4 @@ File: noMembers_after.kt - fac94031cc0db247a826e703d84d502d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/onlyInterfaces_after.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/onlyInterfaces_after.antlrtree.txt index 291e1716f..f35869db1 100644 --- a/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/onlyInterfaces_after.antlrtree.txt +++ b/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/onlyInterfaces_after.antlrtree.txt @@ -114,6 +114,4 @@ File: onlyInterfaces_after.kt - 6812daf35df79ad97acf3239b36b4341 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/onlyInterfaces_before.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/onlyInterfaces_before.antlrtree.txt index 28645c55f..16efa0a05 100644 --- a/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/onlyInterfaces_before.antlrtree.txt +++ b/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/onlyInterfaces_before.antlrtree.txt @@ -113,6 +113,4 @@ File: onlyInterfaces_before.kt - ca116286fdf5ddc21ccc22c610f05396 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/typeIsLowEnough.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/typeIsLowEnough.antlrtree.txt index 28f4a0468..af51a3560 100644 --- a/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/typeIsLowEnough.antlrtree.txt +++ b/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/typeIsLowEnough.antlrtree.txt @@ -206,6 +206,4 @@ File: typeIsLowEnough.kt - c204b0784e4bc6ff43d9883da378b59c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/withMembers_after.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/withMembers_after.antlrtree.txt index 98dc6f6de..a270a55d8 100644 --- a/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/withMembers_after.antlrtree.txt +++ b/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/withMembers_after.antlrtree.txt @@ -563,6 +563,4 @@ File: withMembers_after.kt - d59c576bbbe6638469bacbaf78f077d5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/withMembers_before.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/withMembers_before.antlrtree.txt index 32e2ff697..115011121 100644 --- a/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/withMembers_before.antlrtree.txt +++ b/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/withMembers_before.antlrtree.txt @@ -568,6 +568,4 @@ File: withMembers_before.kt - 4531552420691e3b0f0ebc78d5b39fce semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/withoutTypeReference.antlrtree.txt b/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/withoutTypeReference.antlrtree.txt index 619510958..465733792 100644 --- a/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/withoutTypeReference.antlrtree.txt +++ b/grammar/testData/diagnostics/cyclicHierarchy/withCompanion/withoutTypeReference.antlrtree.txt @@ -171,6 +171,4 @@ File: withoutTypeReference.kt - 31a5aa1d6d26ab56d5cbd985d7130943 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataClasses/conflictingCopyOverloads.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/conflictingCopyOverloads.antlrtree.txt index daa18e8c8..6e21e1f3e 100644 --- a/grammar/testData/diagnostics/dataClasses/conflictingCopyOverloads.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/conflictingCopyOverloads.antlrtree.txt @@ -197,6 +197,4 @@ File: conflictingCopyOverloads.kt - 75f9b86ddc2e98b08f16541285aca5d3 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataClasses/conflictingOverloads.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/conflictingOverloads.antlrtree.txt index f9ea98049..978b80f00 100644 --- a/grammar/testData/diagnostics/dataClasses/conflictingOverloads.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/conflictingOverloads.antlrtree.txt @@ -105,6 +105,4 @@ File: conflictingOverloads.kt - d65fc846911b91856e04df7ba69215d3 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataClasses/dataClassExplicitlyOverridingCopyNoDefaults.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/dataClassExplicitlyOverridingCopyNoDefaults.antlrtree.txt index f44028435..a5220fc15 100644 --- a/grammar/testData/diagnostics/dataClasses/dataClassExplicitlyOverridingCopyNoDefaults.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/dataClassExplicitlyOverridingCopyNoDefaults.antlrtree.txt @@ -180,6 +180,4 @@ File: dataClassExplicitlyOverridingCopyNoDefaults.kt - 0a6b4b5ff3cb8b309352fde33 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataClasses/dataClassExplicitlyOverridingCopyWithDefaults.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/dataClassExplicitlyOverridingCopyWithDefaults.antlrtree.txt index e1ec11130..d943a6109 100644 --- a/grammar/testData/diagnostics/dataClasses/dataClassExplicitlyOverridingCopyWithDefaults.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/dataClassExplicitlyOverridingCopyWithDefaults.antlrtree.txt @@ -205,6 +205,4 @@ File: dataClassExplicitlyOverridingCopyWithDefaults.kt - eebf23a4050e16f1f420311 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataClasses/dataClassNoName.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/dataClassNoName.antlrtree.txt index dc91f6d3e..66ecb3ed3 100644 --- a/grammar/testData/diagnostics/dataClasses/dataClassNoName.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/dataClassNoName.antlrtree.txt @@ -1,4 +1,5 @@ -File: dataClassNoName.kt - b5f65cb9a472aa957a6220958eacadfe (WITH_ERRORS) +File: dataClassNoName.kt - e1293e65839ec4168c8a1d12b662d671 (WITH_ERRORS) + NL("\n") NL("\n") packageHeader importList @@ -28,6 +29,4 @@ File: dataClassNoName.kt - b5f65cb9a472aa957a6220958eacadfe (WITH_ERRORS) NL("\n") RCURL("}") simpleIdentifier - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataClasses/dataClassNotOverridingCopy.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/dataClassNotOverridingCopy.antlrtree.txt index f0d45b204..e6970a5f4 100644 --- a/grammar/testData/diagnostics/dataClasses/dataClassNotOverridingCopy.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/dataClassNotOverridingCopy.antlrtree.txt @@ -213,6 +213,4 @@ File: dataClassNotOverridingCopy.kt - 54e930c1ddd2ce1d707ced7b631016ec semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataClasses/dataClassOverridingCopy_lv12.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/dataClassOverridingCopy_lv12.antlrtree.txt index 6ef54003c..05a01d845 100644 --- a/grammar/testData/diagnostics/dataClasses/dataClassOverridingCopy_lv12.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/dataClassOverridingCopy_lv12.antlrtree.txt @@ -105,6 +105,4 @@ File: dataClassOverridingCopy_lv12.kt - fbbe88d563ac9ed128e07e4305456297 simpleIdentifier Identifier("String") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataClasses/dataClassOverridingCopy_lv13.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/dataClassOverridingCopy_lv13.antlrtree.txt index 445a2d6fa..fc4ef94aa 100644 --- a/grammar/testData/diagnostics/dataClasses/dataClassOverridingCopy_lv13.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/dataClassOverridingCopy_lv13.antlrtree.txt @@ -105,6 +105,4 @@ File: dataClassOverridingCopy_lv13.kt - ab91b4c2558c9afb719c6c1a32715cf5 simpleIdentifier Identifier("String") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataClasses/dataClassVarargParam.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/dataClassVarargParam.antlrtree.txt index e5d87fe48..59d888539 100644 --- a/grammar/testData/diagnostics/dataClasses/dataClassVarargParam.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/dataClassVarargParam.antlrtree.txt @@ -1,4 +1,5 @@ -File: dataClassVarargParam.kt - 5e78ae618b9fcaf650e0d975673e6a3c +File: dataClassVarargParam.kt - b64357b1a3893267396a98857de1374d + NL("\n") packageHeader importList topLevelObject @@ -74,5 +75,5 @@ File: dataClassVarargParam.kt - 5e78ae618b9fcaf650e0d975673e6a3c Identifier("String") RPAREN(")") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/dataClasses/dataInheritance.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/dataInheritance.antlrtree.txt index 282445afe..bcde11af7 100644 --- a/grammar/testData/diagnostics/dataClasses/dataInheritance.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/dataInheritance.antlrtree.txt @@ -1,4 +1,5 @@ -File: dataInheritance.kt - cd2de28dc05dcd03efbcb50f8d8f1d83 +File: dataInheritance.kt - bb2b0a05ca0d8d774727f21174d4e9d8 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/dataClasses/dataObject.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/dataObject.antlrtree.txt index c389d0576..80798dfde 100644 --- a/grammar/testData/diagnostics/dataClasses/dataObject.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/dataObject.antlrtree.txt @@ -1,4 +1,5 @@ -File: dataObject.kt - b3ec479f732f22d7e4432920ecec7133 (WITH_ERRORS) +File: dataObject.kt - c4976cc27afaa524cbac22714b17cbb3 (WITH_ERRORS) + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/dataClasses/errorTypesInDataClasses.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/errorTypesInDataClasses.antlrtree.txt index a01a8b79f..ca7b7947a 100644 --- a/grammar/testData/diagnostics/dataClasses/errorTypesInDataClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/errorTypesInDataClasses.antlrtree.txt @@ -362,6 +362,4 @@ File: errorTypesInDataClasses.kt - 359ae6e0cd53b1bbd44735fe2a1b5247 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataClasses/extensionComponentsOnNullable.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/extensionComponentsOnNullable.antlrtree.txt index 3dc5d2c3d..45f94b476 100644 --- a/grammar/testData/diagnostics/dataClasses/extensionComponentsOnNullable.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/extensionComponentsOnNullable.antlrtree.txt @@ -1,5 +1,4 @@ -File: extensionComponentsOnNullable.kt - 8e1f2a419a7f7b89b86bac9d6c169638 - NL("\n") +File: extensionComponentsOnNullable.kt - 067ed3b33197a5d59898b58144573433 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/dataClasses/implementMethodsFromInterface.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/implementMethodsFromInterface.antlrtree.txt index b9e0e044c..3c26fc258 100644 --- a/grammar/testData/diagnostics/dataClasses/implementMethodsFromInterface.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/implementMethodsFromInterface.antlrtree.txt @@ -1,4 +1,5 @@ -File: implementMethodsFromInterface.kt - 262e4d9fd3387fded8c688fc3d94ad3a +File: implementMethodsFromInterface.kt - 9513788e1a30fc19827330577ee6d06f + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/dataClasses/implementTraitWhichHasFinalComponent1.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/implementTraitWhichHasFinalComponent1.antlrtree.txt index 8e68967b9..71dbb5127 100644 --- a/grammar/testData/diagnostics/dataClasses/implementTraitWhichHasFinalComponent1.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/implementTraitWhichHasFinalComponent1.antlrtree.txt @@ -1,4 +1,5 @@ -File: implementTraitWhichHasFinalComponent1.kt - 4d1b5fddb3746183422e3686a8a851c7 +File: implementTraitWhichHasFinalComponent1.kt - 1bcbb97acec3f39098910622ace25a4d + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/dataClasses/innerOuterDataClass.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/innerOuterDataClass.antlrtree.txt index 7f6ebd889..843e3bdd9 100644 --- a/grammar/testData/diagnostics/dataClasses/innerOuterDataClass.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/innerOuterDataClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: innerOuterDataClass.kt - 960355ce6967b6dfd732beeee87c1a7e +File: innerOuterDataClass.kt - 432050f6bfe40bf122a43f11d2b6469e + NL("\n") packageHeader importList topLevelObject @@ -29,6 +30,4 @@ File: innerOuterDataClass.kt - 960355ce6967b6dfd732beeee87c1a7e simpleIdentifier Identifier("Int") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataClasses/strange.antlrtree.txt b/grammar/testData/diagnostics/dataClasses/strange.antlrtree.txt index f03747cc4..a772ecb60 100644 --- a/grammar/testData/diagnostics/dataClasses/strange.antlrtree.txt +++ b/grammar/testData/diagnostics/dataClasses/strange.antlrtree.txt @@ -144,6 +144,4 @@ File: strange.kt - 447f1312fec4cda59968d246ec12bc09 simpleIdentifier Identifier("Int") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataFlow/EmptyIf.antlrtree.txt b/grammar/testData/diagnostics/dataFlow/EmptyIf.antlrtree.txt index 80f84ebde..f12765fb2 100644 --- a/grammar/testData/diagnostics/dataFlow/EmptyIf.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlow/EmptyIf.antlrtree.txt @@ -851,6 +851,4 @@ File: EmptyIf.kt - de05d7264096b46070371e5808821ccc semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataFlow/WhenSubject.antlrtree.txt b/grammar/testData/diagnostics/dataFlow/WhenSubject.antlrtree.txt index 4056afe73..57e569655 100644 --- a/grammar/testData/diagnostics/dataFlow/WhenSubject.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlow/WhenSubject.antlrtree.txt @@ -1,4 +1,4 @@ -File: WhenSubject.kt - 7f23afcd0bcdaff34e8999b40c45ff6b +File: WhenSubject.kt - fc5233a45257d849483f6f9f6ae3b418 packageHeader importList topLevelObject @@ -199,5 +199,5 @@ File: WhenSubject.kt - 7f23afcd0bcdaff34e8999b40c45ff6b NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/dataFlow/assignment/assignToNewVal.antlrtree.txt b/grammar/testData/diagnostics/dataFlow/assignment/assignToNewVal.antlrtree.txt index 3c0292f4a..7d7eb3743 100644 --- a/grammar/testData/diagnostics/dataFlow/assignment/assignToNewVal.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlow/assignment/assignToNewVal.antlrtree.txt @@ -271,6 +271,4 @@ File: assignToNewVal.kt - b98193238062db6c752879e7e7bb2b08 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataFlow/assignment/kt6118.antlrtree.txt b/grammar/testData/diagnostics/dataFlow/assignment/kt6118.antlrtree.txt index e3b8cc2b9..25c046dec 100644 --- a/grammar/testData/diagnostics/dataFlow/assignment/kt6118.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlow/assignment/kt6118.antlrtree.txt @@ -313,6 +313,4 @@ File: kt6118.kt - 61eefeda6c63f7dccb994e608e39e911 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataFlow/assignment/uninitializedValIsCheck.antlrtree.txt b/grammar/testData/diagnostics/dataFlow/assignment/uninitializedValIsCheck.antlrtree.txt index fe44b5738..d418ce054 100644 --- a/grammar/testData/diagnostics/dataFlow/assignment/uninitializedValIsCheck.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlow/assignment/uninitializedValIsCheck.antlrtree.txt @@ -340,6 +340,4 @@ File: uninitializedValIsCheck.kt - c7a046c5e9ba0e9f9e34e886d2006061 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataFlow/assignment/uninitializedValNullability.antlrtree.txt b/grammar/testData/diagnostics/dataFlow/assignment/uninitializedValNullability.antlrtree.txt index 350388aff..49f283a65 100644 --- a/grammar/testData/diagnostics/dataFlow/assignment/uninitializedValNullability.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlow/assignment/uninitializedValNullability.antlrtree.txt @@ -358,6 +358,4 @@ File: uninitializedValNullability.kt - 572547ca85b6b26b46f564b3a211bbfe semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataFlow/assignment/when.antlrtree.txt b/grammar/testData/diagnostics/dataFlow/assignment/when.antlrtree.txt index 38d421474..5033c2203 100644 --- a/grammar/testData/diagnostics/dataFlow/assignment/when.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlow/assignment/when.antlrtree.txt @@ -241,6 +241,4 @@ File: when.kt - 91d72652d58ba3c2dd02c52b2475e682 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataFlow/local/LocalClassBase.antlrtree.txt b/grammar/testData/diagnostics/dataFlow/local/LocalClassBase.antlrtree.txt index e22e8260d..e7c2bf0ac 100644 --- a/grammar/testData/diagnostics/dataFlow/local/LocalClassBase.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlow/local/LocalClassBase.antlrtree.txt @@ -1,4 +1,4 @@ -File: LocalClassBase.kt - 67657e4f6910237a462ecbca7389c941 +File: LocalClassBase.kt - b917b6ff4ddee677e36e9fd415237973 packageHeader importList topLevelObject @@ -293,5 +293,4 @@ File: LocalClassBase.kt - 67657e4f6910237a462ecbca7389c941 RCURL("}") semis NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/dataFlow/local/LocalClassDefaultParameters.antlrtree.txt b/grammar/testData/diagnostics/dataFlow/local/LocalClassDefaultParameters.antlrtree.txt index a2e283108..d33dac20b 100644 --- a/grammar/testData/diagnostics/dataFlow/local/LocalClassDefaultParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlow/local/LocalClassDefaultParameters.antlrtree.txt @@ -1,4 +1,4 @@ -File: LocalClassDefaultParameters.kt - ec5950050ac8708621c62a69fddef620 +File: LocalClassDefaultParameters.kt - 76198b762c2188c0574f2e0ef313d64e packageHeader importList topLevelObject @@ -213,5 +213,4 @@ File: LocalClassDefaultParameters.kt - ec5950050ac8708621c62a69fddef620 RCURL("}") semis NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/dataFlow/local/LocalObject.antlrtree.txt b/grammar/testData/diagnostics/dataFlow/local/LocalObject.antlrtree.txt index caf23afc3..0be1fd524 100644 --- a/grammar/testData/diagnostics/dataFlow/local/LocalObject.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlow/local/LocalObject.antlrtree.txt @@ -1,4 +1,4 @@ -File: LocalObject.kt - ce58d7b9941e00c2adacfe7d4c8b7964 +File: LocalObject.kt - e8a1428aad265e81bc4f652fa0744613 packageHeader importList topLevelObject @@ -207,5 +207,5 @@ File: LocalObject.kt - ce58d7b9941e00c2adacfe7d4c8b7964 Identifier("String") RPAREN(")") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/dataFlow/local/LocalObjectDelegation.antlrtree.txt b/grammar/testData/diagnostics/dataFlow/local/LocalObjectDelegation.antlrtree.txt index e6598d23c..fbcaa17b9 100644 --- a/grammar/testData/diagnostics/dataFlow/local/LocalObjectDelegation.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlow/local/LocalObjectDelegation.antlrtree.txt @@ -336,6 +336,4 @@ File: LocalObjectDelegation.kt - c3a22202839f13ed6e0ee4330278333b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataFlow/smartCastWithLambdaAndCallableReference.antlrtree.txt b/grammar/testData/diagnostics/dataFlow/smartCastWithLambdaAndCallableReference.antlrtree.txt new file mode 100644 index 000000000..401594f0c --- /dev/null +++ b/grammar/testData/diagnostics/dataFlow/smartCastWithLambdaAndCallableReference.antlrtree.txt @@ -0,0 +1,416 @@ +File: smartCastWithLambdaAndCallableReference.kt - aad33f90aee609e6ec778ddc01eb7140 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + simpleIdentifier + Identifier("myApply") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("C") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("C") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myApply") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + THROW("throw") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("RuntimeException") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/dataFlowInfoTraversal/ArrayAccess.antlrtree.txt b/grammar/testData/diagnostics/dataFlowInfoTraversal/ArrayAccess.antlrtree.txt index a524aeac1..634e28dac 100644 --- a/grammar/testData/diagnostics/dataFlowInfoTraversal/ArrayAccess.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlowInfoTraversal/ArrayAccess.antlrtree.txt @@ -1,4 +1,4 @@ -File: ArrayAccess.kt - 87b4a7ca731bcbe5404874386a9d6eed +File: ArrayAccess.kt - a79c980a2c725c811fc82fa63c97bf86 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/dataFlowInfoTraversal/BinaryExpression.antlrtree.txt b/grammar/testData/diagnostics/dataFlowInfoTraversal/BinaryExpression.antlrtree.txt index 89d9472c2..9488e45ac 100644 --- a/grammar/testData/diagnostics/dataFlowInfoTraversal/BinaryExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlowInfoTraversal/BinaryExpression.antlrtree.txt @@ -1,5 +1,4 @@ -File: BinaryExpression.kt - 0bc704a81a960a7a972d948a46509a8e - NL("\n") +File: BinaryExpression.kt - 0d7731bb2a3ccf456c104d06f50b4349 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/dataFlowInfoTraversal/BinaryExpressionIdentifier.antlrtree.txt b/grammar/testData/diagnostics/dataFlowInfoTraversal/BinaryExpressionIdentifier.antlrtree.txt index 54f9c91fd..386240cda 100644 --- a/grammar/testData/diagnostics/dataFlowInfoTraversal/BinaryExpressionIdentifier.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlowInfoTraversal/BinaryExpressionIdentifier.antlrtree.txt @@ -1,4 +1,4 @@ -File: BinaryExpressionIdentifier.kt - a41cfea68e2085b493e3a7f785f1c6c6 +File: BinaryExpressionIdentifier.kt - a2fed98aa673021e4806ad0a15cf5ca1 NL("\n") NL("\n") packageHeader @@ -449,5 +449,5 @@ File: BinaryExpressionIdentifier.kt - a41cfea68e2085b493e3a7f785f1c6c6 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/dataFlowInfoTraversal/DoWhile.antlrtree.txt b/grammar/testData/diagnostics/dataFlowInfoTraversal/DoWhile.antlrtree.txt index 1f3f6b11d..a36a45a84 100644 --- a/grammar/testData/diagnostics/dataFlowInfoTraversal/DoWhile.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlowInfoTraversal/DoWhile.antlrtree.txt @@ -1,4 +1,4 @@ -File: DoWhile.kt - cbf273f6168905ff428d9b6c04c368da +File: DoWhile.kt - 861cd57c3c4666b8db08f11ea75b6786 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/dataFlowInfoTraversal/Elvis.antlrtree.txt b/grammar/testData/diagnostics/dataFlowInfoTraversal/Elvis.antlrtree.txt index 614e18fb4..383ae6bf6 100644 --- a/grammar/testData/diagnostics/dataFlowInfoTraversal/Elvis.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlowInfoTraversal/Elvis.antlrtree.txt @@ -331,6 +331,4 @@ File: Elvis.kt - f81c84038ede1d1cf859ed516e5d2bd4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataFlowInfoTraversal/ExclExcl.antlrtree.txt b/grammar/testData/diagnostics/dataFlowInfoTraversal/ExclExcl.antlrtree.txt index 81b10b454..013c7f59d 100644 --- a/grammar/testData/diagnostics/dataFlowInfoTraversal/ExclExcl.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlowInfoTraversal/ExclExcl.antlrtree.txt @@ -1,4 +1,4 @@ -File: ExclExcl.kt - 4cf4431fb98509e74bd26768e50642d2 +File: ExclExcl.kt - e69f2b3845fd72c504f95cbf73750220 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/dataFlowInfoTraversal/ManyIfs.antlrtree.txt b/grammar/testData/diagnostics/dataFlowInfoTraversal/ManyIfs.antlrtree.txt index 229dff98e..91d6747f4 100644 --- a/grammar/testData/diagnostics/dataFlowInfoTraversal/ManyIfs.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlowInfoTraversal/ManyIfs.antlrtree.txt @@ -1,4 +1,4 @@ -File: ManyIfs.kt - 9e2121642ff322c8f242ec6b6894c749 +File: ManyIfs.kt - dc645bb80b8d935ae523dd481b27a574 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/dataFlowInfoTraversal/ObjectExpression.antlrtree.txt b/grammar/testData/diagnostics/dataFlowInfoTraversal/ObjectExpression.antlrtree.txt index da61aad47..bca9da70e 100644 --- a/grammar/testData/diagnostics/dataFlowInfoTraversal/ObjectExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlowInfoTraversal/ObjectExpression.antlrtree.txt @@ -1,5 +1,4 @@ -File: ObjectExpression.kt - fcf97ffa0f7fe290e774dd82568d8eaa - NL("\n") +File: ObjectExpression.kt - 6ec62d87b9b47408d03b238ef9ff5af2 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/dataFlowInfoTraversal/Return.antlrtree.txt b/grammar/testData/diagnostics/dataFlowInfoTraversal/Return.antlrtree.txt index 6d95cdf7a..56d015820 100644 --- a/grammar/testData/diagnostics/dataFlowInfoTraversal/Return.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlowInfoTraversal/Return.antlrtree.txt @@ -1,5 +1,4 @@ -File: Return.kt - cc3cad434cafec2c83bf01436e431b81 - NL("\n") +File: Return.kt - 7416590a8c667f6b0b2d910f8b8b9a18 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/dataFlowInfoTraversal/Throw.antlrtree.txt b/grammar/testData/diagnostics/dataFlowInfoTraversal/Throw.antlrtree.txt index b3d9d550f..7f8b80e2f 100644 --- a/grammar/testData/diagnostics/dataFlowInfoTraversal/Throw.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlowInfoTraversal/Throw.antlrtree.txt @@ -385,6 +385,4 @@ File: Throw.kt - b762676899fae1dded439a24b51821f3 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataFlowInfoTraversal/TryCatch.antlrtree.txt b/grammar/testData/diagnostics/dataFlowInfoTraversal/TryCatch.antlrtree.txt index f0b0b6f01..b45e23fab 100644 --- a/grammar/testData/diagnostics/dataFlowInfoTraversal/TryCatch.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlowInfoTraversal/TryCatch.antlrtree.txt @@ -1,4 +1,4 @@ -File: TryCatch.kt - c071cd3d35d921b0d787e13fd700773d +File: TryCatch.kt - d683a5e8d42a86aee2a24df6d5affeed packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/dataFlowInfoTraversal/While.antlrtree.txt b/grammar/testData/diagnostics/dataFlowInfoTraversal/While.antlrtree.txt index 14e8791ed..d154928f0 100644 --- a/grammar/testData/diagnostics/dataFlowInfoTraversal/While.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlowInfoTraversal/While.antlrtree.txt @@ -1,4 +1,4 @@ -File: While.kt - 0936a28a62e8cc6d3e38368a4805518f +File: While.kt - 98665aa878614a5f3d796ffa9bfba760 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/dataFlowInfoTraversal/kt5155WhenBranches.antlrtree.txt b/grammar/testData/diagnostics/dataFlowInfoTraversal/kt5155WhenBranches.antlrtree.txt index ae952de9b..9a17683dc 100644 --- a/grammar/testData/diagnostics/dataFlowInfoTraversal/kt5155WhenBranches.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlowInfoTraversal/kt5155WhenBranches.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt5155WhenBranches.kt - a919f84b86c2d1eb25d209a5e3d0b524 +File: kt5155WhenBranches.kt - cb5bb143c96504034224d4623bc5ad61 NL("\n") NL("\n") packageHeader @@ -234,5 +234,5 @@ File: kt5155WhenBranches.kt - a919f84b86c2d1eb25d209a5e3d0b524 literalConstant BooleanLiteral("true") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/dataFlowInfoTraversal/kt5182WhenBranches.antlrtree.txt b/grammar/testData/diagnostics/dataFlowInfoTraversal/kt5182WhenBranches.antlrtree.txt index c54754738..a7f6a967e 100644 --- a/grammar/testData/diagnostics/dataFlowInfoTraversal/kt5182WhenBranches.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlowInfoTraversal/kt5182WhenBranches.antlrtree.txt @@ -257,6 +257,4 @@ File: kt5182WhenBranches.kt - 37a91ba58a905ddf9fb16cc1c84794d6 semi NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dataFlowInfoTraversal/smartcasts/SmartcastsForStableIdentifiers.a.antlrtree.txt b/grammar/testData/diagnostics/dataFlowInfoTraversal/smartcasts/SmartcastsForStableIdentifiers.a.antlrtree.txt index 60852fb51..018cd8e3a 100644 --- a/grammar/testData/diagnostics/dataFlowInfoTraversal/smartcasts/SmartcastsForStableIdentifiers.a.antlrtree.txt +++ b/grammar/testData/diagnostics/dataFlowInfoTraversal/smartcasts/SmartcastsForStableIdentifiers.a.antlrtree.txt @@ -49,6 +49,4 @@ File: SmartcastsForStableIdentifiers.a.kt - bb7f54a6cf0b216780e59b952963e2d2 IntegerLiteral("2") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/ComponentFunctionReturnTypeMismatch.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/ComponentFunctionReturnTypeMismatch.antlrtree.txt index b43592aca..b809bc0e7 100644 --- a/grammar/testData/diagnostics/declarationChecks/ComponentFunctionReturnTypeMismatch.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/ComponentFunctionReturnTypeMismatch.antlrtree.txt @@ -1,4 +1,4 @@ -File: ComponentFunctionReturnTypeMismatch.kt - 13fe3fbefcda87a971f57371c88bb931 +File: ComponentFunctionReturnTypeMismatch.kt - ceb663084deadf761003016b51329dd3 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/declarationChecks/ConflictingAndRedundantProjections.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/ConflictingAndRedundantProjections.antlrtree.txt index f54cda18d..3cc39cb99 100644 --- a/grammar/testData/diagnostics/declarationChecks/ConflictingAndRedundantProjections.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/ConflictingAndRedundantProjections.antlrtree.txt @@ -1,4 +1,5 @@ -File: ConflictingAndRedundantProjections.kt - f63c13cde47d3ef585ce7acff1f6c4b0 +File: ConflictingAndRedundantProjections.kt - 28d3c869f1db33b01aad8b0c86aa4308 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/declarationChecks/DataFlowInMultiDeclInFor.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/DataFlowInMultiDeclInFor.antlrtree.txt index 203db4853..61887e753 100644 --- a/grammar/testData/diagnostics/declarationChecks/DataFlowInMultiDeclInFor.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/DataFlowInMultiDeclInFor.antlrtree.txt @@ -1,4 +1,5 @@ -File: DataFlowInMultiDeclInFor.kt - 18a6c3c4408f7def9543656bace9866d (WITH_ERRORS) +File: DataFlowInMultiDeclInFor.kt - 134247519c2fabd25e8ab83d5b8e8424 (WITH_ERRORS) + NL("\n") NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/declarationChecks/FunctionWithMissingNames.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/FunctionWithMissingNames.antlrtree.txt index d4110c15d..242b49d9a 100644 --- a/grammar/testData/diagnostics/declarationChecks/FunctionWithMissingNames.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/FunctionWithMissingNames.antlrtree.txt @@ -1,4 +1,4 @@ -File: FunctionWithMissingNames.kt - 5511aba2b46c253c8358d568bcea33ce (WITH_ERRORS) +File: FunctionWithMissingNames.kt - 760fee426a41f570a7f4dcfb991b3142 (WITH_ERRORS) packageHeader importList topLevelObject @@ -422,5 +422,5 @@ File: FunctionWithMissingNames.kt - 5511aba2b46c253c8358d568bcea33ce (WITH_ERROR NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/LocalVariableWithNoTypeInformation.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/LocalVariableWithNoTypeInformation.antlrtree.txt index 1acb87e7e..c5ab5f893 100644 --- a/grammar/testData/diagnostics/declarationChecks/LocalVariableWithNoTypeInformation.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/LocalVariableWithNoTypeInformation.antlrtree.txt @@ -1,4 +1,5 @@ -File: LocalVariableWithNoTypeInformation.kt - 803dea80c0225d37a44d465b8d7b02c7 +File: LocalVariableWithNoTypeInformation.kt - 2c268704c40efb1a72358de14f5da3ae + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/declarationChecks/MultiDeclarationErrors.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/MultiDeclarationErrors.antlrtree.txt index 05d0410bc..bb9329ad7 100644 --- a/grammar/testData/diagnostics/declarationChecks/MultiDeclarationErrors.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/MultiDeclarationErrors.antlrtree.txt @@ -1,5 +1,4 @@ -File: MultiDeclarationErrors.kt - b3d73280724c3530b9abb7ddb38b12e4 - NL("\n") +File: MultiDeclarationErrors.kt - bc87dba06a69c21406a02e26a06a8151 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/declarationChecks/VarianceOnFunctionAndPropertyTypeParameters.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/VarianceOnFunctionAndPropertyTypeParameters.antlrtree.txt index e89d1fdc4..10762e629 100644 --- a/grammar/testData/diagnostics/declarationChecks/VarianceOnFunctionAndPropertyTypeParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/VarianceOnFunctionAndPropertyTypeParameters.antlrtree.txt @@ -1,4 +1,5 @@ -File: VarianceOnFunctionAndPropertyTypeParameters.kt - 122180d34972768fe8bdbb326872e62a +File: VarianceOnFunctionAndPropertyTypeParameters.kt - b130b6af3587aa801295c7b2150fdeec + NL("\n") packageHeader importList topLevelObject @@ -216,5 +217,5 @@ File: VarianceOnFunctionAndPropertyTypeParameters.kt - 122180d34972768fe8bdbb326 literalConstant IntegerLiteral("1") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/ambiguousObjectExpressionType.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/ambiguousObjectExpressionType.antlrtree.txt index a6b952266..d986c4e93 100644 --- a/grammar/testData/diagnostics/declarationChecks/ambiguousObjectExpressionType.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/ambiguousObjectExpressionType.antlrtree.txt @@ -1,6 +1,166 @@ -File: ambiguousObjectExpressionType.kt - ba173c8a4a225593d38849ab5e9cb191 +File: ambiguousObjectExpressionType.kt - 340124037c0f7d0024d11679bb8019e2 packageHeader importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Lazy") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("lazy") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Lazy") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + THROW("throw") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Exception") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") topLevelObject declaration classDeclaration @@ -72,6 +232,21 @@ File: ambiguousObjectExpressionType.kt - ba173c8a4a225593d38849ab5e9cb191 CLASS("class") simpleIdentifier Identifier("Foo") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("myTrait") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyTrait") + RPAREN(")") classBody LCURL("{") NL("\n") @@ -131,6 +306,130 @@ File: ambiguousObjectExpressionType.kt - ba173c8a4a225593d38849ab5e9cb191 classMemberDeclarations RCURL("}") NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("publicPropertyWithSingleSuperType") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("MyClass") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("onlyFromAnonymousObject") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("privatePropertyWithSingleSuperType") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("MyClass") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("onlyFromAnonymousObject") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") NL("\n") classMemberDeclaration anonymousInitializer @@ -203,6 +502,70 @@ File: ambiguousObjectExpressionType.kt - ba173c8a4a225593d38849ab5e9cb191 RPAREN(")") semis NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("publicPropertyWithSingleSuperType") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("onlyFromAnonymousObject") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("privatePropertyWithSingleSuperType") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("onlyFromAnonymousObject") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") RCURL("}") semis NL("\n") @@ -481,7 +844,1043 @@ File: ambiguousObjectExpressionType.kt - ba173c8a4a225593d38849ab5e9cb191 semis NL("\n") NL("\n") - NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("privateDelegateProperty") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("MyClass") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("MyTrait") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("publicDelegatePropertyWithSingleSuperType") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("MyClass") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("onlyFromAnonymousObject") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("privateDelegatePropertyWithSingleSuperType") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("MyClass") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("onlyFromAnonymousObject") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("privateDelegateProperty") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("privateDelegateProperty") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("publicDelegatePropertyWithSingleSuperType") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("onlyFromAnonymousObject") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("privateDelegatePropertyWithSingleSuperType") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("onlyFromAnonymousObject") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("protectedDelegateProperty") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("MyClass") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("MyTrait") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("internalDelegateProperty") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("MyClass") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("MyTrait") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("internal2DelegateProperty") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("MyClass") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("MyTrait") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("publicDelegateProperty") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("MyClass") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("MyTrait") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("privateDelegate") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("MyTrait") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myTrait") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + DELEGATE("delegate") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("MyTrait") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myTrait") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + simpleIdentifier + INIT("init") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("privateDelegate") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("privateDelegate") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + DELEGATE("delegate") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + DELEGATE("delegate") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") classMemberDeclaration declaration functionDeclaration diff --git a/grammar/testData/diagnostics/declarationChecks/anonymousFunAsLastExpressionInBlock.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/anonymousFunAsLastExpressionInBlock.antlrtree.txt index 4fe28eb32..f6076d43b 100644 --- a/grammar/testData/diagnostics/declarationChecks/anonymousFunAsLastExpressionInBlock.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/anonymousFunAsLastExpressionInBlock.antlrtree.txt @@ -1,4 +1,5 @@ -File: anonymousFunAsLastExpressionInBlock.kt - 4746ffd2494c5295da51ed6c68c01ff2 +File: anonymousFunAsLastExpressionInBlock.kt - 85529ca970692a392f8114531024077b + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/declarationChecks/anonymousFunUnusedLastExpressionInBlock.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/anonymousFunUnusedLastExpressionInBlock.antlrtree.txt index 87c3c089e..e727721ee 100644 --- a/grammar/testData/diagnostics/declarationChecks/anonymousFunUnusedLastExpressionInBlock.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/anonymousFunUnusedLastExpressionInBlock.antlrtree.txt @@ -1,4 +1,6 @@ -File: anonymousFunUnusedLastExpressionInBlock.kt - 3789e1b809c69d378343e4df0ba1781c +File: anonymousFunUnusedLastExpressionInBlock.kt - e84b23d138871d2673bfdcad6bdbbdaa + NL("\n") + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/DoubleDeclForLoop.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/DoubleDeclForLoop.antlrtree.txt index 1c317adeb..bf93d8cf6 100644 --- a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/DoubleDeclForLoop.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/DoubleDeclForLoop.antlrtree.txt @@ -1,4 +1,5 @@ -File: DoubleDeclForLoop.kt - c4cb496677a2b2fb8dce939b72862c05 +File: DoubleDeclForLoop.kt - cba881f9c045ffec3c504f04a648a4b6 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/FolLoopTypeComponentTypeMismatch.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/FolLoopTypeComponentTypeMismatch.antlrtree.txt index d04916e54..6cad2b74b 100644 --- a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/FolLoopTypeComponentTypeMismatch.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/FolLoopTypeComponentTypeMismatch.antlrtree.txt @@ -1,4 +1,4 @@ -File: FolLoopTypeComponentTypeMismatch.kt - b966c27603fc10f164b8f50a9122ff64 +File: FolLoopTypeComponentTypeMismatch.kt - 9da0a456bd0d3e5862185ebcabeac97f NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForLoopComponentFunctionAmbiguity.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForLoopComponentFunctionAmbiguity.antlrtree.txt index 60f2efcce..ab0fe1eff 100644 --- a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForLoopComponentFunctionAmbiguity.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForLoopComponentFunctionAmbiguity.antlrtree.txt @@ -1,4 +1,5 @@ -File: ForLoopComponentFunctionAmbiguity.kt - ec889a038ba40ae2f2a45da967d4f314 +File: ForLoopComponentFunctionAmbiguity.kt - 3663c4e763772baad22cb59b89655924 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForLoopComponentFunctionMissing.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForLoopComponentFunctionMissing.antlrtree.txt index 7db638529..957db60f1 100644 --- a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForLoopComponentFunctionMissing.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForLoopComponentFunctionMissing.antlrtree.txt @@ -1,4 +1,5 @@ -File: ForLoopComponentFunctionMissing.kt - 9a9b87456b1963c0484bf3db2c37817c +File: ForLoopComponentFunctionMissing.kt - e0933719d6109ddce67eb802351cc2fc + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.antlrtree.txt index 3877c618b..aca074f19 100644 --- a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.antlrtree.txt @@ -1,5 +1,4 @@ -File: ForLoopMissingLoopParameter.kt - 701b43bfc76becd9562b4d4c6a0d0c77 (WITH_ERRORS) - NL("\n") +File: ForLoopMissingLoopParameter.kt - 82f4eaeb280d2d85fa2919195cff9484 (WITH_ERRORS) packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForLoopWithExtensions.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForLoopWithExtensions.antlrtree.txt index eb3aa1b46..e8de4b081 100644 --- a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForLoopWithExtensions.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForLoopWithExtensions.antlrtree.txt @@ -1,4 +1,5 @@ -File: ForLoopWithExtensions.kt - 1f87bbb0528e2394ad969ff487d4c9a2 +File: ForLoopWithExtensions.kt - 1e077f70484bac814c0cf3c905a17dac + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForWithExplicitTypes.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForWithExplicitTypes.antlrtree.txt index d451be556..301a18a32 100644 --- a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForWithExplicitTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/ForWithExplicitTypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: ForWithExplicitTypes.kt - e71942e9301d6fa40e544d5382873baf +File: ForWithExplicitTypes.kt - 11cd07a810a440a4cc0e0ac185aa6feb + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/SingleDeclForLoop.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/SingleDeclForLoop.antlrtree.txt index 48ea8bda4..1668fd817 100644 --- a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/SingleDeclForLoop.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/SingleDeclForLoop.antlrtree.txt @@ -1,4 +1,5 @@ -File: SingleDeclForLoop.kt - 0c9979271562b7598a7a805a64cc7d01 +File: SingleDeclForLoop.kt - 88c138261f259edb83f0c26360ec1538 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/kt2829.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/kt2829.antlrtree.txt index 56c9ccc36..490b2316d 100644 --- a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/kt2829.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/kt2829.antlrtree.txt @@ -415,6 +415,4 @@ File: kt2829.kt - f0a771f590a44fecd508da928ddb0820 primaryExpression simpleIdentifier Identifier("a") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/lastDestructuringDeclarationInBlock.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/lastDestructuringDeclarationInBlock.antlrtree.txt index 9a6283c96..044da50bd 100644 --- a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/lastDestructuringDeclarationInBlock.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/lastDestructuringDeclarationInBlock.antlrtree.txt @@ -480,6 +480,4 @@ File: lastDestructuringDeclarationInBlock.kt - 76e95bf0848a3837e1aa0d7d2d2afc97 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/underscore.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/underscore.antlrtree.txt index f40b08105..c3e3328e7 100644 --- a/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/underscore.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/destructuringDeclarations/underscore.antlrtree.txt @@ -1,5 +1,4 @@ -File: underscore.kt - eef1db15c7fe4f16bc3419107ddbeb12 - NL("\n") +File: underscore.kt - d2d9d96c400600dbfd818c40d758bb88 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/declarationChecks/finiteBoundRestriction/CasesWithOneTypeParameter.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/finiteBoundRestriction/CasesWithOneTypeParameter.antlrtree.txt index 33b20d8d5..6797e9216 100644 --- a/grammar/testData/diagnostics/declarationChecks/finiteBoundRestriction/CasesWithOneTypeParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/finiteBoundRestriction/CasesWithOneTypeParameter.antlrtree.txt @@ -1,4 +1,4 @@ -File: CasesWithOneTypeParameter.kt - 1713eaea2293329bb53462f7ec8aeec0 +File: CasesWithOneTypeParameter.kt - 17bf8197ae221a0eda1d8081a58baab2 packageHeader importList topLevelObject @@ -93,7 +93,40 @@ File: CasesWithOneTypeParameter.kt - 1713eaea2293329bb53462f7ec8aeec0 RANGLE(">") semis NL("\n") - NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A3") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A3") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + semis NL("\n") topLevelObject declaration @@ -361,5 +394,5 @@ File: CasesWithOneTypeParameter.kt - 1713eaea2293329bb53462f7ec8aeec0 RANGLE(">") RANGLE(">") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/finiteBoundRestriction/CasesWithTwoTypeParameters.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/finiteBoundRestriction/CasesWithTwoTypeParameters.antlrtree.txt index 5685ecd97..3e1e8057a 100644 --- a/grammar/testData/diagnostics/declarationChecks/finiteBoundRestriction/CasesWithTwoTypeParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/finiteBoundRestriction/CasesWithTwoTypeParameters.antlrtree.txt @@ -435,6 +435,4 @@ File: CasesWithTwoTypeParameters.kt - 2431a3851eebd0552708bc211f917967 Identifier("T") RANGLE(">") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/finiteBoundRestriction/JavaSuperType.1.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/finiteBoundRestriction/JavaSuperType.1.antlrtree.txt index d0291e4ef..a886f9ac2 100644 --- a/grammar/testData/diagnostics/declarationChecks/finiteBoundRestriction/JavaSuperType.1.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/finiteBoundRestriction/JavaSuperType.1.antlrtree.txt @@ -25,6 +25,4 @@ File: JavaSuperType.1.kt - 65b1a75d9879845dfa7f068c563cb174 MULT("*") RANGLE(">") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/illegalModifiersOnClass.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/illegalModifiersOnClass.antlrtree.txt index 4aceb9df9..e7c5e5d24 100644 --- a/grammar/testData/diagnostics/declarationChecks/illegalModifiersOnClass.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/illegalModifiersOnClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: illegalModifiersOnClass.kt - 32f8fbead97b318aabef4bca8372fff0 +File: illegalModifiersOnClass.kt - 8b52f8c7439579f112641882739eb64d + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/declarationChecks/kt1141.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/kt1141.antlrtree.txt index 4a6f4d47d..34945ee0b 100644 --- a/grammar/testData/diagnostics/declarationChecks/kt1141.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/kt1141.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt1141.kt - 119ba3156485574c027c9a73011acdd8 +File: kt1141.kt - fcb6c9ad447b58426869e34f8bd54bf0 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/declarationChecks/kt1193.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/kt1193.antlrtree.txt index 6c555ffad..681e3d673 100644 --- a/grammar/testData/diagnostics/declarationChecks/kt1193.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/kt1193.antlrtree.txt @@ -160,6 +160,4 @@ File: kt1193.kt - 2563b3478cd77e064aa331039c7a66da DOT(".") simpleIdentifier Identifier("A") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/kt2096.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/kt2096.antlrtree.txt index 07c1fdf36..48a8901d0 100644 --- a/grammar/testData/diagnostics/declarationChecks/kt2096.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/kt2096.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2096.kt - 863b208d00b945e7a80ccfc3b5d84ef2 +File: kt2096.kt - b5a6ff4afc7ce7ee9dcad2c3da74bb07 + NL("\n") NL("\n") NL("\n") packageHeader @@ -40,6 +41,4 @@ File: kt2096.kt - 863b208d00b945e7a80ccfc3b5d84ef2 Identifier("prop") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/kt2142.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/kt2142.antlrtree.txt index 52914d219..49546c2f0 100644 --- a/grammar/testData/diagnostics/declarationChecks/kt2142.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/kt2142.antlrtree.txt @@ -68,6 +68,4 @@ File: kt2142.kt - f4a397f606db2004a8ce39f96c3faf04 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/kt2397.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/kt2397.antlrtree.txt index 9144bca6f..8c71d6fe3 100644 --- a/grammar/testData/diagnostics/declarationChecks/kt2397.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/kt2397.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2397.kt - 62865300ab35a22e3d83ef6448b4d44b +File: kt2397.kt - 97fb27b095f79d70bd7c7e4b13633e09 + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -181,6 +182,4 @@ File: kt2397.kt - 62865300ab35a22e3d83ef6448b4d44b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/kt559.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/kt559.antlrtree.txt index ed55201c3..10c77c44b 100644 --- a/grammar/testData/diagnostics/declarationChecks/kt559.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/kt559.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt559.kt - 9341361e554eba913e19e74b47dd37f0 +File: kt559.kt - 6db82658c61e159964f70f126bb9d7a1 + NL("\n") NL("\n") NL("\n") packageHeader @@ -398,6 +399,4 @@ File: kt559.kt - 9341361e554eba913e19e74b47dd37f0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/localDeclarationModifiers.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/localDeclarationModifiers.antlrtree.txt index 84d293042..95cfed497 100644 --- a/grammar/testData/diagnostics/declarationChecks/localDeclarationModifiers.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/localDeclarationModifiers.antlrtree.txt @@ -1,4 +1,4 @@ -File: localDeclarationModifiers.kt - 49cd9212a39e693f947d4b0e93f6c217 +File: localDeclarationModifiers.kt - ca7643a83436dea6eabb56625ca76732 packageHeader PACKAGE("package") identifier @@ -191,5 +191,5 @@ File: localDeclarationModifiers.kt - 49cd9212a39e693f947d4b0e93f6c217 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/localObjectInInnerClass.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/localObjectInInnerClass.antlrtree.txt new file mode 100644 index 000000000..38bbfaa52 --- /dev/null +++ b/grammar/testData/diagnostics/declarationChecks/localObjectInInnerClass.antlrtree.txt @@ -0,0 +1,689 @@ +File: localObjectInInnerClass.kt - a86b69d093ac3ee8f67843d0f7b1a514 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I2") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Lazy") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("lazy") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Lazy") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + THROW("throw") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Exception") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("o1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I1") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("o2") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I1") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("o3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I1") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I2") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("o4") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I1") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I2") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("privateO1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I1") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("privateO2") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I1") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("privateO3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I1") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I2") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("privateO4") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I1") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I2") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/localVariablesWithTypeParameters_1_3.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/localVariablesWithTypeParameters_1_3.antlrtree.txt index efb2a2320..0d6888d2e 100644 --- a/grammar/testData/diagnostics/declarationChecks/localVariablesWithTypeParameters_1_3.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/localVariablesWithTypeParameters_1_3.antlrtree.txt @@ -1,5 +1,4 @@ -File: localVariablesWithTypeParameters_1_3.kt - 763ac7f572319210caf94855ccbd10e9 - NL("\n") +File: localVariablesWithTypeParameters_1_3.kt - c044f7c5e48ef3e27a34fe0cd179a64a NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/declarationChecks/localVariablesWithTypeParameters_1_4.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/localVariablesWithTypeParameters_1_4.antlrtree.txt index c3f01e00d..109e58fcd 100644 --- a/grammar/testData/diagnostics/declarationChecks/localVariablesWithTypeParameters_1_4.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/localVariablesWithTypeParameters_1_4.antlrtree.txt @@ -1,5 +1,4 @@ -File: localVariablesWithTypeParameters_1_4.kt - 854454a2eafea5ef548dfd4f390f02e6 - NL("\n") +File: localVariablesWithTypeParameters_1_4.kt - c46febcbe9e173d6474d02e51a5d96c5 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/declarationChecks/mappedFunctionNotImplemented.CharSeq.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/mappedFunctionNotImplemented.CharSeq.antlrtree.txt new file mode 100644 index 000000000..b7f50f5e0 --- /dev/null +++ b/grammar/testData/diagnostics/declarationChecks/mappedFunctionNotImplemented.CharSeq.antlrtree.txt @@ -0,0 +1,22 @@ +File: mappedFunctionNotImplemented.CharSeq.kt - 8b582e21b2d9ec2e20061b01e347b67a + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("KtCharSeq") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("MyCharSequence") + valueArguments + LPAREN("(") + RPAREN(")") + EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/nameWithDangerousCharacters.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/nameWithDangerousCharacters.antlrtree.txt index a0010c9a2..fa933a6ac 100644 --- a/grammar/testData/diagnostics/declarationChecks/nameWithDangerousCharacters.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/nameWithDangerousCharacters.antlrtree.txt @@ -1,4 +1,5 @@ -File: nameWithDangerousCharacters.kt - 286b166e4c98d1d2f443ba95bf92361b +File: nameWithDangerousCharacters.kt - db3e66d15d0b0df587f0889bd7ef2c9e + NL("\n") packageHeader importList topLevelObject @@ -165,6 +166,4 @@ File: nameWithDangerousCharacters.kt - 286b166e4c98d1d2f443ba95bf92361b LineStrText("c") QUOTE_CLOSE(""") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/namedFunAsLastExpressionInBlock.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/namedFunAsLastExpressionInBlock.antlrtree.txt index e555c01f5..9399c5b01 100644 --- a/grammar/testData/diagnostics/declarationChecks/namedFunAsLastExpressionInBlock.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/namedFunAsLastExpressionInBlock.antlrtree.txt @@ -1,5 +1,4 @@ -File: namedFunAsLastExpressionInBlock.kt - db416192d7fbbfe766981e775d722cda (WITH_ERRORS) - NL("\n") +File: namedFunAsLastExpressionInBlock.kt - a20c8125123a1bbe2064073c7ab5a1f8 (WITH_ERRORS) NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/declarationChecks/nonExpansiveInheritanceRestriction/PureKotlin.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/nonExpansiveInheritanceRestriction/PureKotlin.antlrtree.txt index 324dae285..f6ad5da16 100644 --- a/grammar/testData/diagnostics/declarationChecks/nonExpansiveInheritanceRestriction/PureKotlin.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/nonExpansiveInheritanceRestriction/PureKotlin.antlrtree.txt @@ -719,6 +719,4 @@ File: PureKotlin.kt - 672e042fecf4d746c0b310b9480e311e Identifier("T") RANGLE(">") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/packageDeclarationModifiers.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/packageDeclarationModifiers.antlrtree.txt index 703dd38a3..e1b0f366e 100644 --- a/grammar/testData/diagnostics/declarationChecks/packageDeclarationModifiers.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/packageDeclarationModifiers.antlrtree.txt @@ -1,4 +1,5 @@ -File: packageDeclarationModifiers.kt - 7bc83ba43c63e2d48367db3cda4d2e22 +File: packageDeclarationModifiers.kt - ad656fa09fb1e3b543adb91ed46fd8f1 + NL("\n") packageHeader PACKAGE("package") identifier @@ -210,6 +211,4 @@ File: packageDeclarationModifiers.kt - 7bc83ba43c63e2d48367db3cda4d2e22 primaryExpression literalConstant IntegerLiteral("2") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/propertyInPackageHasNoInheritVisibility.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/propertyInPackageHasNoInheritVisibility.antlrtree.txt index ae9a9bee4..2d77c87af 100644 --- a/grammar/testData/diagnostics/declarationChecks/propertyInPackageHasNoInheritVisibility.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/propertyInPackageHasNoInheritVisibility.antlrtree.txt @@ -1,4 +1,5 @@ -File: propertyInPackageHasNoInheritVisibility.kt - a4cb6184fc7d3856198402a80230c8ed +File: propertyInPackageHasNoInheritVisibility.kt - abc3f6a76a449cb878517291984492f9 + NL("\n") packageHeader PACKAGE("package") identifier @@ -178,5 +179,5 @@ File: propertyInPackageHasNoInheritVisibility.kt - a4cb6184fc7d3856198402a80230c statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/sealedOnMembers.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/sealedOnMembers.antlrtree.txt index b9a24c723..ed566d76d 100644 --- a/grammar/testData/diagnostics/declarationChecks/sealedOnMembers.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/sealedOnMembers.antlrtree.txt @@ -1,4 +1,5 @@ -File: sealedOnMembers.kt - 0f910b8f6ed3bf538cd9f3cd2dbf72c5 +File: sealedOnMembers.kt - 8e481c602172b6becd73e577ff75e1e6 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/declarationChecks/unambiguousObjectExpressionType.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/unambiguousObjectExpressionType.antlrtree.txt index e9758784a..e9bbaa404 100644 --- a/grammar/testData/diagnostics/declarationChecks/unambiguousObjectExpressionType.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/unambiguousObjectExpressionType.antlrtree.txt @@ -1,4 +1,5 @@ -File: unambiguousObjectExpressionType.kt - aced5b967fef21008b4fd7feacc109c9 +File: unambiguousObjectExpressionType.kt - 626f728799af0a91f771ccca491b3bd2 + NL("\n") packageHeader importList topLevelObject @@ -4237,6 +4238,4 @@ File: unambiguousObjectExpressionType.kt - aced5b967fef21008b4fd7feacc109c9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/declarationChecks/valVarFunctionParameter.antlrtree.txt b/grammar/testData/diagnostics/declarationChecks/valVarFunctionParameter.antlrtree.txt index 8a5d03639..f7826b519 100644 --- a/grammar/testData/diagnostics/declarationChecks/valVarFunctionParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/declarationChecks/valVarFunctionParameter.antlrtree.txt @@ -1,4 +1,5 @@ -File: valVarFunctionParameter.kt - 6feb3ed94b7b37bf75942b2b284d9b33 (WITH_ERRORS) +File: valVarFunctionParameter.kt - d04a2ed8c2e4f7a229909cebd93204c4 (WITH_ERRORS) + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/defaultArguments/kt5232.antlrtree.txt b/grammar/testData/diagnostics/defaultArguments/kt5232.antlrtree.txt index b1fc67383..91f458e5e 100644 --- a/grammar/testData/diagnostics/defaultArguments/kt5232.antlrtree.txt +++ b/grammar/testData/diagnostics/defaultArguments/kt5232.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt5232.kt - 0e728fb47259483838617f751224a416 +File: kt5232.kt - c0eb35df826883a92582033283da7186 + NL("\n") packageHeader importList topLevelObject @@ -285,6 +286,4 @@ File: kt5232.kt - 0e728fb47259483838617f751224a416 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/defaultArguments/superCall.antlrtree.txt b/grammar/testData/diagnostics/defaultArguments/superCall.antlrtree.txt index a78d4640e..8dc61da3a 100644 --- a/grammar/testData/diagnostics/defaultArguments/superCall.antlrtree.txt +++ b/grammar/testData/diagnostics/defaultArguments/superCall.antlrtree.txt @@ -1,4 +1,5 @@ -File: superCall.kt - 94b196224ba1bfa9a9b6e194ffd8d4a5 +File: superCall.kt - f2b0fb51253cb6627c529c012d8bcde9 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/disallowImplInTypeParameter.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/disallowImplInTypeParameter.antlrtree.txt index f6e2ff269..88ed82f0e 100644 --- a/grammar/testData/diagnostics/delegatedProperty/disallowImplInTypeParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/disallowImplInTypeParameter.antlrtree.txt @@ -1,4 +1,5 @@ -File: disallowImplInTypeParameter.kt - 8ff5c808f3e4d8f1db841ee8073116eb +File: disallowImplInTypeParameter.kt - 87d698ba8b6cd63823033a5769d1ab93 + NL("\n") packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/incompleteTypeInference.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/incompleteTypeInference.antlrtree.txt index 4ebdb18e4..283fb6280 100644 --- a/grammar/testData/diagnostics/delegatedProperty/incompleteTypeInference.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/incompleteTypeInference.antlrtree.txt @@ -1,4 +1,5 @@ -File: incompleteTypeInference.kt - 328b536c15d5f104cd6a0a6c7d7431c1 +File: incompleteTypeInference.kt - e3874de0516ae9544d2530531114f6b7 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/callableReferenceArgumentInDelegatedExpression.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/callableReferenceArgumentInDelegatedExpression.antlrtree.txt index 67ef50ff0..e3d5f1bfb 100644 --- a/grammar/testData/diagnostics/delegatedProperty/inference/callableReferenceArgumentInDelegatedExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/inference/callableReferenceArgumentInDelegatedExpression.antlrtree.txt @@ -435,6 +435,4 @@ File: callableReferenceArgumentInDelegatedExpression.kt - 995d900cdc961a761d1841 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/delegateExpressionAsLambda.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/delegateExpressionAsLambda.antlrtree.txt index fbbe0a314..5f3b5558a 100644 --- a/grammar/testData/diagnostics/delegatedProperty/inference/delegateExpressionAsLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/inference/delegateExpressionAsLambda.antlrtree.txt @@ -592,6 +592,4 @@ File: delegateExpressionAsLambda.kt - a5765bf70ab45a43884ee16b10480f68 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/differentDelegatedExpressions.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/differentDelegatedExpressions.antlrtree.txt index 1271e37b5..768f5f996 100644 --- a/grammar/testData/diagnostics/delegatedProperty/inference/differentDelegatedExpressions.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/inference/differentDelegatedExpressions.antlrtree.txt @@ -1,5 +1,4 @@ -File: differentDelegatedExpressions.kt - 044e0aadcfd0bfd9e5135632d7521391 - NL("\n") +File: differentDelegatedExpressions.kt - e512b34e2dba799b1d30d45548a418ad packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/extensionProperty.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/extensionProperty.antlrtree.txt index 06f19764e..52fe70784 100644 --- a/grammar/testData/diagnostics/delegatedProperty/inference/extensionProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/inference/extensionProperty.antlrtree.txt @@ -1,5 +1,4 @@ -File: extensionProperty.kt - 58e002797c819be0a1931c780089191c - NL("\n") +File: extensionProperty.kt - 8589adfcaa9a3ce5420e4895922c5fb7 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/genericMethodInGenericClass.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/genericMethodInGenericClass.antlrtree.txt index e087d6315..d9ae0be85 100644 --- a/grammar/testData/diagnostics/delegatedProperty/inference/genericMethodInGenericClass.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/inference/genericMethodInGenericClass.antlrtree.txt @@ -1,5 +1,4 @@ -File: genericMethodInGenericClass.kt - 7dd0f2b40a552e68a8c623077b37be1b - NL("\n") +File: genericMethodInGenericClass.kt - 285aed566b7e4b80ea20f16f996d8471 NL("\n") NL("\n") packageHeader @@ -857,6 +856,4 @@ File: genericMethodInGenericClass.kt - 7dd0f2b40a552e68a8c623077b37be1b LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/genericMethods.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/genericMethods.antlrtree.txt index c43de0335..cc5810fab 100644 --- a/grammar/testData/diagnostics/delegatedProperty/inference/genericMethods.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/inference/genericMethods.antlrtree.txt @@ -1,5 +1,4 @@ -File: genericMethods.kt - 3bbdfe1a0be9e901ea1a2781872d1e8f - NL("\n") +File: genericMethods.kt - 51fbdbf8b29e57cac77d1c53347e4918 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/manyIncompleteCandidates.main.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/manyIncompleteCandidates.main.antlrtree.txt index 55b24962b..22fc2d1a7 100644 --- a/grammar/testData/diagnostics/delegatedProperty/inference/manyIncompleteCandidates.main.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/inference/manyIncompleteCandidates.main.antlrtree.txt @@ -61,6 +61,4 @@ File: manyIncompleteCandidates.main.kt - efa451aeed02ddcfa60e42a1f6b46677 RPAREN(")") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/noErrorsForImplicitConstraints.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/noErrorsForImplicitConstraints.antlrtree.txt index 72f7caef0..90247f052 100644 --- a/grammar/testData/diagnostics/delegatedProperty/inference/noErrorsForImplicitConstraints.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/inference/noErrorsForImplicitConstraints.antlrtree.txt @@ -1,5 +1,4 @@ -File: noErrorsForImplicitConstraints.kt - 15e0abbc607a80c8ed36bdf829b1365c - NL("\n") +File: noErrorsForImplicitConstraints.kt - 6b32db21c9b1afbaf5786544f16641ff packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.antlrtree.txt index 731361bea..cb7ef7a02 100644 --- a/grammar/testData/diagnostics/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.antlrtree.txt @@ -1,5 +1,4 @@ -File: noExpectedTypeForSupertypeConstraint.kt - ba3e54d0bc212affbf5eab414792f1a0 - NL("\n") +File: noExpectedTypeForSupertypeConstraint.kt - a178050bb5795bfb6bbfe6499e045012 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/resultTypeOfLambdaForConventionMethods.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/resultTypeOfLambdaForConventionMethods.antlrtree.txt index 5c7ce15c6..5a53832b2 100644 --- a/grammar/testData/diagnostics/delegatedProperty/inference/resultTypeOfLambdaForConventionMethods.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/inference/resultTypeOfLambdaForConventionMethods.antlrtree.txt @@ -578,6 +578,4 @@ File: resultTypeOfLambdaForConventionMethods.kt - ac60110459f6e219ebfb9727c743e4 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/inference/typeOfLazyDelegatedPropertyWithObject.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/inference/typeOfLazyDelegatedPropertyWithObject.antlrtree.txt index e52bccfa8..463c9f934 100644 --- a/grammar/testData/diagnostics/delegatedProperty/inference/typeOfLazyDelegatedPropertyWithObject.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/inference/typeOfLazyDelegatedPropertyWithObject.antlrtree.txt @@ -538,6 +538,4 @@ File: typeOfLazyDelegatedPropertyWithObject.kt - f6cc9a8c57642fb015f888f4ad84d08 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/kt4640.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/kt4640.antlrtree.txt index e2b8ad9a0..482688c76 100644 --- a/grammar/testData/diagnostics/delegatedProperty/kt4640.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/kt4640.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt4640.kt - ca25a2919db6bf557a2fb0fa4fe25b34 +File: kt4640.kt - 4fc008bdf02c76fcd54193a0e34286c4 + NL("\n") NL("\n") NL("\n") packageHeader @@ -172,6 +173,4 @@ File: kt4640.kt - ca25a2919db6bf557a2fb0fa4fe25b34 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/kt48546.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/kt48546.antlrtree.txt new file mode 100644 index 000000000..4246803d8 --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/kt48546.antlrtree.txt @@ -0,0 +1,283 @@ +File: kt48546.kt - b90fcf56700409966ac7910ac8bca9fc + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("DelegateTest") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("result") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("result") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hello") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("DelegateTest2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("result") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("result") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hello") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/kt48546Strict.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/kt48546Strict.antlrtree.txt new file mode 100644 index 000000000..09a8def3c --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/kt48546Strict.antlrtree.txt @@ -0,0 +1,284 @@ +File: kt48546Strict.kt - a7a853fef944a472ac525d5e5072e45c + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("DelegateTest") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("result") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("result") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hello") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("DelegateTest2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("result") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("result") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hello") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/localVariable.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/localVariable.antlrtree.txt index d02c79d49..623cdf0f8 100644 --- a/grammar/testData/diagnostics/delegatedProperty/localVariable.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/localVariable.antlrtree.txt @@ -198,6 +198,4 @@ File: localVariable.kt - b8ea8372814631b8f8491abe85afa3f2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/nonDefaultAccessors.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/nonDefaultAccessors.antlrtree.txt index b8752e813..3b95599cd 100644 --- a/grammar/testData/diagnostics/delegatedProperty/nonDefaultAccessors.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/nonDefaultAccessors.antlrtree.txt @@ -1,4 +1,5 @@ -File: nonDefaultAccessors.kt - c1085854ccb734998e8b3ac9d1f8c9fb +File: nonDefaultAccessors.kt - 5cf2cf9441f75d57b51fa487b87638c2 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/propertyDefferedType.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/propertyDefferedType.antlrtree.txt index bc47ff86c..a606e9eca 100644 --- a/grammar/testData/diagnostics/delegatedProperty/propertyDefferedType.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/propertyDefferedType.antlrtree.txt @@ -1,5 +1,4 @@ -File: propertyDefferedType.kt - bb89a8bcffff77131547bc0e947ea750 - NL("\n") +File: propertyDefferedType.kt - 503f36bdf7b8de88478ea823e95c72a5 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/commonCaseForInference.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/commonCaseForInference.antlrtree.txt index de56b35bb..1fad17cf5 100644 --- a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/commonCaseForInference.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/commonCaseForInference.antlrtree.txt @@ -1,5 +1,4 @@ -File: commonCaseForInference.kt - 46964e8d417a7fb9edba4428284ffa10 - NL("\n") +File: commonCaseForInference.kt - 4032d94a5543dad2833d61ed10ad8abb NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/genericProvideDelegate.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/genericProvideDelegate.antlrtree.txt index e18c380e6..77c380d17 100644 --- a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/genericProvideDelegate.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/genericProvideDelegate.antlrtree.txt @@ -411,6 +411,4 @@ File: genericProvideDelegate.kt - 2a487d8cb69dd7c3e7f0c765b3fcc470 lineStringContent LineStrText("OK") QUOTE_CLOSE(""") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/hostAndReceiver1.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/hostAndReceiver1.antlrtree.txt index 1848ca848..824e31825 100644 --- a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/hostAndReceiver1.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/hostAndReceiver1.antlrtree.txt @@ -1,4 +1,5 @@ -File: hostAndReceiver1.kt - 85222f9f1b296fcc4b20f0a7e33410a0 +File: hostAndReceiver1.kt - b0874a49f3447c33b02e69b574780274 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/hostAndReceiver2.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/hostAndReceiver2.antlrtree.txt index 27f65b921..cc2b05312 100644 --- a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/hostAndReceiver2.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/hostAndReceiver2.antlrtree.txt @@ -1,5 +1,4 @@ -File: hostAndReceiver2.kt - 90ab305556e8581f429c69534e2019fd - NL("\n") +File: hostAndReceiver2.kt - 2c2f6fa849cca996c42acdfa6bfa5275 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/inferenceFromReceiver1.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/inferenceFromReceiver1.antlrtree.txt index f8df31906..edf4d1f90 100644 --- a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/inferenceFromReceiver1.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/inferenceFromReceiver1.antlrtree.txt @@ -1,4 +1,4 @@ -File: inferenceFromReceiver1.kt - 0076f25779e755dd9417d1e1567ccf47 +File: inferenceFromReceiver1.kt - 5a6b23e2f06497a4295928ff09700815 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/inferenceFromReceiver2.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/inferenceFromReceiver2.antlrtree.txt index fff842814..d1e67843c 100644 --- a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/inferenceFromReceiver2.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/inferenceFromReceiver2.antlrtree.txt @@ -1,5 +1,4 @@ -File: inferenceFromReceiver2.kt - c9bf4fee94f7017b26782c858901e554 - NL("\n") +File: inferenceFromReceiver2.kt - 437155e789a1c903331d73287c220835 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/kt38714.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/kt38714.antlrtree.txt index fb62fe0ac..6b457d55d 100644 --- a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/kt38714.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/kt38714.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt38714.kt - c677042265cccbf37f5734b6248c76bb +File: kt38714.kt - 7aeeaf665b27b43e2f95c05c96b7906e NL("\n") NL("\n") NL("\n") @@ -459,6 +459,4 @@ File: kt38714.kt - c677042265cccbf37f5734b6248c76bb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/localDelegatedProperty.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/localDelegatedProperty.antlrtree.txt index 8e82c1a0f..8e28aa9c7 100644 --- a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/localDelegatedProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/localDelegatedProperty.antlrtree.txt @@ -259,6 +259,4 @@ File: localDelegatedProperty.kt - 81fd540687af8ec7aef0fa2b8d58c890 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/noOperatorModifierOnProvideDelegate.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/noOperatorModifierOnProvideDelegate.antlrtree.txt index c2a258b46..341a32588 100644 --- a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/noOperatorModifierOnProvideDelegate.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/noOperatorModifierOnProvideDelegate.antlrtree.txt @@ -1,5 +1,4 @@ -File: noOperatorModifierOnProvideDelegate.kt - e1d90b07d1282181233b81c866be7a3f - NL("\n") +File: noOperatorModifierOnProvideDelegate.kt - 6171fb08a45eeb8bff148a46bb11cdee NL("\n") NL("\n") packageHeader @@ -399,7 +398,4 @@ File: noOperatorModifierOnProvideDelegate.kt - e1d90b07d1282181233b81c866be7a3f LineStrText("OK") QUOTE_CLOSE(""") NL("\n") - NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/provideDelegateOnFunctionalTypeWithThis.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/provideDelegateOnFunctionalTypeWithThis.antlrtree.txt index 1918f5a00..ae4de21f4 100644 --- a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/provideDelegateOnFunctionalTypeWithThis.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/provideDelegateOnFunctionalTypeWithThis.antlrtree.txt @@ -1,4 +1,4 @@ -File: provideDelegateOnFunctionalTypeWithThis.kt - d2939a52d05c24e3d5f34bc486f58f8b +File: provideDelegateOnFunctionalTypeWithThis.kt - 6729526c17866af2034bedc260c4affc NL("\n") NL("\n") NL("\n") @@ -531,6 +531,4 @@ File: provideDelegateOnFunctionalTypeWithThis.kt - d2939a52d05c24e3d5f34bc486f58 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/provideDelegateOperatorDeclaration.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/provideDelegateOperatorDeclaration.antlrtree.txt index 0423b26ee..c60b88ec5 100644 --- a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/provideDelegateOperatorDeclaration.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/provideDelegateOperatorDeclaration.antlrtree.txt @@ -1,4 +1,5 @@ -File: provideDelegateOperatorDeclaration.kt - 86b441c0e8d5fc1893e8f0b6c6dddc34 +File: provideDelegateOperatorDeclaration.kt - 0b55655c1da48a42a9e58e091b269fb2 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/provideDelegateResolutionWithStubTypes.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/provideDelegateResolutionWithStubTypes.antlrtree.txt index 3ae21ad7e..03e62f029 100644 --- a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/provideDelegateResolutionWithStubTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/provideDelegateResolutionWithStubTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: provideDelegateResolutionWithStubTypes.kt - e1291d901a18b4e664300c53517eca4c - NL("\n") +File: provideDelegateResolutionWithStubTypes.kt - d72d6c55e0b87746c34cc2bbaaae9e78 NL("\n") packageHeader importList @@ -303,5 +302,5 @@ File: provideDelegateResolutionWithStubTypes.kt - e1291d901a18b4e664300c53517eca NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/setValue.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/setValue.antlrtree.txt index 6ae7912af..960029ef5 100644 --- a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/setValue.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/setValue.antlrtree.txt @@ -1,5 +1,4 @@ -File: setValue.kt - acd76b71dcb614307b4032ecec5b49c5 - NL("\n") +File: setValue.kt - 592a25b88950ba5a3dc8f9d1a925a484 NL("\n") NL("\n") packageHeader @@ -599,6 +598,4 @@ File: setValue.kt - acd76b71dcb614307b4032ecec5b49c5 QUOTE_CLOSE(""") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/simpleProvideDelegate.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/simpleProvideDelegate.antlrtree.txt index 884a36ee1..c68543ee9 100644 --- a/grammar/testData/diagnostics/delegatedProperty/provideDelegate/simpleProvideDelegate.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/provideDelegate/simpleProvideDelegate.antlrtree.txt @@ -236,6 +236,4 @@ File: simpleProvideDelegate.kt - 4700aaa5fdd6f91f0068ea8cdbfa7c2b lineStringContent LineStrText("OK") QUOTE_CLOSE(""") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/recursiveType.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/recursiveType.antlrtree.txt index ac4f4b6ac..82eeac724 100644 --- a/grammar/testData/diagnostics/delegatedProperty/recursiveType.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/recursiveType.antlrtree.txt @@ -1,5 +1,4 @@ -File: recursiveType.kt - 3414286b829a97ea530a82c778e1cc89 - NL("\n") +File: recursiveType.kt - 41f7b956ac9245afd41eda87c464d384 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/delegatedProperty/redundantGetter.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/redundantGetter.antlrtree.txt index 894614d8d..bb2dc06bf 100644 --- a/grammar/testData/diagnostics/delegatedProperty/redundantGetter.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/redundantGetter.antlrtree.txt @@ -1,4 +1,5 @@ -File: redundantGetter.kt - d12659d8e135c256bb2296760bbc3f4a +File: redundantGetter.kt - a61e4e62d6e71057c047451829ff6f89 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/redundantSetter.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/redundantSetter.antlrtree.txt index efbd0515b..038fa8b48 100644 --- a/grammar/testData/diagnostics/delegatedProperty/redundantSetter.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/redundantSetter.antlrtree.txt @@ -1,4 +1,5 @@ -File: redundantSetter.kt - 9bcae3f250fa0d7b27db277a96044e33 +File: redundantSetter.kt - 34ddf9b3c974df44eeb614b4688d4ead + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/setterThisTypeMismatch.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/setterThisTypeMismatch.antlrtree.txt index edcbc35b2..e3207a46a 100644 --- a/grammar/testData/diagnostics/delegatedProperty/setterThisTypeMismatch.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/setterThisTypeMismatch.antlrtree.txt @@ -1,4 +1,4 @@ -File: setterThisTypeMismatch.kt - 89fc2953e7c411afee7122e9964309f2 +File: setterThisTypeMismatch.kt - d806939260b2a9f391ce191929cdd659 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/delegatedProperty/severalReceivers.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/severalReceivers.antlrtree.txt index 089df2ffb..4eb25dd1f 100644 --- a/grammar/testData/diagnostics/delegatedProperty/severalReceivers.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/severalReceivers.antlrtree.txt @@ -268,6 +268,4 @@ File: severalReceivers.kt - aef2424303f06d6cbf3485258ead3470 Identifier("Delegate") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/thisOfNothingNullableType.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/thisOfNothingNullableType.antlrtree.txt index dd21c87bf..bdaa58772 100644 --- a/grammar/testData/diagnostics/delegatedProperty/thisOfNothingNullableType.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/thisOfNothingNullableType.antlrtree.txt @@ -1,4 +1,4 @@ -File: thisOfNothingNullableType.kt - 5e4e003ad81bc5e95f284cfc992ef0a5 +File: thisOfNothingNullableType.kt - 7028d9c10f0d731c683a0e5ac774ab26 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/delegatedProperty/thisOfNothingType.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/thisOfNothingType.antlrtree.txt index 2d05f1df4..43b8ee076 100644 --- a/grammar/testData/diagnostics/delegatedProperty/thisOfNothingType.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/thisOfNothingType.antlrtree.txt @@ -1,4 +1,4 @@ -File: thisOfNothingType.kt - 4905f47eacd19016afe46e5300e0b3a9 +File: thisOfNothingType.kt - d2870d9d63a13465d67c16d7e1c4023e NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/delegatedProperty/twoGetMethods.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/twoGetMethods.antlrtree.txt index 37b29cc02..f16edad0e 100644 --- a/grammar/testData/diagnostics/delegatedProperty/twoGetMethods.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/twoGetMethods.antlrtree.txt @@ -1,4 +1,5 @@ -File: twoGetMethods.kt - 15cc692bf8e6d3264ef4b354de80113f +File: twoGetMethods.kt - 5f581db157c9266beb517d6c95d92bd5 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/typeMismatchForGetReturnType.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/typeMismatchForGetReturnType.antlrtree.txt index 3ee64cba4..68a6a5dd3 100644 --- a/grammar/testData/diagnostics/delegatedProperty/typeMismatchForGetReturnType.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/typeMismatchForGetReturnType.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeMismatchForGetReturnType.kt - 68437f95ec85c9e3fd66d90a7911dcdf - NL("\n") +File: typeMismatchForGetReturnType.kt - e717ac002ba4aab5b84ef68518046f30 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/typeMismatchForGetWithGeneric.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/typeMismatchForGetWithGeneric.antlrtree.txt index 045f40eb8..067e94093 100644 --- a/grammar/testData/diagnostics/delegatedProperty/typeMismatchForGetWithGeneric.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/typeMismatchForGetWithGeneric.antlrtree.txt @@ -1,4 +1,5 @@ -File: typeMismatchForGetWithGeneric.kt - f8460a44b547b81796f68a1ba8e6297c +File: typeMismatchForGetWithGeneric.kt - 46054f86d8e31778be24eb999d526b63 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/typeMismatchForSetParameter.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/typeMismatchForSetParameter.antlrtree.txt index 32768896f..c6e57e1f3 100644 --- a/grammar/testData/diagnostics/delegatedProperty/typeMismatchForSetParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/typeMismatchForSetParameter.antlrtree.txt @@ -1,4 +1,4 @@ -File: typeMismatchForSetParameter.kt - 777e28b89af5e7a46d5aed471b5bc2eb +File: typeMismatchForSetParameter.kt - 0fe61acd964cde602a6e5383327c79b0 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/delegatedProperty/typeMismatchForThisGetParameter.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/typeMismatchForThisGetParameter.antlrtree.txt index 843717526..c676361e7 100644 --- a/grammar/testData/diagnostics/delegatedProperty/typeMismatchForThisGetParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/typeMismatchForThisGetParameter.antlrtree.txt @@ -1,4 +1,4 @@ -File: typeMismatchForThisGetParameter.kt - ef4abf5bf565e5a3a134adb3dc154c4b +File: typeMismatchForThisGetParameter.kt - a29ccfaa58ec6f0eb6d33b9ead2a0289 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/delegatedProperty/useTypeParameterOfExtensionProperty.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/useTypeParameterOfExtensionProperty.antlrtree.txt new file mode 100644 index 000000000..23465a4f1 --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/useTypeParameterOfExtensionProperty.antlrtree.txt @@ -0,0 +1,711 @@ +File: useTypeParameterOfExtensionProperty.kt - 1b48e4e5df19036b6635943e16d26790 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Delegate") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("thisRef") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("kp") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("setValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("thisRef") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("kp") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("newValue") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("v") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("newValue") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("foo") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Delegate") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Wrapper") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("v") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Wrapper") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("thisRef") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("kp") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("bar") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Wrapper") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("useString") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("listInt") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("listStr") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listInt") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("useString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listStr") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/useTypeParameterOfExtensionProperty_Disabled.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/useTypeParameterOfExtensionProperty_Disabled.antlrtree.txt new file mode 100644 index 000000000..5a6d498cd --- /dev/null +++ b/grammar/testData/diagnostics/delegatedProperty/useTypeParameterOfExtensionProperty_Disabled.antlrtree.txt @@ -0,0 +1,711 @@ +File: useTypeParameterOfExtensionProperty_Disabled.kt - 53b8a484ffb538ffcdb049c2806428df + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Delegate") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("thisRef") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("kp") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("setValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("thisRef") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("kp") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("newValue") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("v") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("newValue") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("foo") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Delegate") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Wrapper") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("v") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Wrapper") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("thisRef") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("kp") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("bar") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Wrapper") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("useString") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("listInt") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("listStr") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listInt") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("useString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listStr") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegatedProperty/wrongCountOfParametersInGet.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/wrongCountOfParametersInGet.antlrtree.txt index 59457f910..e85bd6d3f 100644 --- a/grammar/testData/diagnostics/delegatedProperty/wrongCountOfParametersInGet.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/wrongCountOfParametersInGet.antlrtree.txt @@ -1,4 +1,5 @@ -File: wrongCountOfParametersInGet.kt - cd15c258ae08197959e3be9de9299363 +File: wrongCountOfParametersInGet.kt - 85a106d984220310c1d3c801f284878f + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegatedProperty/wrongCountOfParametersInSet.antlrtree.txt b/grammar/testData/diagnostics/delegatedProperty/wrongCountOfParametersInSet.antlrtree.txt index 15b4a47b2..ab0e9135e 100644 --- a/grammar/testData/diagnostics/delegatedProperty/wrongCountOfParametersInSet.antlrtree.txt +++ b/grammar/testData/diagnostics/delegatedProperty/wrongCountOfParametersInSet.antlrtree.txt @@ -1,4 +1,5 @@ -File: wrongCountOfParametersInSet.kt - 0c0a7025b08f96076fc95e55b3aa7865 +File: wrongCountOfParametersInSet.kt - b1864c98723927ac376e0cc1716ecb54 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegation/DelegationAndOverriding.antlrtree.txt b/grammar/testData/diagnostics/delegation/DelegationAndOverriding.antlrtree.txt index c8a17f141..522ce5188 100644 --- a/grammar/testData/diagnostics/delegation/DelegationAndOverriding.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/DelegationAndOverriding.antlrtree.txt @@ -1,4 +1,4 @@ -File: DelegationAndOverriding.kt - ff9c734021d4f04a21e6dec410383f68 +File: DelegationAndOverriding.kt - 3fc8721f021dfe3f0b35e99bd57ed4d3 packageHeader PACKAGE("package") identifier @@ -515,5 +515,5 @@ File: DelegationAndOverriding.kt - ff9c734021d4f04a21e6dec410383f68 classMemberDeclarations RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/delegation/DelegationExpectedType.antlrtree.txt b/grammar/testData/diagnostics/delegation/DelegationExpectedType.antlrtree.txt index 2a99e5490..f27ba160f 100644 --- a/grammar/testData/diagnostics/delegation/DelegationExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/DelegationExpectedType.antlrtree.txt @@ -1,5 +1,4 @@ -File: DelegationExpectedType.kt - e770cf76433d9bad8bdeae1e2550754f - NL("\n") +File: DelegationExpectedType.kt - deb10438f313ee5c0651f0b343352a61 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/delegation/DelegationToJavaIface.antlrtree.txt b/grammar/testData/diagnostics/delegation/DelegationToJavaIface.antlrtree.txt index 5f77aab87..e3bc3b99f 100644 --- a/grammar/testData/diagnostics/delegation/DelegationToJavaIface.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/DelegationToJavaIface.antlrtree.txt @@ -1,4 +1,6 @@ -File: DelegationToJavaIface.kt - 7bd896df333c80f25a3680e64c82372a +File: DelegationToJavaIface.kt - 5065284a7176b95c93c5ea2660a11ed6 + NL("\n") + NL("\n") NL("\n") packageHeader importList @@ -115,6 +117,4 @@ File: DelegationToJavaIface.kt - 7bd896df333c80f25a3680e64c82372a LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegation/Delegation_ClashingFunctions.antlrtree.txt b/grammar/testData/diagnostics/delegation/Delegation_ClashingFunctions.antlrtree.txt index 3aa6f7c9b..10a59d3c9 100644 --- a/grammar/testData/diagnostics/delegation/Delegation_ClashingFunctions.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/Delegation_ClashingFunctions.antlrtree.txt @@ -929,6 +929,4 @@ File: Delegation_ClashingFunctions.kt - d27aab73bdc13be8f394e8b66b3287ee LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegation/Delegation_Hierarchy.antlrtree.txt b/grammar/testData/diagnostics/delegation/Delegation_Hierarchy.antlrtree.txt index 71e9cc527..b123ab730 100644 --- a/grammar/testData/diagnostics/delegation/Delegation_Hierarchy.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/Delegation_Hierarchy.antlrtree.txt @@ -212,6 +212,4 @@ File: Delegation_Hierarchy.kt - 5d7465c88d4df18f15d113405e3ebffa SEMICOLON(";") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegation/Delegation_MultipleDelegates.antlrtree.txt b/grammar/testData/diagnostics/delegation/Delegation_MultipleDelegates.antlrtree.txt index 43db1960b..d5f569c23 100644 --- a/grammar/testData/diagnostics/delegation/Delegation_MultipleDelegates.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/Delegation_MultipleDelegates.antlrtree.txt @@ -1,4 +1,5 @@ -File: Delegation_MultipleDelegates.kt - 4cf3d1ffd97452b4a5f1204b874d713a +File: Delegation_MultipleDelegates.kt - 131aaba9baf4d0ff2c4633e0bf38961b + NL("\n") NL("\n") packageHeader importList @@ -418,6 +419,4 @@ File: Delegation_MultipleDelegates.kt - 4cf3d1ffd97452b4a5f1204b874d713a LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegation/clashes/finalMemberOverridden.antlrtree.txt b/grammar/testData/diagnostics/delegation/clashes/finalMemberOverridden.antlrtree.txt index 91852d6fc..554101695 100644 --- a/grammar/testData/diagnostics/delegation/clashes/finalMemberOverridden.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/clashes/finalMemberOverridden.antlrtree.txt @@ -1,4 +1,4 @@ -File: finalMemberOverridden.kt - 145745715eb3b7afc8a910fa0683015b +File: finalMemberOverridden.kt - b41dc2698fcdbca91473152c9201530c NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/delegation/clashes/varOverriddenByVal.antlrtree.txt b/grammar/testData/diagnostics/delegation/clashes/varOverriddenByVal.antlrtree.txt index 0e439de81..a1baac9e3 100644 --- a/grammar/testData/diagnostics/delegation/clashes/varOverriddenByVal.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/clashes/varOverriddenByVal.antlrtree.txt @@ -1,4 +1,5 @@ -File: varOverriddenByVal.kt - 30f11822aa3b90edd6591d219924c530 +File: varOverriddenByVal.kt - 60aa9c2cd63511df2d717c92377b04f1 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/delegation/covariantOverrides/fromClass.antlrtree.txt b/grammar/testData/diagnostics/delegation/covariantOverrides/fromClass.antlrtree.txt index a6e39bbc4..7f4ec7474 100644 --- a/grammar/testData/diagnostics/delegation/covariantOverrides/fromClass.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/covariantOverrides/fromClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: fromClass.kt - 704140f6a0e9fab51832b8207178042a +File: fromClass.kt - 886a7e84e40b152c48f4546852b4eb64 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/delegation/covariantOverrides/kt13952.antlrtree.txt b/grammar/testData/diagnostics/delegation/covariantOverrides/kt13952.antlrtree.txt index b02b5d94a..af08cc7f1 100644 --- a/grammar/testData/diagnostics/delegation/covariantOverrides/kt13952.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/covariantOverrides/kt13952.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt13952.kt - 4a50c7b7c956934a182a77b8f3aa76b0 +File: kt13952.kt - 90dc0fbea01e2fe661c24dadfa5b1cc7 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/delegation/covariantOverrides/simple.antlrtree.txt b/grammar/testData/diagnostics/delegation/covariantOverrides/simple.antlrtree.txt index a95a2957d..1d371e168 100644 --- a/grammar/testData/diagnostics/delegation/covariantOverrides/simple.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/covariantOverrides/simple.antlrtree.txt @@ -1,4 +1,5 @@ -File: simple.kt - bbe4072533768b4e8a0060c52d8fb735 +File: simple.kt - 60015cd8f3ecc48ebc7a0d31197c65f2 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/delegation/kt44843.lt_neworld_compiler_Foo.antlrtree.txt b/grammar/testData/diagnostics/delegation/kt44843.lt_neworld_compiler_Foo.antlrtree.txt new file mode 100644 index 000000000..ee0dd00da --- /dev/null +++ b/grammar/testData/diagnostics/delegation/kt44843.lt_neworld_compiler_Foo.antlrtree.txt @@ -0,0 +1,64 @@ +File: kt44843.lt_neworld_compiler_Foo.kt - 713ddb07ed9c9dc1ff3f9f6bfd0f663b + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("lt") + DOT(".") + simpleIdentifier + Identifier("neworld") + DOT(".") + simpleIdentifier + Identifier("compiler") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegation/kt44843.lt_neworld_compiler_bar_Bar.antlrtree.txt b/grammar/testData/diagnostics/delegation/kt44843.lt_neworld_compiler_bar_Bar.antlrtree.txt new file mode 100644 index 000000000..329febc7a --- /dev/null +++ b/grammar/testData/diagnostics/delegation/kt44843.lt_neworld_compiler_bar_Bar.antlrtree.txt @@ -0,0 +1,267 @@ +File: kt44843.lt_neworld_compiler_bar_Bar.kt - 8d26412cf0ba7c44bd8698e470bc8c63 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("lt") + DOT(".") + simpleIdentifier + Identifier("neworld") + DOT(".") + simpleIdentifier + Identifier("compiler") + DOT(".") + simpleIdentifier + Identifier("bar") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("properties") + DOT(".") + simpleIdentifier + Identifier("ReadOnlyProperty") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KProperty") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ReadOnlyProperty") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getValue") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("thisRef") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + PROPERTY("property") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Not yet implemented") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegation/kt44843.test.antlrtree.txt b/grammar/testData/diagnostics/delegation/kt44843.test.antlrtree.txt new file mode 100644 index 000000000..ee485fd57 --- /dev/null +++ b/grammar/testData/diagnostics/delegation/kt44843.test.antlrtree.txt @@ -0,0 +1,38 @@ +File: kt44843.test.kt - 735fb9df6f79c73e47fc2bfe6b2674ab + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar2") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegation/kt48546.antlrtree.txt b/grammar/testData/diagnostics/delegation/kt48546.antlrtree.txt new file mode 100644 index 000000000..20b2fee6c --- /dev/null +++ b/grammar/testData/diagnostics/delegation/kt48546.antlrtree.txt @@ -0,0 +1,148 @@ +File: kt48546.kt - 2a297a262f0e27d1eb5a30ffa3d4049f + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("DelegateTest") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("result") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("result") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hello") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/delegation/kt49477.antlrtree.txt b/grammar/testData/diagnostics/delegation/kt49477.antlrtree.txt new file mode 100644 index 000000000..591ac47e5 --- /dev/null +++ b/grammar/testData/diagnostics/delegation/kt49477.antlrtree.txt @@ -0,0 +1,940 @@ +File: kt49477.kt - 9183ffd9dfdbacc4393ecb851212311b + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("properties") + DOT(".") + simpleIdentifier + Identifier("ReadWriteProperty") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KProperty") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KProperty1") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("Self") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DatabaseEntity") + COMMA(",") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("Target") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DatabaseEntity") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Self") + DOT(".") + simpleIdentifier + Identifier("parent") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + PROPERTY("property") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Target") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableCollection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Self") + RANGLE(">") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Delegate") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Self") + COMMA(",") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Target") + quest + QUEST_NO_WS("?") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("GitLabBuildProcessor") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("DatabaseEntity") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("processor") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("parent") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("GitLabChangesProcessor") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("buildProcessors") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("DatabaseEntity") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Entity") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Entity") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ResourceFactory") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ValueFilter") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Delegate") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Entity") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ReadWriteProperty") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ValueFilter") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + simpleIdentifier + Identifier("name") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("desc") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + simpleIdentifier + BY("by") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Delegate") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + simpleIdentifier + Identifier("resource") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("factory") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ResourceFactory") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Delegate") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + simpleIdentifier + Identifier("filter") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("filter") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Delegate") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("GitLabChangesProcessor") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("DatabaseEntity") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("buildProcessors") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("child_many") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("GitLabBuildProcessor") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("java") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("GitLabBuildProcessor") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("processor") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Self") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DatabaseEntity") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("Target") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DatabaseEntity") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Self") + DOT(".") + simpleIdentifier + Identifier("child_many") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("clazz") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Class") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Target") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + PROPERTY("property") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Target") + COMMA(",") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Self") + quest + QUEST_NO_WS("?") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + PROPERTY("property") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Delegate") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Self") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableCollection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Target") + RANGLE(">") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/delegation/kt49477Error.antlrtree.txt b/grammar/testData/diagnostics/delegation/kt49477Error.antlrtree.txt new file mode 100644 index 000000000..60d7002d7 --- /dev/null +++ b/grammar/testData/diagnostics/delegation/kt49477Error.antlrtree.txt @@ -0,0 +1,939 @@ +File: kt49477Error.kt - 22d4863b40669635fd6489281b96cc2d + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("properties") + DOT(".") + simpleIdentifier + Identifier("ReadWriteProperty") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KProperty") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KProperty1") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("Self") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DatabaseEntity") + COMMA(",") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("Target") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DatabaseEntity") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Self") + DOT(".") + simpleIdentifier + Identifier("parent") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + PROPERTY("property") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Target") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableCollection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Self") + RANGLE(">") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Delegate") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Self") + COMMA(",") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Target") + quest + QUEST_NO_WS("?") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("GitLabBuildProcessor") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("DatabaseEntity") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("processor") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("parent") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("GitLabChangesProcessor") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("buildProcessors") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("DatabaseEntity") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Entity") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Entity") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ResourceFactory") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ValueFilter") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Delegate") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Entity") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ReadWriteProperty") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ValueFilter") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + simpleIdentifier + Identifier("name") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("desc") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + simpleIdentifier + BY("by") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Delegate") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + simpleIdentifier + Identifier("resource") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("factory") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ResourceFactory") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Delegate") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + simpleIdentifier + Identifier("filter") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("filter") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Delegate") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("GitLabChangesProcessor") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("DatabaseEntity") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("buildProcessors") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("child_many") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("GitLabBuildProcessor") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("java") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("GitLabBuildProcessor") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("processor") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Self") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DatabaseEntity") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("Target") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DatabaseEntity") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Self") + DOT(".") + simpleIdentifier + Identifier("child_many") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("clazz") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Class") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Target") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + PROPERTY("property") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Target") + COMMA(",") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Self") + quest + QUEST_NO_WS("?") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + PROPERTY("property") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Delegate") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Self") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableCollection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Target") + RANGLE(">") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + EOF("") diff --git a/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/delegationToSubTypeWithOverride.antlrtree.txt b/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/delegationToSubTypeWithOverride.antlrtree.txt index 75b4d9949..589cb4413 100644 --- a/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/delegationToSubTypeWithOverride.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/delegationToSubTypeWithOverride.antlrtree.txt @@ -1,4 +1,5 @@ -File: delegationToSubTypeWithOverride.kt - 86ceb0c5b2baccf8d39e14433cd5c9cf +File: delegationToSubTypeWithOverride.kt - a3b5034a6e4bf582bf8c2529f217e0fc + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/delegationToSubTypeWithOverrideProperty.antlrtree.txt b/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/delegationToSubTypeWithOverrideProperty.antlrtree.txt index 5faaaada0..7b0277f0e 100644 --- a/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/delegationToSubTypeWithOverrideProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/delegationToSubTypeWithOverrideProperty.antlrtree.txt @@ -1,4 +1,5 @@ -File: delegationToSubTypeWithOverrideProperty.kt - 5c79c649e2be2a7b83cd67a326945efb +File: delegationToSubTypeWithOverrideProperty.kt - 6a56b863e5db6a6172f6269a594773d7 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/fakeOverrideInTheMiddle.antlrtree.txt b/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/fakeOverrideInTheMiddle.antlrtree.txt index 1fbd77ca5..9caba4942 100644 --- a/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/fakeOverrideInTheMiddle.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/fakeOverrideInTheMiddle.antlrtree.txt @@ -1,4 +1,5 @@ -File: fakeOverrideInTheMiddle.kt - 4b46027630c532e09efc1c1ecf938563 +File: fakeOverrideInTheMiddle.kt - 5618817a51ea7fa6530d59c2aac0d49d + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/sameDelegationInHierarchy.antlrtree.txt b/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/sameDelegationInHierarchy.antlrtree.txt index 6bb9304fe..760acde8b 100644 --- a/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/sameDelegationInHierarchy.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/sameDelegationInHierarchy.antlrtree.txt @@ -1,4 +1,5 @@ -File: sameDelegationInHierarchy.kt - c2bf55bd676d199679ab8dda91fe9257 +File: sameDelegationInHierarchy.kt - c31eaa5986b38d4fd8512b4d5176048a + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/severalDelegates.antlrtree.txt b/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/severalDelegates.antlrtree.txt index 4298a7a12..9b579d1b6 100644 --- a/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/severalDelegates.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/severalDelegates.antlrtree.txt @@ -1,5 +1,4 @@ -File: severalDelegates.kt - 3c2fc05b6fb5ba9869f272acb7758265 - NL("\n") +File: severalDelegates.kt - 70910aad02ed9aba33a4035f67353e8e packageHeader importList topLevelObject @@ -404,6 +403,4 @@ File: severalDelegates.kt - 3c2fc05b6fb5ba9869f272acb7758265 NL("\n") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/simple.antlrtree.txt b/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/simple.antlrtree.txt index eb84ecd2f..a9cad820d 100644 --- a/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/simple.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/simple.antlrtree.txt @@ -1,4 +1,5 @@ -File: simple.kt - 9414b5d3ad2e972afe271ce0cb28c456 +File: simple.kt - a8a4b7cb56524a1a87109c21defd85e0 + NL("\n") packageHeader importList topLevelObject @@ -330,6 +331,4 @@ File: simple.kt - 9414b5d3ad2e972afe271ce0cb28c456 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/simpleProp.antlrtree.txt b/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/simpleProp.antlrtree.txt index 9e1361c56..9ce5ba345 100644 --- a/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/simpleProp.antlrtree.txt +++ b/grammar/testData/diagnostics/delegation/memberHidesSupertypeOverride/simpleProp.antlrtree.txt @@ -1,4 +1,5 @@ -File: simpleProp.kt - 7bb9b1174c03104ecfd554e47e9ec2c9 +File: simpleProp.kt - 59e004e50791938c07af79e4ad345190 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/deparenthesize/ParenthesizedVariable.antlrtree.txt b/grammar/testData/diagnostics/deparenthesize/ParenthesizedVariable.antlrtree.txt index 467aba448..87d4421ec 100644 --- a/grammar/testData/diagnostics/deparenthesize/ParenthesizedVariable.antlrtree.txt +++ b/grammar/testData/diagnostics/deparenthesize/ParenthesizedVariable.antlrtree.txt @@ -1,4 +1,4 @@ -File: ParenthesizedVariable.kt - aab0b38a66c85288c7faed7f528a08cb (WITH_ERRORS) +File: ParenthesizedVariable.kt - cf8760bfa2a2f2ebb3929cfa87af9e98 (WITH_ERRORS) packageHeader importList topLevelObject @@ -45,4 +45,5 @@ File: ParenthesizedVariable.kt - aab0b38a66c85288c7faed7f528a08cb (WITH_ERRORS) semis NL("\n") RCURL("}") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/deparenthesize/annotatedSafeCall.antlrtree.txt b/grammar/testData/diagnostics/deparenthesize/annotatedSafeCall.antlrtree.txt index cb1bbb198..2e8f9ee76 100644 --- a/grammar/testData/diagnostics/deparenthesize/annotatedSafeCall.antlrtree.txt +++ b/grammar/testData/diagnostics/deparenthesize/annotatedSafeCall.antlrtree.txt @@ -233,6 +233,4 @@ File: annotatedSafeCall.kt - 6eef606f3299b36d707cc5ef744112f0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/deparenthesize/checkDeparenthesizedType.antlrtree.txt b/grammar/testData/diagnostics/deparenthesize/checkDeparenthesizedType.antlrtree.txt index c5a563ca4..d572484a7 100644 --- a/grammar/testData/diagnostics/deparenthesize/checkDeparenthesizedType.antlrtree.txt +++ b/grammar/testData/diagnostics/deparenthesize/checkDeparenthesizedType.antlrtree.txt @@ -1,5 +1,4 @@ -File: checkDeparenthesizedType.kt - 69137d7db368de86ddc9af97ec276025 - NL("\n") +File: checkDeparenthesizedType.kt - 44d2966e3f29c83f865d9b1f4660b36c NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/deparenthesize/labeledSafeCall.antlrtree.txt b/grammar/testData/diagnostics/deparenthesize/labeledSafeCall.antlrtree.txt index f9906c51a..b56bced33 100644 --- a/grammar/testData/diagnostics/deparenthesize/labeledSafeCall.antlrtree.txt +++ b/grammar/testData/diagnostics/deparenthesize/labeledSafeCall.antlrtree.txt @@ -141,6 +141,4 @@ File: labeledSafeCall.kt - 838cc902faa2684e81af97ee2cc365a0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/deparenthesize/multiParenthesizedSafeCall.antlrtree.txt b/grammar/testData/diagnostics/deparenthesize/multiParenthesizedSafeCall.antlrtree.txt index 73991d9a2..7be812eff 100644 --- a/grammar/testData/diagnostics/deparenthesize/multiParenthesizedSafeCall.antlrtree.txt +++ b/grammar/testData/diagnostics/deparenthesize/multiParenthesizedSafeCall.antlrtree.txt @@ -175,6 +175,4 @@ File: multiParenthesizedSafeCall.kt - 5a0e621ecb82fa1d132b46163b39a13b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/deparenthesize/parenthesizedSafeCall.antlrtree.txt b/grammar/testData/diagnostics/deparenthesize/parenthesizedSafeCall.antlrtree.txt index e9a5d096f..be73e3aee 100644 --- a/grammar/testData/diagnostics/deparenthesize/parenthesizedSafeCall.antlrtree.txt +++ b/grammar/testData/diagnostics/deparenthesize/parenthesizedSafeCall.antlrtree.txt @@ -137,6 +137,4 @@ File: parenthesizedSafeCall.kt - 5c24b3cf2463d8ae07c8858450ef77cc semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/deprecated/annotationUsage.antlrtree.txt b/grammar/testData/diagnostics/deprecated/annotationUsage.antlrtree.txt index 377bd72c5..8a50cd46b 100644 --- a/grammar/testData/diagnostics/deprecated/annotationUsage.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/annotationUsage.antlrtree.txt @@ -1,4 +1,4 @@ -File: annotationUsage.kt - 9ea07088f9fc0df5c7ccdb6aed63a36d +File: annotationUsage.kt - 9bd5ab721bd523fd9a3046e6c92d9265 packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: annotationUsage.kt - 9ea07088f9fc0df5c7ccdb6aed63a36d modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType diff --git a/grammar/testData/diagnostics/deprecated/candidateBehindHiddenPropertyAccessors.antlrtree.txt b/grammar/testData/diagnostics/deprecated/candidateBehindHiddenPropertyAccessors.antlrtree.txt new file mode 100644 index 000000000..3f670c448 --- /dev/null +++ b/grammar/testData/diagnostics/deprecated/candidateBehindHiddenPropertyAccessors.antlrtree.txt @@ -0,0 +1,1307 @@ +File: candidateBehindHiddenPropertyAccessors.kt - 0bc3c32287c90f67baa8b9dd57f016e9 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("v1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + getter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("HIDDEN") + RPAREN(")") + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("HIDDEN") + RPAREN(")") + NL("\n") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("v2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + getter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("HIDDEN") + RPAREN(")") + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + setter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("HIDDEN") + RPAREN(")") + NL("\n") + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + getter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("HIDDEN") + RPAREN(")") + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + setter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("HIDDEN") + RPAREN(")") + NL("\n") + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("HIDDEN") + RPAREN(")") + NL("\n") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v6") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("v1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("v2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("v6") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v2") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v3") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("v3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v4") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("v4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v5") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("v5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v6") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("v6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/deprecated/classWithCompanionObject.antlrtree.txt b/grammar/testData/diagnostics/deprecated/classWithCompanionObject.antlrtree.txt index 4254cd9e1..acd096fc2 100644 --- a/grammar/testData/diagnostics/deprecated/classWithCompanionObject.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/classWithCompanionObject.antlrtree.txt @@ -106,6 +106,4 @@ File: classWithCompanionObject.kt - de9ffb246b2ad25f7b0cb656d946b6ef RPAREN(")") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/deprecated/companionObjectUsage.antlrtree.txt b/grammar/testData/diagnostics/deprecated/companionObjectUsage.antlrtree.txt index efd893bf0..05b8f8ffa 100644 --- a/grammar/testData/diagnostics/deprecated/companionObjectUsage.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/companionObjectUsage.antlrtree.txt @@ -1,4 +1,5 @@ -File: companionObjectUsage.kt - 5cb55c0c4808cda28801c2f0a55f6c99 +File: companionObjectUsage.kt - 4c6b114674cb28e3f9f9602a1b0fbfea + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/deprecated/deprecatedError.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedError.antlrtree.txt index 276a382a4..072a906c4 100644 --- a/grammar/testData/diagnostics/deprecated/deprecatedError.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/deprecatedError.antlrtree.txt @@ -1,4 +1,5 @@ -File: deprecatedError.kt - 073fd43729cb16972e3917ed191a3d85 +File: deprecatedError.kt - 4f16be3a460908df3210cf364c8d45fe + NL("\n") packageHeader importList topLevelObject @@ -236,6 +237,4 @@ File: deprecatedError.kt - 073fd43729cb16972e3917ed191a3d85 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedErrorBuilder.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedErrorBuilder.antlrtree.txt index db5a756e8..e62e19582 100644 --- a/grammar/testData/diagnostics/deprecated/deprecatedErrorBuilder.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/deprecatedErrorBuilder.antlrtree.txt @@ -1,4 +1,5 @@ -File: deprecatedErrorBuilder.kt - c42372aa914f2656061e853337c926aa +File: deprecatedErrorBuilder.kt - fb95302a66f5c9e8912b24a8c4d6cae4 + NL("\n") NL("\n") packageHeader importList @@ -405,6 +406,4 @@ File: deprecatedErrorBuilder.kt - c42372aa914f2656061e853337c926aa semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedHidden.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedHidden.antlrtree.txt index 6b58bd997..be2ae823c 100644 --- a/grammar/testData/diagnostics/deprecated/deprecatedHidden.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/deprecatedHidden.antlrtree.txt @@ -1,4 +1,5 @@ -File: deprecatedHidden.kt - 34079164605c6b8d78658fc91407e67f +File: deprecatedHidden.kt - 451acd3746e33c274a34199fc0a3225a + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/deprecated/deprecatedHiddenOnCallableReferenceArgument.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedHiddenOnCallableReferenceArgument.antlrtree.txt index 44adc516e..bf87b2c92 100644 --- a/grammar/testData/diagnostics/deprecated/deprecatedHiddenOnCallableReferenceArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/deprecatedHiddenOnCallableReferenceArgument.antlrtree.txt @@ -1,4 +1,5 @@ -File: deprecatedHiddenOnCallableReferenceArgument.kt - 4b99c8d9438d63e65a9a22bd271b25da +File: deprecatedHiddenOnCallableReferenceArgument.kt - ee08d38e89281d8ce0d61d50a09b925a + NL("\n") NL("\n") NL("\n") packageHeader @@ -439,6 +440,4 @@ File: deprecatedHiddenOnCallableReferenceArgument.kt - 4b99c8d9438d63e65a9a22bd2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedInheritance_after.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedInheritance_after.antlrtree.txt new file mode 100644 index 000000000..0a37c76b4 --- /dev/null +++ b/grammar/testData/diagnostics/deprecated/deprecatedInheritance_after.antlrtree.txt @@ -0,0 +1,2025 @@ +File: deprecatedInheritance_after.kt - 4f417ef723d88ba2726156fc3c793648 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("foo") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("WarningDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("WARNING") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ErrorDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ERROR") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("HIDDEN") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("NotDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("WE") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("WH") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("EH") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("NW") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("NotDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("NE") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("NotDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("NH") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("NotDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("WEH") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("NWEH") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("NotDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("WE2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("WE") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("NWE2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("WE") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("NotDeprecated") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("NWE3") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("WE") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("NotDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("E2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("W2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("EW2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("E2") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("W2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("HEW2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("EW2") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ExplicitError") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HEW2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ERROR") + RPAREN(")") + NL("\n") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("use") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("wd") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("ed") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("hd") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("we") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WE") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("wh") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WH") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("eh") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("EH") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("nw") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NW") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("ne") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NE") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("nh") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NH") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("weh") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WEH") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("nweh") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NWEH") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("we2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WE2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("nwe2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NWE2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("nwe3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NWE3") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("e2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("w2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("W2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("ew2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("EW2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("hew2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("HEW2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("explicitError") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ExplicitError") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wd") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ed") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("hd") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("we") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wh") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("eh") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nw") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ne") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nh") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("weh") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nweh") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("we2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nwe2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nwe3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("e2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ew2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("hew2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("explicitError") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedInheritance_before.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedInheritance_before.antlrtree.txt new file mode 100644 index 000000000..d942c38cb --- /dev/null +++ b/grammar/testData/diagnostics/deprecated/deprecatedInheritance_before.antlrtree.txt @@ -0,0 +1,2025 @@ +File: deprecatedInheritance_before.kt - cfcb947aa625a96b6be4d30419f342e5 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("foo") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("WarningDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("WARNING") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ErrorDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ERROR") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("HIDDEN") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("NotDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("WE") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("WH") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("EH") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("NW") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("NotDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("NE") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("NotDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("NH") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("NotDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("WEH") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("NWEH") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("NotDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("WE2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("WE") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("NWE2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("WE") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("NotDeprecated") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("NWE3") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("WE") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("NotDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("E2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("W2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("EW2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("E2") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("W2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("HEW2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("EW2") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ExplicitError") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HEW2") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ERROR") + RPAREN(")") + NL("\n") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("use") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("wd") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("ed") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("hd") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("we") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WE") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("wh") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WH") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("eh") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("EH") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("nw") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NW") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("ne") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NE") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("nh") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NH") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("weh") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WEH") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("nweh") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NWEH") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("we2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WE2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("nwe2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NWE2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("nwe3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NWE3") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("e2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("w2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("W2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("ew2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("EW2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("hew2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("HEW2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("explicitError") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ExplicitError") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wd") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ed") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("hd") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("we") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wh") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("eh") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nw") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ne") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nh") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("weh") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nweh") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("we2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nwe2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nwe3") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("e2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ew2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("hew2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("explicitError") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedPropertyInheritance_after.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedPropertyInheritance_after.antlrtree.txt new file mode 100644 index 000000000..18aed2a0d --- /dev/null +++ b/grammar/testData/diagnostics/deprecated/deprecatedPropertyInheritance_after.antlrtree.txt @@ -0,0 +1,2421 @@ +File: deprecatedPropertyInheritance_after.kt - 00615630c9f16ba4e5f16c202ecccc19 + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("foo") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("HIDDEN") + RPAREN(")") + NL("\n") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("NoDeprecation") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("WarningDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("WARNING") + RPAREN(")") + NL("\n") + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("ErrorDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ERROR") + RPAREN(")") + NL("\n") + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("GetterDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + getter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + GET("get") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("SetterDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + SET("set") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("WD") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("ED") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("GD") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("GetterDeprecated") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SD") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SetterDeprecated") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SDH") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SetterDeprecated") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("EDH") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("NED") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("NoDeprecation") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Diff") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("WARNING") + RPAREN(")") + NL("\n") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ERROR") + RPAREN(")") + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("HIDDEN") + RPAREN(")") + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("use") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("warningDeprecated") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("errorDeprecated") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("setterDeprecated") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SetterDeprecated") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("getterDeprecated") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("GetterDeprecated") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("hiddenDeprecated") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("wd") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WD") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("ed") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ED") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("gd") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("GD") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("sd") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SD") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("sdh") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SDH") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("edh") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("EDH") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("ned") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NED") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("diff") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Diff") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("warningDeprecated") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("warningDeprecated") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("errorDeprecated") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("errorDeprecated") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getterDeprecated") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getterDeprecated") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("setterDeprecated") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("setterDeprecated") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("hiddenDeprecated") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("hiddenDeprecated") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wd") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wd") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ed") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ed") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("gd") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("gd") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("sd") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("sd") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("sdh") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("sdh") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("edh") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("edh") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ned") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ned") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("diff") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("diff") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedPropertyInheritance_before.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedPropertyInheritance_before.antlrtree.txt new file mode 100644 index 000000000..916025363 --- /dev/null +++ b/grammar/testData/diagnostics/deprecated/deprecatedPropertyInheritance_before.antlrtree.txt @@ -0,0 +1,2421 @@ +File: deprecatedPropertyInheritance_before.kt - d92ac5aae36816ac2441a3d6109a1b4f + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("foo") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("HIDDEN") + RPAREN(")") + NL("\n") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("NoDeprecation") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("WarningDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("WARNING") + RPAREN(")") + NL("\n") + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("ErrorDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ERROR") + RPAREN(")") + NL("\n") + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("GetterDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + getter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + GET("get") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("SetterDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + SET("set") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("WD") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("ED") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("GD") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("GetterDeprecated") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SD") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SetterDeprecated") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SDH") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SetterDeprecated") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("EDH") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("NED") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("NoDeprecation") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Diff") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("WARNING") + RPAREN(")") + NL("\n") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("ERROR") + RPAREN(")") + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + setter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("HIDDEN") + RPAREN(")") + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("use") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("warningDeprecated") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WarningDeprecated") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("errorDeprecated") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ErrorDeprecated") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("setterDeprecated") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SetterDeprecated") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("getterDeprecated") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("GetterDeprecated") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("hiddenDeprecated") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("HiddenDeprecated") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("wd") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WD") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("ed") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ED") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("gd") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("GD") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("sd") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SD") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("sdh") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SDH") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("edh") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("EDH") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("ned") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NED") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("diff") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Diff") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("warningDeprecated") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("warningDeprecated") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("errorDeprecated") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("errorDeprecated") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getterDeprecated") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getterDeprecated") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("setterDeprecated") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("setterDeprecated") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("hiddenDeprecated") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("hiddenDeprecated") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wd") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wd") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ed") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ed") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("gd") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("gd") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("sd") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("sd") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("sdh") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("sdh") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("edh") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("edh") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ned") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ned") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("diff") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("diff") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinHiddenOnReferenceArgument.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinHiddenOnReferenceArgument.antlrtree.txt index 29f3a3168..155bbc4bc 100644 --- a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinHiddenOnReferenceArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinHiddenOnReferenceArgument.antlrtree.txt @@ -1,4 +1,5 @@ -File: deprecatedSinceKotlinHiddenOnReferenceArgument.kt - 86c848e053d9f3ac3d945d879cd889c3 +File: deprecatedSinceKotlinHiddenOnReferenceArgument.kt - 110e39a528fd0e9b2568ae3712a4b74d + NL("\n") NL("\n") NL("\n") packageHeader @@ -456,6 +457,4 @@ File: deprecatedSinceKotlinHiddenOnReferenceArgument.kt - 86c848e053d9f3ac3d945d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinOutsideKotlinPackage.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinOutsideKotlinPackage.antlrtree.txt index 692408315..9ca3e82b4 100644 --- a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinOutsideKotlinPackage.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinOutsideKotlinPackage.antlrtree.txt @@ -1,4 +1,5 @@ -File: deprecatedSinceKotlinOutsideKotlinPackage.kt - ddaf28a4ff7222ac8f8b000a183c01e1 +File: deprecatedSinceKotlinOutsideKotlinPackage.kt - b5e85457eb2ab4ff33c8e274d80921e0 + NL("\n") packageHeader PACKAGE("package") identifier @@ -94,6 +95,4 @@ File: deprecatedSinceKotlinOutsideKotlinPackage.kt - ddaf28a4ff7222ac8f8b000a183 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinWithoutArguments.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinWithoutArguments.antlrtree.txt index 856eac680..9c4be3e7c 100644 --- a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinWithoutArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/deprecatedSinceKotlinWithoutArguments.antlrtree.txt @@ -108,6 +108,4 @@ File: deprecatedSinceKotlinWithoutArguments.kt - 0eda659dc93fac79807f8bf0f4d33f9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/error.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/error.antlrtree.txt index 8522c234c..2b094773b 100644 --- a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/error.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/error.antlrtree.txt @@ -1,4 +1,5 @@ -File: error.kt - 2e112fe756ee5e092becefa1587d1fbb +File: error.kt - 066ac3cdfbe9137d8a75771b933f2f95 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/hidden.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/hidden.antlrtree.txt index 08596b386..03c26abcf 100644 --- a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/hidden.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/hidden.antlrtree.txt @@ -1,4 +1,5 @@ -File: hidden.kt - f7cab87a90ef8075bf88523118483057 +File: hidden.kt - 29dbc5130fa735a601b3cb5e53c8faf4 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/warning.antlrtree.txt b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/warning.antlrtree.txt index b4c5b4b4c..d6fb57c5a 100644 --- a/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/warning.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/deprecatedSinceKotlin/warning.antlrtree.txt @@ -1,4 +1,5 @@ -File: warning.kt - 9a19fefb3d56bc1867b454332096cf58 +File: warning.kt - 98ea224606ab331fd1070735fb566f6f + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/deprecated/duplicatedOverrideDeprecationOnProperty.antlrtree.txt b/grammar/testData/diagnostics/deprecated/duplicatedOverrideDeprecationOnProperty.antlrtree.txt new file mode 100644 index 000000000..0d7fa4a84 --- /dev/null +++ b/grammar/testData/diagnostics/deprecated/duplicatedOverrideDeprecationOnProperty.antlrtree.txt @@ -0,0 +1,734 @@ +File: duplicatedOverrideDeprecationOnProperty.kt - 7163b44526ba29ea9e88c6737cd931b2 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("h") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + FIELD("field") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + FIELD("field") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("h") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + FIELD("field") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + FIELD("field") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/deprecated/functionUsage.antlrtree.txt b/grammar/testData/diagnostics/deprecated/functionUsage.antlrtree.txt index 0d15a7a05..2b9a0216b 100644 --- a/grammar/testData/diagnostics/deprecated/functionUsage.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/functionUsage.antlrtree.txt @@ -1,4 +1,5 @@ -File: functionUsage.kt - 0546b8d006f2195ecca098a7547e6bd4 +File: functionUsage.kt - 9d520691c597ae977459a60c30a39b0f + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/deprecated/imports.antlrtree.txt b/grammar/testData/diagnostics/deprecated/imports.antlrtree.txt index 40d1bfd90..c533480f0 100644 --- a/grammar/testData/diagnostics/deprecated/imports.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/imports.antlrtree.txt @@ -1,4 +1,5 @@ -File: imports.kt - b1af2efee71528129b3ba827b822a82a +File: imports.kt - fbbbc2af797736bb34daa5f2157a1b13 + NL("\n") packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/deprecated/nestedTypesUsage.antlrtree.txt b/grammar/testData/diagnostics/deprecated/nestedTypesUsage.antlrtree.txt index 296c97239..57da038ad 100644 --- a/grammar/testData/diagnostics/deprecated/nestedTypesUsage.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/nestedTypesUsage.antlrtree.txt @@ -1,4 +1,5 @@ -File: nestedTypesUsage.kt - a48a272f111a5efefc82e560f74d4c18 +File: nestedTypesUsage.kt - 2b732a96ff8da6f629d8847d9534389e + NL("\n") packageHeader importList topLevelObject @@ -247,5 +248,5 @@ File: nestedTypesUsage.kt - a48a272f111a5efefc82e560f74d4c18 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/deprecated/objectUsage.antlrtree.txt b/grammar/testData/diagnostics/deprecated/objectUsage.antlrtree.txt index e751f6ac2..3fa9ecac2 100644 --- a/grammar/testData/diagnostics/deprecated/objectUsage.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/objectUsage.antlrtree.txt @@ -1,4 +1,4 @@ -File: objectUsage.kt - d1a4c7eb057cef3bb388554fcb120d5e +File: objectUsage.kt - e29a58c175df8d45825959722149ae1f packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: objectUsage.kt - d1a4c7eb057cef3bb388554fcb120d5e modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType diff --git a/grammar/testData/diagnostics/deprecated/propertyUseSiteTargetedAnnotations.antlrtree.txt b/grammar/testData/diagnostics/deprecated/propertyUseSiteTargetedAnnotations.antlrtree.txt index f3981d343..759a6ea4e 100644 --- a/grammar/testData/diagnostics/deprecated/propertyUseSiteTargetedAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/propertyUseSiteTargetedAnnotations.antlrtree.txt @@ -1,4 +1,5 @@ -File: propertyUseSiteTargetedAnnotations.kt - 22f76f5190e130cd97d63a8d675265bc +File: propertyUseSiteTargetedAnnotations.kt - 540c37033485bf30d495ff07f5047a24 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/deprecated/typeUsage.antlrtree.txt b/grammar/testData/diagnostics/deprecated/typeUsage.antlrtree.txt index e854b3b40..999f5b9db 100644 --- a/grammar/testData/diagnostics/deprecated/typeUsage.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/typeUsage.antlrtree.txt @@ -1,4 +1,4 @@ -File: typeUsage.kt - d6876d3bf6fd5252c0992a13abf6ba3c +File: typeUsage.kt - ff60d88851dc9bba63458ea66a06e81a packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: typeUsage.kt - d6876d3bf6fd5252c0992a13abf6ba3c modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType diff --git a/grammar/testData/diagnostics/deprecated/typealiasCompanionObject.antlrtree.txt b/grammar/testData/diagnostics/deprecated/typealiasCompanionObject.antlrtree.txt index 841c4696c..3e95ccfad 100644 --- a/grammar/testData/diagnostics/deprecated/typealiasCompanionObject.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/typealiasCompanionObject.antlrtree.txt @@ -1,4 +1,5 @@ -File: typealiasCompanionObject.kt - efb0f0a66fa63b48fa2cc90c08901450 +File: typealiasCompanionObject.kt - 22f54d2293cfafa963d2b15e703d1d1f + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/deprecated/typealiasConstructor.antlrtree.txt b/grammar/testData/diagnostics/deprecated/typealiasConstructor.antlrtree.txt index 61363fbea..a7658cce3 100644 --- a/grammar/testData/diagnostics/deprecated/typealiasConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/typealiasConstructor.antlrtree.txt @@ -281,6 +281,4 @@ File: typealiasConstructor.kt - cff54a735b116bf135eac101fba42d71 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/deprecated/typealiasForDeprecatedClass.antlrtree.txt b/grammar/testData/diagnostics/deprecated/typealiasForDeprecatedClass.antlrtree.txt index c6f49e055..a1581940c 100644 --- a/grammar/testData/diagnostics/deprecated/typealiasForDeprecatedClass.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/typealiasForDeprecatedClass.antlrtree.txt @@ -500,6 +500,4 @@ File: typealiasForDeprecatedClass.kt - 8148ce862cda3e1481ac1eefe279fb9d primaryExpression simpleIdentifier Identifier("b") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/deprecated/typealiasUsage.antlrtree.txt b/grammar/testData/diagnostics/deprecated/typealiasUsage.antlrtree.txt index a8c0e359e..0998ee33d 100644 --- a/grammar/testData/diagnostics/deprecated/typealiasUsage.antlrtree.txt +++ b/grammar/testData/diagnostics/deprecated/typealiasUsage.antlrtree.txt @@ -415,6 +415,4 @@ File: typealiasUsage.kt - a6dc5b66f110e2aa5bf08915fae4bbfe valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/deprecated/usageOnEnum.antlrtree.txt b/grammar/testData/diagnostics/deprecated/usageOnEnum.antlrtree.txt new file mode 100644 index 000000000..315dce32e --- /dev/null +++ b/grammar/testData/diagnostics/deprecated/usageOnEnum.antlrtree.txt @@ -0,0 +1,99 @@ +File: usageOnEnum.kt - c4c5efc1f2e7f004a9e8923e511d0602 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("Foo") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByProperty.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByProperty.antlrtree.txt index 4cb247e4c..6904f909f 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByProperty.antlrtree.txt @@ -114,6 +114,4 @@ File: classFunctionOverriddenByProperty.kt - cbadeab7a1bd916ef590e0dabb3d9df0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyInConstructor.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyInConstructor.antlrtree.txt index 452a540fd..d40948a5e 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyInConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyInConstructor.antlrtree.txt @@ -83,6 +83,4 @@ File: classFunctionOverriddenByPropertyInConstructor.kt - 9c6c747192c73206a8aa62 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyNoGetter.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyNoGetter.antlrtree.txt index e14f6ba8f..a115da3a1 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyNoGetter.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/classFunctionOverriddenByPropertyNoGetter.antlrtree.txt @@ -107,6 +107,4 @@ File: classFunctionOverriddenByPropertyNoGetter.kt - e9ca0a8a8ebc48a2cee52b97591 IntegerLiteral("1") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/classPropertyOverriddenByFunction.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/classPropertyOverriddenByFunction.antlrtree.txt index a401ce569..60f46dd08 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/classPropertyOverriddenByFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/classPropertyOverriddenByFunction.antlrtree.txt @@ -114,6 +114,4 @@ File: classPropertyOverriddenByFunction.kt - a5505face0f9630c716c80c29d4cddcb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/delegatedFunctionOverriddenByProperty.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/delegatedFunctionOverriddenByProperty.antlrtree.txt index f84b435af..f0d51ff40 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/delegatedFunctionOverriddenByProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/delegatedFunctionOverriddenByProperty.antlrtree.txt @@ -135,6 +135,4 @@ File: delegatedFunctionOverriddenByProperty.kt - 70c09ed8fb733c85ccbd4a95277b03a NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/genericClassFunction.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/genericClassFunction.antlrtree.txt index 1c876bed4..5e5425116 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/genericClassFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/genericClassFunction.antlrtree.txt @@ -118,6 +118,4 @@ File: genericClassFunction.kt - beed82acc68cc613fa51c816352487c5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/overridesNothing.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/overridesNothing.antlrtree.txt index 41fb8d21f..c74027a8b 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/overridesNothing.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/overridesNothing.antlrtree.txt @@ -96,6 +96,4 @@ File: overridesNothing.kt - c45aa0b76de22309675c52e1e474e6ff IntegerLiteral("1") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.antlrtree.txt index 3c8566d72..397cb299a 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.antlrtree.txt @@ -119,6 +119,4 @@ File: privateClassFunctionOverriddenByProperty.kt - 44ed61f1a50ac2473022f921bb5c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/require.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/require.antlrtree.txt index 8ede1d728..2b27cda57 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/require.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/require.antlrtree.txt @@ -96,6 +96,4 @@ File: require.kt - ebe4ca80c9f09757c74912fdf4449880 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByProperty.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByProperty.antlrtree.txt index d76d55338..244df393a 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByProperty.antlrtree.txt @@ -106,6 +106,4 @@ File: traitFunctionOverriddenByProperty.kt - d4b46874bfea4fc9d9faad4da20bd81f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByPropertyNoImpl.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByPropertyNoImpl.antlrtree.txt index 0cafcfaaf..ea8e791b2 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByPropertyNoImpl.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/traitFunctionOverriddenByPropertyNoImpl.antlrtree.txt @@ -97,6 +97,4 @@ File: traitFunctionOverriddenByPropertyNoImpl.kt - d7df0dbc422b5841d9a70f4660b79 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunction.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunction.antlrtree.txt index d4d881de9..91d35fd54 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunction.antlrtree.txt @@ -106,6 +106,4 @@ File: traitPropertyOverriddenByFunction.kt - 05f3eed430f5c11e92443d60e0ee09e8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunctionNoImpl.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunctionNoImpl.antlrtree.txt index 1de165f8a..710b1cb58 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunctionNoImpl.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/accidentalOverrides/traitPropertyOverriddenByFunctionNoImpl.antlrtree.txt @@ -84,6 +84,4 @@ File: traitPropertyOverriddenByFunctionNoImpl.kt - d0ba739908da0418153a0d7ef76d2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/bridges/class.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/bridges/class.antlrtree.txt index 8adca09bb..8cad8e1fd 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/bridges/class.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/bridges/class.antlrtree.txt @@ -150,6 +150,4 @@ File: class.kt - ed238b75c4698478dcf61f1a4ce19404 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/bridges/fakeOverrideTrait.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/bridges/fakeOverrideTrait.antlrtree.txt index a2288e594..768fb8bde 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/bridges/fakeOverrideTrait.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/bridges/fakeOverrideTrait.antlrtree.txt @@ -106,6 +106,4 @@ File: fakeOverrideTrait.kt - ddc197cd99359720806216639a67ca1c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/bridges/trait.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/bridges/trait.antlrtree.txt index 75fbe8a08..102e1bce3 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/bridges/trait.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/bridges/trait.antlrtree.txt @@ -138,6 +138,4 @@ File: trait.kt - ad3ce8437f430afd2c66935e0efc3ac2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/caseInProperties.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/caseInProperties.antlrtree.txt index 43550f46e..80425b1db 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/caseInProperties.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/caseInProperties.antlrtree.txt @@ -54,6 +54,4 @@ File: caseInProperties.kt - b5e5d78a68f41a170dd011c325aba45b primaryExpression literalConstant IntegerLiteral("1") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/collections.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/collections.antlrtree.txt index e9be52ab7..9a029736c 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/collections.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/collections.antlrtree.txt @@ -75,6 +75,4 @@ File: collections.kt - 7c0f0173ac5e9031103369dc829cbca1 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/delegateToTwoTraits.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/delegateToTwoTraits.antlrtree.txt index 73d47fd51..3f0f6fbd1 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/delegateToTwoTraits.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/delegateToTwoTraits.antlrtree.txt @@ -241,6 +241,4 @@ File: delegateToTwoTraits.kt - a0ce3b96ff32e746f31e5d412fad7318 NL("\n") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/delegationAndOwnMethod.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/delegationAndOwnMethod.antlrtree.txt index 89bdb4dd7..f87541447 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/delegationAndOwnMethod.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/delegationAndOwnMethod.antlrtree.txt @@ -168,6 +168,4 @@ File: delegationAndOwnMethod.kt - 71d5fab427b208e177bf293e852521fc semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/delegationToTraitImplAndOwnMethod.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/delegationToTraitImplAndOwnMethod.antlrtree.txt index 46710d767..a8d03f768 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/delegationToTraitImplAndOwnMethod.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/delegationToTraitImplAndOwnMethod.antlrtree.txt @@ -295,6 +295,4 @@ File: delegationToTraitImplAndOwnMethod.kt - f5c1bebdf8ba15dbeb34a141e4c288a0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/extensionProperties.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/extensionProperties.antlrtree.txt index f2e3fd464..c24ccb572 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/extensionProperties.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/extensionProperties.antlrtree.txt @@ -137,6 +137,4 @@ File: extensionProperties.kt - a2905863cc25c65dcedbe3c1f392bf31 primaryExpression literalConstant IntegerLiteral("1") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/genericType.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/genericType.antlrtree.txt index 0c48402d7..8132aade6 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/genericType.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/genericType.antlrtree.txt @@ -172,6 +172,4 @@ File: genericType.kt - 6f45d590bd5f732928aed338b009c4e3 excl EXCL_NO_WS("!") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/inheritFromTwoTraits.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/inheritFromTwoTraits.antlrtree.txt index 8b76702c3..70ab5cb86 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/inheritFromTwoTraits.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/inheritFromTwoTraits.antlrtree.txt @@ -167,6 +167,4 @@ File: inheritFromTwoTraits.kt - 8905c8a552613dbccf38300a055e7ac4 NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/kotlinAndJavaCollections.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/kotlinAndJavaCollections.antlrtree.txt index 4d380b4d9..aa5d5c2dd 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/kotlinAndJavaCollections.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/kotlinAndJavaCollections.antlrtree.txt @@ -83,6 +83,4 @@ File: kotlinAndJavaCollections.kt - 0384dc1ca5988d256cfae9760b6fc698 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/nullableType.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/nullableType.antlrtree.txt index 821e5eb25..b5b60b37f 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/nullableType.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/nullableType.antlrtree.txt @@ -58,6 +58,4 @@ File: nullableType.kt - 81fdf692ed718ecacf73276275794cc8 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/superTraitAndDelegationToTraitImpl.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/superTraitAndDelegationToTraitImpl.antlrtree.txt index fe05e0fc5..f7bf0de63 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/superTraitAndDelegationToTraitImpl.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/superTraitAndDelegationToTraitImpl.antlrtree.txt @@ -259,6 +259,4 @@ File: superTraitAndDelegationToTraitImpl.kt - e1cf93e5be971c0d2cf77c6b943f93f8 simpleUserType simpleIdentifier Identifier("B") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/twoTraitsAndOwnFunction.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/twoTraitsAndOwnFunction.antlrtree.txt index 4c246b2f5..98e32293a 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/twoTraitsAndOwnFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/twoTraitsAndOwnFunction.antlrtree.txt @@ -204,6 +204,4 @@ File: twoTraitsAndOwnFunction.kt - d08aaeacfd6ad65c6ec453eb3f32b6db semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeMappedToJava.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeMappedToJava.antlrtree.txt index 30aadd213..94b44214f 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeMappedToJava.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeMappedToJava.antlrtree.txt @@ -63,6 +63,4 @@ File: typeMappedToJava.kt - dbc3f7641ce3ea3b016587059492d50d LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeParameter.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeParameter.antlrtree.txt index 7b647a654..a7c47d0ad 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeParameter.antlrtree.txt @@ -123,6 +123,4 @@ File: typeParameter.kt - edab7d50ed01bd05c25031107984f1a6 excl EXCL_NO_WS("!") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeParameterWithBound.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeParameterWithBound.antlrtree.txt index c7a0294f0..f695f01d9 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeParameterWithBound.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeParameterWithBound.antlrtree.txt @@ -139,6 +139,4 @@ File: typeParameterWithBound.kt - 28a13955f15b76b3c85c89dc46b95b9a excl EXCL_NO_WS("!") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeParameterWithTwoBounds.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeParameterWithTwoBounds.antlrtree.txt index 502bc89ed..4804b7afe 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeParameterWithTwoBounds.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeParameterWithTwoBounds.antlrtree.txt @@ -221,6 +221,4 @@ File: typeParameterWithTwoBounds.kt - 446fd1d0253001394302c71c28829235 excl EXCL_NO_WS("!") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeParameterWithTwoBoundsInWhere.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeParameterWithTwoBoundsInWhere.antlrtree.txt index 04bd493cb..fab65fba3 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeParameterWithTwoBoundsInWhere.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/erasure/typeParameterWithTwoBoundsInWhere.antlrtree.txt @@ -221,6 +221,4 @@ File: typeParameterWithTwoBoundsInWhere.kt - 446fd1d0253001394302c71c28829235 excl EXCL_NO_WS("!") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/class.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/class.antlrtree.txt index 6b1da043e..bb0e79e72 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/class.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/class.antlrtree.txt @@ -70,6 +70,4 @@ File: class.kt - aa16c070971109f7aee8231805d7379d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/classObject.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/classObject.antlrtree.txt index 06d101325..5e0b5415a 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/classObject.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/classObject.antlrtree.txt @@ -81,6 +81,4 @@ File: classObject.kt - 355f6a585ba0d81b98c760e1223e55a4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/classPropertyInConstructor.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/classPropertyInConstructor.antlrtree.txt index 5e11272f4..5296b43eb 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/classPropertyInConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/classPropertyInConstructor.antlrtree.txt @@ -58,6 +58,4 @@ File: classPropertyInConstructor.kt - 3040a59eef380119c1745aff84176ce6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/functionAndSetter.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/functionAndSetter.antlrtree.txt index b502a2627..5eff76656 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/functionAndSetter.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/functionAndSetter.antlrtree.txt @@ -76,6 +76,4 @@ File: functionAndSetter.kt - 1c0480e0a9a5b9905c5cc698698b1b04 IntegerLiteral("1") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/functionAndVar.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/functionAndVar.antlrtree.txt index 6f639f153..b2d92a489 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/functionAndVar.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/functionAndVar.antlrtree.txt @@ -91,6 +91,4 @@ File: functionAndVar.kt - 8e4eb291fc2131234a22140431f611c5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/localClass.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/localClass.antlrtree.txt index bb35ac05b..423906887 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/localClass.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/localClass.antlrtree.txt @@ -87,6 +87,4 @@ File: localClass.kt - 22f19b4245f1b8a856cc7b1bb3ba4dee semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/localClassInClass.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/localClassInClass.antlrtree.txt index 6a563be9e..6eb631fbe 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/localClassInClass.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/localClassInClass.antlrtree.txt @@ -100,6 +100,4 @@ File: localClassInClass.kt - 722c93e0f0b920bbf2204e946eadf7c7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/nestedClass.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/nestedClass.antlrtree.txt index c0d426410..be5e57ac5 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/nestedClass.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/nestedClass.antlrtree.txt @@ -83,6 +83,4 @@ File: nestedClass.kt - 02a31111d2b6a82a81cbdf609b8034c8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/object.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/object.antlrtree.txt index ffa12a8bc..90633162d 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/object.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/object.antlrtree.txt @@ -70,6 +70,4 @@ File: object.kt - af873cbec67a737275cfad5bf628e95d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/objectExpression.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/objectExpression.antlrtree.txt index 2dabf86e8..7015a9446 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/objectExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/objectExpression.antlrtree.txt @@ -94,6 +94,4 @@ File: objectExpression.kt - 4174e32b7588f4e8796a127e5c76b94f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/objectExpressionInConstructor.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/objectExpressionInConstructor.antlrtree.txt index fdb983f28..1c20e38bf 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/objectExpressionInConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/objectExpressionInConstructor.antlrtree.txt @@ -102,6 +102,4 @@ File: objectExpressionInConstructor.kt - 08aabb48c5a3ea6c69ccbe219df13db2 RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/topLevel.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/topLevel.antlrtree.txt index e7fa23979..44ac6e10b 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/topLevel.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/topLevel.antlrtree.txt @@ -57,6 +57,4 @@ File: topLevel.kt - 1b61ee555825e40dca247e40f6e7a3ff primaryExpression literalConstant IntegerLiteral("1") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/topLevelDifferentFiles.a.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/topLevelDifferentFiles.a.antlrtree.txt index 0b0c2d93a..cce55c34a 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/topLevelDifferentFiles.a.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/topLevelDifferentFiles.a.antlrtree.txt @@ -29,6 +29,4 @@ File: topLevelDifferentFiles.a.kt - 582ceaa38b1947385167db7d65b3e4d6 IntegerLiteral("1") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/topLevelDifferentFiles.b.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/topLevelDifferentFiles.b.antlrtree.txt index 970d299bd..14aab407b 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/topLevelDifferentFiles.b.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/topLevelDifferentFiles.b.antlrtree.txt @@ -30,6 +30,4 @@ File: topLevelDifferentFiles.b.kt - 200d84c4818f7f0f8e2b05eefe066574 primaryExpression literalConstant IntegerLiteral("1") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/topLevelGetter.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/topLevelGetter.antlrtree.txt index a15303774..80d1b3e2f 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/topLevelGetter.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/topLevelGetter.antlrtree.txt @@ -71,6 +71,4 @@ File: topLevelGetter.kt - f4a33b0707fde87b926f4620356e2bb4 primaryExpression literalConstant IntegerLiteral("1") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/trait.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/trait.antlrtree.txt index d0b3d4447..aa9086049 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/trait.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/trait.antlrtree.txt @@ -84,6 +84,4 @@ File: trait.kt - fa1c1c0d5e1f4aa50e5ea1f731405a88 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/withErrorTypes.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/withErrorTypes.antlrtree.txt index 8f5da25ea..53af11169 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/withErrorTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/functionAndProperty/withErrorTypes.antlrtree.txt @@ -45,6 +45,4 @@ File: withErrorTypes.kt - 17849ec92edb4a094ad0646c7ab43e48 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/missingNames.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/missingNames.antlrtree.txt index cea2e52c2..993ef837f 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/missingNames.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/missingNames.antlrtree.txt @@ -1,4 +1,4 @@ -File: missingNames.kt - e48dfdf21687d157ce9b47ba210b2142 (WITH_ERRORS) +File: missingNames.kt - 650021b2c804154cea818e323c08a01d (WITH_ERRORS) NL("\n") packageHeader importList @@ -260,7 +260,4 @@ File: missingNames.kt - e48dfdf21687d157ce9b47ba210b2142 (WITH_ERRORS) NL("\n") RCURL("}") NL("\n") - NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/classObject.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/classObject.antlrtree.txt index 5e69ee690..697faf0b3 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/classObject.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/classObject.antlrtree.txt @@ -1,4 +1,5 @@ -File: classObject.kt - 7edb51c12a36a6ab5ac18a96f199f557 +File: classObject.kt - 88aa863a688b9487d946054323159955 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/classObjectCopiedField.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/classObjectCopiedField.antlrtree.txt index 5110919ca..fadf9c7f9 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/classObjectCopiedField.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/classObjectCopiedField.antlrtree.txt @@ -105,6 +105,4 @@ File: classObjectCopiedField.kt - 278830d302a3590cd3fcb223c611db4e IntegerLiteral("1") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/dataClassCopy.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/dataClassCopy.antlrtree.txt index 393c484c3..5527967ae 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/dataClassCopy.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/dataClassCopy.antlrtree.txt @@ -141,6 +141,4 @@ File: dataClassCopy.kt - f27f4debc03d38631eb46e9b8a2a5860 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/delegationBy.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/delegationBy.antlrtree.txt index 50374e78b..3080b99a9 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/delegationBy.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/delegationBy.antlrtree.txt @@ -103,6 +103,4 @@ File: delegationBy.kt - aba609ea87d14b5eb5152329f29de168 NullLiteral("null") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/enum.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/enum.antlrtree.txt index c68d8c67f..3328ad617 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/enum.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/enum.antlrtree.txt @@ -131,6 +131,4 @@ File: enum.kt - 986616103e04e9ee8cf720f14b5446c7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/innerClassField.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/innerClassField.antlrtree.txt index 97ead4f64..e3870590b 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/innerClassField.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/innerClassField.antlrtree.txt @@ -68,6 +68,4 @@ File: innerClassField.kt - 3341976a7da9a2cb3c07353a2b9545e7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/instance.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/instance.antlrtree.txt index 5e008bcbd..be633cc41 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/instance.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/instance.antlrtree.txt @@ -51,6 +51,4 @@ File: instance.kt - bbb5596671c84d9088cd950ba7a87523 EXCL_NO_WS("!") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/propertyMetadataCache.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/propertyMetadataCache.antlrtree.txt index 2c5adf78a..2c5c01d13 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/propertyMetadataCache.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/specialNames/propertyMetadataCache.antlrtree.txt @@ -276,6 +276,4 @@ File: propertyMetadataCache.kt - 4f9188a2e37b05dc7e59abba259ea569 excl EXCL_NO_WS("!") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/traitImpl/oneTrait.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/traitImpl/oneTrait.antlrtree.txt index 87eeb10de..5abe31ee5 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/traitImpl/oneTrait.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/traitImpl/oneTrait.antlrtree.txt @@ -92,6 +92,4 @@ File: oneTrait.kt - ec230bda2bbd85a4005e3a35c254494d IntegerLiteral("1") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/duplicateJvmSignature/traitImpl/twoTraits.antlrtree.txt b/grammar/testData/diagnostics/duplicateJvmSignature/traitImpl/twoTraits.antlrtree.txt index 2ccd9651d..05d1e5e65 100644 --- a/grammar/testData/diagnostics/duplicateJvmSignature/traitImpl/twoTraits.antlrtree.txt +++ b/grammar/testData/diagnostics/duplicateJvmSignature/traitImpl/twoTraits.antlrtree.txt @@ -127,6 +127,4 @@ File: twoTraits.kt - 38ab98eadff36575c6c6b28d78f511f4 NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dynamicTypes/delegationBy.antlrtree.txt b/grammar/testData/diagnostics/dynamicTypes/delegationBy.antlrtree.txt index 638c3deba..d6adc3539 100644 --- a/grammar/testData/diagnostics/dynamicTypes/delegationBy.antlrtree.txt +++ b/grammar/testData/diagnostics/dynamicTypes/delegationBy.antlrtree.txt @@ -1,4 +1,5 @@ -File: delegationBy.kt - 508f109b28f3e7a4004975d10a3d514c +File: delegationBy.kt - 45d2d2a5343409dee86b2a0046d8b1fa + NL("\n") packageHeader importList topLevelObject @@ -74,6 +75,4 @@ File: delegationBy.kt - 508f109b28f3e7a4004975d10a3d514c primaryExpression simpleIdentifier Identifier("d") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/dynamicTypes/unsupported.antlrtree.txt b/grammar/testData/diagnostics/dynamicTypes/unsupported.antlrtree.txt index dd7666a7b..2ab1c6de6 100644 --- a/grammar/testData/diagnostics/dynamicTypes/unsupported.antlrtree.txt +++ b/grammar/testData/diagnostics/dynamicTypes/unsupported.antlrtree.txt @@ -1,4 +1,5 @@ -File: unsupported.kt - a90406d2a62eb57cb1c7ebd67255dd52 +File: unsupported.kt - cbf5f4f7bb027093ff0680a1a815347e + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/enum/AbstractEnum.antlrtree.txt b/grammar/testData/diagnostics/enum/AbstractEnum.antlrtree.txt index 9847ac075..73b7ebdd9 100644 --- a/grammar/testData/diagnostics/enum/AbstractEnum.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/AbstractEnum.antlrtree.txt @@ -1,4 +1,5 @@ -File: AbstractEnum.kt - 85c6205162e95c28b2242864d6c4efac +File: AbstractEnum.kt - c6e654162cc1a2914dd9c3258c57c086 + NL("\n") packageHeader PACKAGE("package") identifier @@ -29,6 +30,4 @@ File: AbstractEnum.kt - 85c6205162e95c28b2242864d6c4efac LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/AbstractInEnum.antlrtree.txt b/grammar/testData/diagnostics/enum/AbstractInEnum.antlrtree.txt index ed8947bf4..1fb3f5700 100644 --- a/grammar/testData/diagnostics/enum/AbstractInEnum.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/AbstractInEnum.antlrtree.txt @@ -1,4 +1,4 @@ -File: AbstractInEnum.kt - f94918577e02602635a18a070840d995 (WITH_ERRORS) +File: AbstractInEnum.kt - 3122735d29c6652627ec7162de9bb560 (WITH_ERRORS) packageHeader PACKAGE("package") identifier @@ -1229,5 +1229,5 @@ File: AbstractInEnum.kt - f94918577e02602635a18a070840d995 (WITH_ERRORS) NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/enum/AbstractOverrideInEnum.antlrtree.txt b/grammar/testData/diagnostics/enum/AbstractOverrideInEnum.antlrtree.txt index c09d92140..539aadfc4 100644 --- a/grammar/testData/diagnostics/enum/AbstractOverrideInEnum.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/AbstractOverrideInEnum.antlrtree.txt @@ -101,6 +101,4 @@ File: AbstractOverrideInEnum.kt - efc1176f099f53a8ee920f3342764358 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/ExplicitConstructorCall.antlrtree.txt b/grammar/testData/diagnostics/enum/ExplicitConstructorCall.antlrtree.txt index cf1e1afef..260b4833d 100644 --- a/grammar/testData/diagnostics/enum/ExplicitConstructorCall.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/ExplicitConstructorCall.antlrtree.txt @@ -176,6 +176,4 @@ File: ExplicitConstructorCall.kt - 30b92557e8f42207c45d1aef186768f7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/InsideEntryConstructorCall.antlrtree.txt b/grammar/testData/diagnostics/enum/InsideEntryConstructorCall.antlrtree.txt index 7372f99fd..163f49bac 100644 --- a/grammar/testData/diagnostics/enum/InsideEntryConstructorCall.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/InsideEntryConstructorCall.antlrtree.txt @@ -278,6 +278,4 @@ File: InsideEntryConstructorCall.kt - 4b890be10cf4aaa06bd2c6c421c2d628 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/InsideSecondaryConstructorCall.antlrtree.txt b/grammar/testData/diagnostics/enum/InsideSecondaryConstructorCall.antlrtree.txt index 83774adcf..c784983b7 100644 --- a/grammar/testData/diagnostics/enum/InsideSecondaryConstructorCall.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/InsideSecondaryConstructorCall.antlrtree.txt @@ -249,6 +249,4 @@ File: InsideSecondaryConstructorCall.kt - 3e3257322d29a9871d685aec3dfac1b6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/SecondaryConstructorCall.antlrtree.txt b/grammar/testData/diagnostics/enum/SecondaryConstructorCall.antlrtree.txt index 8e19fc366..42d0acc03 100644 --- a/grammar/testData/diagnostics/enum/SecondaryConstructorCall.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/SecondaryConstructorCall.antlrtree.txt @@ -156,6 +156,4 @@ File: SecondaryConstructorCall.kt - 587e1cba51b46809a63d32b24f99ba5c RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/classObjectInEnumPrivate.antlrtree.txt b/grammar/testData/diagnostics/enum/classObjectInEnumPrivate.antlrtree.txt index a858da819..d1d8a3ccf 100644 --- a/grammar/testData/diagnostics/enum/classObjectInEnumPrivate.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/classObjectInEnumPrivate.antlrtree.txt @@ -209,6 +209,4 @@ File: classObjectInEnumPrivate.kt - c5fb67a96d3c03fa9cece0a4c825906b primaryExpression simpleIdentifier Identifier("E") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/commonSupertype.antlrtree.txt b/grammar/testData/diagnostics/enum/commonSupertype.antlrtree.txt index 57498e8bc..bcb0b4964 100644 --- a/grammar/testData/diagnostics/enum/commonSupertype.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/commonSupertype.antlrtree.txt @@ -143,6 +143,4 @@ File: commonSupertype.kt - 0217a3c0eb3ffdf623e8abc140e97812 DOT(".") simpleIdentifier Identifier("B") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/constructorWithDefaultParametersOnly.antlrtree.txt b/grammar/testData/diagnostics/enum/constructorWithDefaultParametersOnly.antlrtree.txt index dacb631ec..d072b953a 100644 --- a/grammar/testData/diagnostics/enum/constructorWithDefaultParametersOnly.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/constructorWithDefaultParametersOnly.antlrtree.txt @@ -439,6 +439,4 @@ File: constructorWithDefaultParametersOnly.kt - 108a48135405e117c8b8d0b1221d97d1 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/declaringClass.antlrtree.txt b/grammar/testData/diagnostics/enum/declaringClass.antlrtree.txt new file mode 100644 index 000000000..ea607a6ad --- /dev/null +++ b/grammar/testData/diagnostics/enum/declaringClass.antlrtree.txt @@ -0,0 +1,223 @@ +File: declaringClass.kt - 4ded203a62d4c4187dfa08fc0565274f + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("java") + DOT(".") + simpleIdentifier + Identifier("util") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Enum") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("EnumSet") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("noneOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("values") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("first") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("declaringClass") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("EnumSet") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("noneOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("values") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("first") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getDeclaringClass") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/enum/entryShouldBeOfEnumType.antlrtree.txt b/grammar/testData/diagnostics/enum/entryShouldBeOfEnumType.antlrtree.txt index 5135a5189..0bf03f20a 100644 --- a/grammar/testData/diagnostics/enum/entryShouldBeOfEnumType.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/entryShouldBeOfEnumType.antlrtree.txt @@ -1,4 +1,4 @@ -File: entryShouldBeOfEnumType.kt - c4679cd9865821d6724ff6bb666fa0ef +File: entryShouldBeOfEnumType.kt - 489263d23bf01d59e3306d815b70bf12 packageHeader importList topLevelObject @@ -110,5 +110,5 @@ File: entryShouldBeOfEnumType.kt - c4679cd9865821d6724ff6bb666fa0ef NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/enum/enumEntryCannotHaveClassObject.antlrtree.txt b/grammar/testData/diagnostics/enum/enumEntryCannotHaveClassObject.antlrtree.txt index dfc111432..1de27d32b 100644 --- a/grammar/testData/diagnostics/enum/enumEntryCannotHaveClassObject.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/enumEntryCannotHaveClassObject.antlrtree.txt @@ -1,4 +1,5 @@ -File: enumEntryCannotHaveClassObject.kt - 2575a73c8559d649f55dc6c6b3a0eaf7 +File: enumEntryCannotHaveClassObject.kt - 1554a68a523696bcd85e1b9428a4b39f + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/enum/enumEntryInAbstractEnum.antlrtree.txt b/grammar/testData/diagnostics/enum/enumEntryInAbstractEnum.antlrtree.txt index 0e711b1da..d01068e6a 100644 --- a/grammar/testData/diagnostics/enum/enumEntryInAbstractEnum.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/enumEntryInAbstractEnum.antlrtree.txt @@ -1,4 +1,5 @@ -File: enumEntryInAbstractEnum.kt - 820ea39b7b402ccce48d32ca652ef62d +File: enumEntryInAbstractEnum.kt - 4a798b61e6a7ce65469731bfa5fac50c + NL("\n") packageHeader importList topLevelObject @@ -158,6 +159,4 @@ File: enumEntryInAbstractEnum.kt - 820ea39b7b402ccce48d32ca652ef62d Identifier("String") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/enumImplementingTrait.antlrtree.txt b/grammar/testData/diagnostics/enum/enumImplementingTrait.antlrtree.txt index c00e878e6..fa8d8cb25 100644 --- a/grammar/testData/diagnostics/enum/enumImplementingTrait.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/enumImplementingTrait.antlrtree.txt @@ -183,6 +183,4 @@ File: enumImplementingTrait.kt - e7de5f6bc00189a5201495f643f5d604 Identifier("E2") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/enumIsAssignableToBuiltInEnum.antlrtree.txt b/grammar/testData/diagnostics/enum/enumIsAssignableToBuiltInEnum.antlrtree.txt index e2b24f586..d90dde02b 100644 --- a/grammar/testData/diagnostics/enum/enumIsAssignableToBuiltInEnum.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/enumIsAssignableToBuiltInEnum.antlrtree.txt @@ -196,6 +196,4 @@ File: enumIsAssignableToBuiltInEnum.kt - 6396cf8549625bfce8b8ca2511d7f347 simpleIdentifier Identifier("CLASS") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/enumModifier.antlrtree.txt b/grammar/testData/diagnostics/enum/enumModifier.antlrtree.txt index bb6d1d78c..072f64e4e 100644 --- a/grammar/testData/diagnostics/enum/enumModifier.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/enumModifier.antlrtree.txt @@ -1,4 +1,5 @@ -File: enumModifier.kt - e4083f706f525cda369e109392d1365f +File: enumModifier.kt - a2195d5fc86890eafef2a1640d40b929 + NL("\n") packageHeader importList topLevelObject @@ -178,6 +179,4 @@ File: enumModifier.kt - e4083f706f525cda369e109392d1365f primaryExpression literalConstant IntegerLiteral("0") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/enumStarImport.user.antlrtree.txt b/grammar/testData/diagnostics/enum/enumStarImport.user.antlrtree.txt index bca3dcab6..10f1af8ad 100644 --- a/grammar/testData/diagnostics/enum/enumStarImport.user.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/enumStarImport.user.antlrtree.txt @@ -227,6 +227,4 @@ File: enumStarImport.user.kt - 2e89d09e9b3f06a93dc539fac839a7f1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/enumSubjectTypeCheck.antlrtree.txt b/grammar/testData/diagnostics/enum/enumSubjectTypeCheck.antlrtree.txt index 0e6cbbb41..5411bce4a 100644 --- a/grammar/testData/diagnostics/enum/enumSubjectTypeCheck.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/enumSubjectTypeCheck.antlrtree.txt @@ -1,4 +1,4 @@ -File: enumSubjectTypeCheck.kt - a6c2ecc6d40617527003c780cb65256f +File: enumSubjectTypeCheck.kt - 17a0269c3968017529785dff56dc49e3 NL("\n") NL("\n") packageHeader @@ -961,5 +961,5 @@ File: enumSubjectTypeCheck.kt - a6c2ecc6d40617527003c780cb65256f NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/enum/enumWithAnnotationKeyword.antlrtree.txt b/grammar/testData/diagnostics/enum/enumWithAnnotationKeyword.antlrtree.txt index 4e39ea00f..0336c091c 100644 --- a/grammar/testData/diagnostics/enum/enumWithAnnotationKeyword.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/enumWithAnnotationKeyword.antlrtree.txt @@ -1,4 +1,5 @@ -File: enumWithAnnotationKeyword.kt - 36a9b21b3a5b34e9a8b71ca0dd9cd0d1 +File: enumWithAnnotationKeyword.kt - ae50328fd2c04d1453fc506cdc619106 + NL("\n") packageHeader importList topLevelObject @@ -23,6 +24,4 @@ File: enumWithAnnotationKeyword.kt - 36a9b21b3a5b34e9a8b71ca0dd9cd0d1 Identifier("D") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/enumWithEmptyName.antlrtree.txt b/grammar/testData/diagnostics/enum/enumWithEmptyName.antlrtree.txt index bfe4dec13..6d983cf6e 100644 --- a/grammar/testData/diagnostics/enum/enumWithEmptyName.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/enumWithEmptyName.antlrtree.txt @@ -1,4 +1,4 @@ -File: enumWithEmptyName.kt - e6aa03c436fec91ad66413325c11c82d (WITH_ERRORS) +File: enumWithEmptyName.kt - aba86b761021fcfb56078a282886463f (WITH_ERRORS) NL("\n") packageHeader importList @@ -13,7 +13,6 @@ File: enumWithEmptyName.kt - e6aa03c436fec91ad66413325c11c82d (WITH_ERRORS) LCURL("{") NL("\n") RCURL("}") + NL("\n") simpleIdentifier - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/extendingEnumDirectly.antlrtree.txt b/grammar/testData/diagnostics/enum/extendingEnumDirectly.antlrtree.txt index 06b5dd9df..9399d38b8 100644 --- a/grammar/testData/diagnostics/enum/extendingEnumDirectly.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/extendingEnumDirectly.antlrtree.txt @@ -1,4 +1,5 @@ -File: extendingEnumDirectly.kt - eed866e5d52b7b0cee6380ba509c301c +File: extendingEnumDirectly.kt - cd0fe754eb8d8a47ec60003fe35d9745 + NL("\n") packageHeader importList topLevelObject @@ -244,6 +245,4 @@ File: extendingEnumDirectly.kt - eed866e5d52b7b0cee6380ba509c301c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/extensionNamedAsEnumEntry.antlrtree.txt b/grammar/testData/diagnostics/enum/extensionNamedAsEnumEntry.antlrtree.txt index 32f463f10..d32be07bc 100644 --- a/grammar/testData/diagnostics/enum/extensionNamedAsEnumEntry.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/extensionNamedAsEnumEntry.antlrtree.txt @@ -152,6 +152,4 @@ File: extensionNamedAsEnumEntry.kt - ed21b8c4bdb1285a11ddfe52a07a5584 simpleIdentifier Identifier("entry") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/ifEnumEntry.antlrtree.txt b/grammar/testData/diagnostics/enum/ifEnumEntry.antlrtree.txt index d5baab1c8..0f5b1352c 100644 --- a/grammar/testData/diagnostics/enum/ifEnumEntry.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/ifEnumEntry.antlrtree.txt @@ -148,6 +148,4 @@ File: ifEnumEntry.kt - 64ca066939b44d8deb4db2271ab0fae4 primaryExpression literalConstant BooleanLiteral("false") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/importEnumFromJava.test.antlrtree.txt b/grammar/testData/diagnostics/enum/importEnumFromJava.test.antlrtree.txt index 0bd1c2fb5..a7fb9adac 100644 --- a/grammar/testData/diagnostics/enum/importEnumFromJava.test.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/importEnumFromJava.test.antlrtree.txt @@ -54,6 +54,4 @@ File: importEnumFromJava.test.kt - c8d2538b883380ae47f3599a8eb34811 simpleIdentifier Identifier("SECONDS") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/incompatibleEnums.antlrtree.txt b/grammar/testData/diagnostics/enum/incompatibleEnums.antlrtree.txt index 1bc4bbe62..76cf346a9 100644 --- a/grammar/testData/diagnostics/enum/incompatibleEnums.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/incompatibleEnums.antlrtree.txt @@ -3553,6 +3553,4 @@ File: incompatibleEnums.kt - 27dc4ceb710d0df3b0c4208dc771553f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/incompatibleEnums_1_4.antlrtree.txt b/grammar/testData/diagnostics/enum/incompatibleEnums_1_4.antlrtree.txt index ca3bc6d19..2aa923ce1 100644 --- a/grammar/testData/diagnostics/enum/incompatibleEnums_1_4.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/incompatibleEnums_1_4.antlrtree.txt @@ -3553,6 +3553,4 @@ File: incompatibleEnums_1_4.kt - eb3780cc38a158d250ea65ac64c4314b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/inheritFromEnumEntry.antlrtree.txt b/grammar/testData/diagnostics/enum/inheritFromEnumEntry.antlrtree.txt index af782d677..a77ab5def 100644 --- a/grammar/testData/diagnostics/enum/inheritFromEnumEntry.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/inheritFromEnumEntry.antlrtree.txt @@ -1,4 +1,5 @@ -File: inheritFromEnumEntry.kt - 9154d6a201eb4ddea8e9688f842966d0 +File: inheritFromEnumEntry.kt - b3cf1c11f588d69e0c70d8227d2d7ab4 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/enum/inner/redeclarationInClassObject.antlrtree.txt b/grammar/testData/diagnostics/enum/inner/redeclarationInClassObject.antlrtree.txt index 3d9019495..c85c5a717 100644 --- a/grammar/testData/diagnostics/enum/inner/redeclarationInClassObject.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/inner/redeclarationInClassObject.antlrtree.txt @@ -67,6 +67,4 @@ File: redeclarationInClassObject.kt - 301e8f1ef1c2e8d0c8b8138b7f104539 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/interfaceWithEnumKeyword.antlrtree.txt b/grammar/testData/diagnostics/enum/interfaceWithEnumKeyword.antlrtree.txt index f21ca3cf8..916041f2f 100644 --- a/grammar/testData/diagnostics/enum/interfaceWithEnumKeyword.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/interfaceWithEnumKeyword.antlrtree.txt @@ -51,6 +51,4 @@ File: interfaceWithEnumKeyword.kt - 7ff5efb9b21037008e0f81d8fbcdb2ba Identifier("Int") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/isEnumEntry.antlrtree.txt b/grammar/testData/diagnostics/enum/isEnumEntry.antlrtree.txt index b5988f44c..b7fe116f4 100644 --- a/grammar/testData/diagnostics/enum/isEnumEntry.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/isEnumEntry.antlrtree.txt @@ -87,6 +87,4 @@ File: isEnumEntry.kt - 766f2809ba7c9942daf50555237ffec6 simpleUserType simpleIdentifier Identifier("FIRST") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/kt8972_cloneNotAllowed.antlrtree.txt b/grammar/testData/diagnostics/enum/kt8972_cloneNotAllowed.antlrtree.txt index e80b8544a..e24cea4ff 100644 --- a/grammar/testData/diagnostics/enum/kt8972_cloneNotAllowed.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/kt8972_cloneNotAllowed.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt8972_cloneNotAllowed.kt - 5912020e87e584c1cbd9b628aebbcc52 - NL("\n") +File: kt8972_cloneNotAllowed.kt - f3143d34f0d766b4a1af6d144af40bb4 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/enum/modifiersOnEnumEntry.antlrtree.txt b/grammar/testData/diagnostics/enum/modifiersOnEnumEntry.antlrtree.txt index 112ff75be..32600a2f5 100644 --- a/grammar/testData/diagnostics/enum/modifiersOnEnumEntry.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/modifiersOnEnumEntry.antlrtree.txt @@ -1,4 +1,5 @@ -File: modifiersOnEnumEntry.kt - cf68ed21fccad0a1bcb18dffd9c8c4e1 (WITH_ERRORS) +File: modifiersOnEnumEntry.kt - a20cdb95c592a754302662bc66907ff5 (WITH_ERRORS) + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/enum/openMemberInEnum.antlrtree.txt b/grammar/testData/diagnostics/enum/openMemberInEnum.antlrtree.txt index b50987afe..36e5e85d2 100644 --- a/grammar/testData/diagnostics/enum/openMemberInEnum.antlrtree.txt +++ b/grammar/testData/diagnostics/enum/openMemberInEnum.antlrtree.txt @@ -317,6 +317,4 @@ File: openMemberInEnum.kt - 126835737879eb4d18fd396a999d09a9 IntegerLiteral("3") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/enum/typeCompatibility.antlrtree.txt b/grammar/testData/diagnostics/enum/typeCompatibility.antlrtree.txt new file mode 100644 index 000000000..ab786cb7c --- /dev/null +++ b/grammar/testData/diagnostics/enum/typeCompatibility.antlrtree.txt @@ -0,0 +1,2513 @@ +File: typeCompatibility.kt - 1e81823cc6264a7a56afec38e570e26e + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AIn") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AOut") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A2") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("BIn") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("BOut") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("C") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("D") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("E") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("T") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("TSub1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("T") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("TSub2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("T") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("string") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("int") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("strings") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("ints") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("aString") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("aInt") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("aOutString") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("aOutInt") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("aOutString2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AOut") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("aOutInt2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AOut") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("aInString") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("aInInt") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("aInString2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AIn") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("aInInt2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AIn") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("bString") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("bInt") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("bOutString") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("bOutInt") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("bOutString2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BOut") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("bOutInt2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BOut") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("bInString") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("bInInt") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("bInString2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BIn") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("bInInt2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BIn") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("ac") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("ad") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("tSub1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TSub1") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("tSub2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TSub2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("aListInt") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("aSetInt") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Set") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("aListString") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("mutableListAny") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("listString") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("b") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("string") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("int") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("strings") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ints") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aInt") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aOutString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aOutInt") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aInString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aInInt") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aOutString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aInInt") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aInString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aOutInt") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aOutString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aInt") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aInString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aInt") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aOutString2") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aOutInt2") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aInString2") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aInInt2") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aOutString2") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aInInt2") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aInString2") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aOutInt2") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a2") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bInt") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bOutString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bOutInt") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bInString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bInInt") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bOutString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bInInt") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bInString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bOutInt") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bOutString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bInt") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bInString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bInt") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bOutString2") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bOutInt2") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bInString2") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bInInt2") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bOutString2") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bInInt2") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bInString2") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bOutInt2") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("e") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ac") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ad") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tSub1") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("tSub2") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bString") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aListInt") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aSetInt") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aSetInt") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aListString") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aListString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aListInt") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aListString") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bString") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aListString") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mutableListAny") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listString") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/evaluate/binaryMinusDepOnExpType.antlrtree.txt b/grammar/testData/diagnostics/evaluate/binaryMinusDepOnExpType.antlrtree.txt index 73c21a0e5..c69a93389 100644 --- a/grammar/testData/diagnostics/evaluate/binaryMinusDepOnExpType.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/binaryMinusDepOnExpType.antlrtree.txt @@ -1,4 +1,5 @@ -File: binaryMinusDepOnExpType.kt - 5a306d6d00df533ad7fc5493c82d1659 +File: binaryMinusDepOnExpType.kt - c4ea7d87f0615dd8fb6a27410447008d + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/evaluate/binaryMinusIndepWoExpType.antlrtree.txt b/grammar/testData/diagnostics/evaluate/binaryMinusIndepWoExpType.antlrtree.txt index 34c2b1e48..fc6cb8643 100644 --- a/grammar/testData/diagnostics/evaluate/binaryMinusIndepWoExpType.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/binaryMinusIndepWoExpType.antlrtree.txt @@ -1313,6 +1313,4 @@ File: binaryMinusIndepWoExpType.kt - de39f2f3fec9e4d7c6bc12fe1f2039c6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/binaryMinusIndependentExpType.antlrtree.txt b/grammar/testData/diagnostics/evaluate/binaryMinusIndependentExpType.antlrtree.txt index 2b4da45ff..d5222e6c5 100644 --- a/grammar/testData/diagnostics/evaluate/binaryMinusIndependentExpType.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/binaryMinusIndependentExpType.antlrtree.txt @@ -1,4 +1,4 @@ -File: binaryMinusIndependentExpType.kt - 2e6d108ae1fe52e35585edbba8aae04f +File: binaryMinusIndependentExpType.kt - 8c244fc055cc576c388402de9a1bc9e8 packageHeader importList topLevelObject @@ -1040,6 +1040,5 @@ File: binaryMinusIndependentExpType.kt - 2e6d108ae1fe52e35585edbba8aae04f valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/customExtensionOverKotlinExtensionInConst.antlrtree.txt b/grammar/testData/diagnostics/evaluate/customExtensionOverKotlinExtensionInConst.antlrtree.txt index 7c2db2db2..15cb2953c 100644 --- a/grammar/testData/diagnostics/evaluate/customExtensionOverKotlinExtensionInConst.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/customExtensionOverKotlinExtensionInConst.antlrtree.txt @@ -1,4 +1,5 @@ -File: customExtensionOverKotlinExtensionInConst.kt - 43ef352d3cacc6a973c128dbe67e06dd +File: customExtensionOverKotlinExtensionInConst.kt - 2e991ab69c37d1bd1b5933fc7f703a6c + NL("\n") NL("\n") NL("\n") packageHeader @@ -253,6 +254,4 @@ File: customExtensionOverKotlinExtensionInConst.kt - 43ef352d3cacc6a973c128dbe67 IntegerLiteral("3") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/divisionByZero.antlrtree.txt b/grammar/testData/diagnostics/evaluate/divisionByZero.antlrtree.txt index 172775aef..1fa8a3e5d 100644 --- a/grammar/testData/diagnostics/evaluate/divisionByZero.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/divisionByZero.antlrtree.txt @@ -1,5 +1,4 @@ -File: divisionByZero.kt - 36236b661a44c799caf69a8a88313905 - NL("\n") +File: divisionByZero.kt - 008ad7f0b077f69ece60837a661e879f NL("\n") NL("\n") packageHeader @@ -455,6 +454,112 @@ File: divisionByZero.kt - 36236b661a44c799caf69a8a88313905 RPAREN(")") NL("\n") NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0.0f") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0.0") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("1L") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") topLevelObject declaration propertyDeclaration @@ -590,5 +695,5 @@ File: divisionByZero.kt - 36236b661a44c799caf69a8a88313905 Identifier("Int") RPAREN(")") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/float.antlrtree.txt b/grammar/testData/diagnostics/evaluate/float.antlrtree.txt index 5bcd49d20..6eb90ecd0 100644 --- a/grammar/testData/diagnostics/evaluate/float.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/float.antlrtree.txt @@ -276,6 +276,4 @@ File: float.kt - 74882858c37bb00077a8da98dbfa94c9 RealLiteral("1.0e-1f") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/floatLiteralOutOfRange.antlrtree.txt b/grammar/testData/diagnostics/evaluate/floatLiteralOutOfRange.antlrtree.txt index b777742f6..5b29c206c 100644 --- a/grammar/testData/diagnostics/evaluate/floatLiteralOutOfRange.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/floatLiteralOutOfRange.antlrtree.txt @@ -404,6 +404,4 @@ File: floatLiteralOutOfRange.kt - 57d4fa319f3a18bb4926f7fc1b28a928 RealLiteral("0.000000000000000000000000000000000000001000000000000000000000000") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/infixFunOverBuiltinMemberInConst.antlrtree.txt b/grammar/testData/diagnostics/evaluate/infixFunOverBuiltinMemberInConst.antlrtree.txt index f09b272c5..0058f7753 100644 --- a/grammar/testData/diagnostics/evaluate/infixFunOverBuiltinMemberInConst.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/infixFunOverBuiltinMemberInConst.antlrtree.txt @@ -1,4 +1,5 @@ -File: infixFunOverBuiltinMemberInConst.kt - 3ec6241ca2754207f2e372d2b6f8a371 +File: infixFunOverBuiltinMemberInConst.kt - fee00adba2753eba2992d8f1b2eee7f8 + NL("\n") NL("\n") NL("\n") packageHeader @@ -371,6 +372,4 @@ File: infixFunOverBuiltinMemberInConst.kt - 3ec6241ca2754207f2e372d2b6f8a371 IntegerLiteral("3") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/intOverflow.antlrtree.txt b/grammar/testData/diagnostics/evaluate/intOverflow.antlrtree.txt index 21aa3466b..e7b2bfc9d 100644 --- a/grammar/testData/diagnostics/evaluate/intOverflow.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/intOverflow.antlrtree.txt @@ -3094,6 +3094,4 @@ File: intOverflow.kt - fe6d98c9625a066c848e5f36bdd31bc3 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/intOverflowWithJavaProperties.A.antlrtree.txt b/grammar/testData/diagnostics/evaluate/intOverflowWithJavaProperties.A.antlrtree.txt index 9b03b7afb..da76bdaa7 100644 --- a/grammar/testData/diagnostics/evaluate/intOverflowWithJavaProperties.A.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/intOverflowWithJavaProperties.A.antlrtree.txt @@ -206,6 +206,4 @@ File: intOverflowWithJavaProperties.A.kt - 6e5ffa13f05341d6d9db299d9ae081a1 primaryExpression literalConstant IntegerLiteral("1") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/integer.antlrtree.txt b/grammar/testData/diagnostics/evaluate/integer.antlrtree.txt index 4635dccd5..77b7ffd54 100644 --- a/grammar/testData/diagnostics/evaluate/integer.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/integer.antlrtree.txt @@ -340,6 +340,4 @@ File: integer.kt - f985881c591adb84a73f1df07f97a93b primaryExpression literalConstant LongLiteral("0B1L") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/longOverflow.antlrtree.txt b/grammar/testData/diagnostics/evaluate/longOverflow.antlrtree.txt index a8615f974..cdcea8be7 100644 --- a/grammar/testData/diagnostics/evaluate/longOverflow.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/longOverflow.antlrtree.txt @@ -2447,6 +2447,4 @@ File: longOverflow.kt - 5f8fa4219345be3d2109162e4f0ffd95 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/numberBinaryOperations.antlrtree.txt b/grammar/testData/diagnostics/evaluate/numberBinaryOperations.antlrtree.txt index cb0b8d0b7..5467c2237 100644 --- a/grammar/testData/diagnostics/evaluate/numberBinaryOperations.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/numberBinaryOperations.antlrtree.txt @@ -1,4 +1,5 @@ -File: numberBinaryOperations.kt - 35e1a44f9c09a84e96b94d08f5060bd5 +File: numberBinaryOperations.kt - 392f4210939ca193a1752a5cb63866dc + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/evaluate/numberBinaryOperationsCall.antlrtree.txt b/grammar/testData/diagnostics/evaluate/numberBinaryOperationsCall.antlrtree.txt index fbec877a2..27fa66383 100644 --- a/grammar/testData/diagnostics/evaluate/numberBinaryOperationsCall.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/numberBinaryOperationsCall.antlrtree.txt @@ -1,4 +1,5 @@ -File: numberBinaryOperationsCall.kt - 528831974a60c2acb48acdef3748ca1c +File: numberBinaryOperationsCall.kt - 32a9d486e5a8422f38f64dd3e4374176 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/evaluate/numberBinaryOperationsInfixCall.antlrtree.txt b/grammar/testData/diagnostics/evaluate/numberBinaryOperationsInfixCall.antlrtree.txt index 4d6b50a27..6694ef488 100644 --- a/grammar/testData/diagnostics/evaluate/numberBinaryOperationsInfixCall.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/numberBinaryOperationsInfixCall.antlrtree.txt @@ -1,4 +1,5 @@ -File: numberBinaryOperationsInfixCall.kt - aa0075489ffd771f2bda908c797e2ff3 +File: numberBinaryOperationsInfixCall.kt - ef6221ffef78ec1f3d38d47f3426a23f + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/evaluate/otherOverflow.antlrtree.txt b/grammar/testData/diagnostics/evaluate/otherOverflow.antlrtree.txt index 311ff4e21..655516aa8 100644 --- a/grammar/testData/diagnostics/evaluate/otherOverflow.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/otherOverflow.antlrtree.txt @@ -204,6 +204,4 @@ File: otherOverflow.kt - c39dcb891f776ccc7d52411ac621667f valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/parentesized.antlrtree.txt b/grammar/testData/diagnostics/evaluate/parentesized.antlrtree.txt index 6b03ea759..ce415c28f 100644 --- a/grammar/testData/diagnostics/evaluate/parentesized.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/parentesized.antlrtree.txt @@ -1,4 +1,5 @@ -File: parentesized.kt - 94217501cb1f1bb67a767ae025966d6f +File: parentesized.kt - 304aa0d0fd2fb469a01b9f39a9890867 + NL("\n") packageHeader importList topLevelObject @@ -768,6 +769,5 @@ File: parentesized.kt - 94217501cb1f1bb67a767ae025966d6f primaryExpression literalConstant IntegerLiteral("2") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/qualifiedExpressions.a.antlrtree.txt b/grammar/testData/diagnostics/evaluate/qualifiedExpressions.a.antlrtree.txt index 436e4b9e5..64080f910 100644 --- a/grammar/testData/diagnostics/evaluate/qualifiedExpressions.a.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/qualifiedExpressions.a.antlrtree.txt @@ -48,6 +48,4 @@ File: qualifiedExpressions.a.kt - 7f79a3fb617473cda04da708bb705cdd IntegerLiteral("2") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/qualifiedExpressions.b.antlrtree.txt b/grammar/testData/diagnostics/evaluate/qualifiedExpressions.b.antlrtree.txt index 7552bcb38..14264575a 100644 --- a/grammar/testData/diagnostics/evaluate/qualifiedExpressions.b.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/qualifiedExpressions.b.antlrtree.txt @@ -134,6 +134,4 @@ File: qualifiedExpressions.b.kt - 58aaf08ce3a61771073acb4f045d8066 primaryExpression literalConstant IntegerLiteral("2") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/unaryMinusDepOnExpType.antlrtree.txt b/grammar/testData/diagnostics/evaluate/unaryMinusDepOnExpType.antlrtree.txt index 5cc4ac04f..9ea9c07cc 100644 --- a/grammar/testData/diagnostics/evaluate/unaryMinusDepOnExpType.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/unaryMinusDepOnExpType.antlrtree.txt @@ -1672,6 +1672,4 @@ File: unaryMinusDepOnExpType.kt - 8c1fbea4a88cb8a83471d5ecd0a53962 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/unaryMinusIndependentExpType.antlrtree.txt b/grammar/testData/diagnostics/evaluate/unaryMinusIndependentExpType.antlrtree.txt index f466d6bd1..982c4d648 100644 --- a/grammar/testData/diagnostics/evaluate/unaryMinusIndependentExpType.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/unaryMinusIndependentExpType.antlrtree.txt @@ -1069,6 +1069,4 @@ File: unaryMinusIndependentExpType.kt - 947219e9994a147b3400cf1b943ea0f8 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/evaluate/wrongLongSuffix.antlrtree.txt b/grammar/testData/diagnostics/evaluate/wrongLongSuffix.antlrtree.txt index 88df943b0..4a4764bbc 100644 --- a/grammar/testData/diagnostics/evaluate/wrongLongSuffix.antlrtree.txt +++ b/grammar/testData/diagnostics/evaluate/wrongLongSuffix.antlrtree.txt @@ -1,4 +1,5 @@ -File: wrongLongSuffix.kt - 70703de24438e4d5c31ff3a530645cce +File: wrongLongSuffix.kt - dc1220321df3718485a495a34b7d3bd9 + NL("\n") packageHeader importList topLevelObject @@ -340,6 +341,4 @@ File: wrongLongSuffix.kt - 70703de24438e4d5c31ff3a530645cce primaryExpression literalConstant LongLiteral("0B1l") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exceptions/expectedSomeTypesOnBranchForWhenExpressionOfErroneousType.antlrtree.txt b/grammar/testData/diagnostics/exceptions/expectedSomeTypesOnBranchForWhenExpressionOfErroneousType.antlrtree.txt new file mode 100644 index 000000000..d91246974 --- /dev/null +++ b/grammar/testData/diagnostics/exceptions/expectedSomeTypesOnBranchForWhenExpressionOfErroneousType.antlrtree.txt @@ -0,0 +1,189 @@ +File: expectedSomeTypesOnBranchForWhenExpressionOfErroneousType.kt - f9ef97cecc6c66ca015be8dde83bf9c9 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("unresolved") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + THROW("throw") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Exception") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/approximation.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/approximation.antlrtree.txt new file mode 100644 index 000000000..d5845af89 --- /dev/null +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/approximation.antlrtree.txt @@ -0,0 +1,658 @@ +File: approximation.kt - 0c65ee5f9ed13de8bfc998f4d512ffcb + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/bareTypes.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/bareTypes.antlrtree.txt new file mode 100644 index 000000000..d8fd53856 --- /dev/null +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/bareTypes.antlrtree.txt @@ -0,0 +1,148 @@ +File: bareTypes.kt - 8721d3e3d50dcb919a594c195b06a900 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + IS("is") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("List") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("w") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("List") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/disabledFeature.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/disabledFeature.antlrtree.txt new file mode 100644 index 000000000..1df610fdf --- /dev/null +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/disabledFeature.antlrtree.txt @@ -0,0 +1,96 @@ +File: disabledFeature.kt - 524a70b723a68dbc3190493cf5764809 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/inference.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/inference.antlrtree.txt new file mode 100644 index 000000000..138da888a --- /dev/null +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/inference.antlrtree.txt @@ -0,0 +1,1167 @@ +File: inference.kt - 36ce14b594287825203f05153a6493f6 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("toDefNotNull") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("removeQuestionMark") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("expectNN") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("e") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("E") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("w") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("m") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("toDefNotNull") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y2") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("F") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("toDefNotNull") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("removeQuestionMark") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x2") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("F") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("removeQuestionMark") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z2") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("F") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("w1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("w2") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("F") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + NL("\n") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("expectNN") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("m") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("expectNN") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("m") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/isAsOperators.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/isAsOperators.antlrtree.txt new file mode 100644 index 000000000..f2e5e460d --- /dev/null +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/isAsOperators.antlrtree.txt @@ -0,0 +1,635 @@ +File: isAsOperators.kt - 9dac1eac89a5ca83860acf639eaa50ab + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("v") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + asOperator + AS("as") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + asOperator + AS_SAFE("as?") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + isOperator + IS("is") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + isOperator + NOT_IS("!is ") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + asOperator + AS("as") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/isAsOperatorsEnabled.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/isAsOperatorsEnabled.antlrtree.txt new file mode 100644 index 000000000..74929c143 --- /dev/null +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/isAsOperatorsEnabled.antlrtree.txt @@ -0,0 +1,635 @@ +File: isAsOperatorsEnabled.kt - a0ea6d05d4244737aa878adc9d68763b + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("v") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + asOperator + AS("as") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + asOperator + AS_SAFE("as?") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + isOperator + IS("is") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + isOperator + NOT_IS("!is ") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + asOperator + AS("as") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/notApplicable.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/notApplicable.antlrtree.txt new file mode 100644 index 000000000..b124b9535 --- /dev/null +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/notApplicable.antlrtree.txt @@ -0,0 +1,562 @@ +File: notApplicable.kt - 0371861b2a9dc8fe5d366747e8fcd2e9 (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("String") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("bar1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + quest + QUEST_WS("? ") + AMP("&") + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("bar2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("F") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("bar3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + parenthesizedType + LPAREN("(") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + quest + QUEST_NO_WS("?") + RPAREN(")") + AMP("&") + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("bar4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + parenthesizedType + LPAREN("(") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("F") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("bar5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("F") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("bar6") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("F") + AMP("&") + parenthesizedUserType + LPAREN("(") + userType + simpleUserType + simpleIdentifier + Identifier("F") + AMP("&") + Identifier("Any") + RPAREN(")") + RPAREN(")") + LCURL("{") + RCURL("}") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("bar7") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + parenthesizedType + LPAREN("(") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("F") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + AMP("&") + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("bar8") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + receiverType + parenthesizedType + LPAREN("(") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("F") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + receiverType + parenthesizedType + LPAREN("(") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("F") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + DOT(".") + simpleIdentifier + Identifier("bar9") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("bar10") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("F") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + AMP("&") + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("bar11") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("Double") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + AMP("&") + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/overrides.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/overrides.antlrtree.txt new file mode 100644 index 000000000..b991b4545 --- /dev/null +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/overrides.antlrtree.txt @@ -0,0 +1,745 @@ +File: overrides.kt - c625b549b749325e99c1ed0dadaef257 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T1") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T1") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T1") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T1") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T1") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T1") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T2") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T2") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T2") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T2") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T2") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T2") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("D") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("E") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("F") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("G") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T3") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T3") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T3") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T3") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T3") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/overridesJavaAnnotated.main.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/overridesJavaAnnotated.main.antlrtree.txt new file mode 100644 index 000000000..e8ccbafa6 --- /dev/null +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/overridesJavaAnnotated.main.antlrtree.txt @@ -0,0 +1,654 @@ +File: overridesJavaAnnotated.main.kt - e77d993ef84c1e35cf4779aac12d9b41 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T1") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T1") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T1") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T1") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T1") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T1") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T2") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T2") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T2") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T2") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T2") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T2") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("D") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("E") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("F") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("G") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T3") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T3") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T3") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T3") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T3") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/recursiveBounds.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/recursiveBounds.antlrtree.txt new file mode 100644 index 000000000..5ae34c577 --- /dev/null +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/recursiveBounds.antlrtree.txt @@ -0,0 +1,247 @@ +File: recursiveBounds.kt - 355cabe2e8fac4bac997827450b3f6a0 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("sort1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + quest + QUEST_NO_WS("?") + RANGLE(">") + simpleIdentifier + Identifier("sort2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A1") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("K") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("K") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + quest + QUEST_NO_WS("?") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("E") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/reifiedArguments.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/reifiedArguments.antlrtree.txt new file mode 100644 index 000000000..cc546a117 --- /dev/null +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/reifiedArguments.antlrtree.txt @@ -0,0 +1,118 @@ +File: reifiedArguments.kt - 36d9e6bd4fadb8e4f1378a4340d4e41a + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("F") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/simple.antlrtree.txt b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/simple.antlrtree.txt new file mode 100644 index 000000000..85f0b7eda --- /dev/null +++ b/grammar/testData/diagnostics/explicitDefinitelyNotNullableViaIntersection/simple.antlrtree.txt @@ -0,0 +1,678 @@ +File: simple.kt - 4482a6f3cdd69af1a4bacf61667391e2 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/exposed/functional.antlrtree.txt b/grammar/testData/diagnostics/exposed/functional.antlrtree.txt index bd32f8c5a..fac4d5bbe 100644 --- a/grammar/testData/diagnostics/exposed/functional.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/functional.antlrtree.txt @@ -260,6 +260,4 @@ File: functional.kt - 2d9aa95a7e50ceefdb7f4ed91a67cbea valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/implements.antlrtree.txt b/grammar/testData/diagnostics/exposed/implements.antlrtree.txt index edfa20358..62ddaf9b1 100644 --- a/grammar/testData/diagnostics/exposed/implements.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/implements.antlrtree.txt @@ -30,6 +30,4 @@ File: implements.kt - 7e80c7e0619f3edb27ffe7493c47afa1 simpleUserType simpleIdentifier Identifier("My") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/internal.antlrtree.txt b/grammar/testData/diagnostics/exposed/internal.antlrtree.txt index fc13ed972..09900549e 100644 --- a/grammar/testData/diagnostics/exposed/internal.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/internal.antlrtree.txt @@ -343,6 +343,4 @@ File: internal.kt - e2ae89897f92c2b8298be847c4d28b52 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/internalFromLocal.antlrtree.txt b/grammar/testData/diagnostics/exposed/internalFromLocal.antlrtree.txt index f8ca98cbe..d20fc513c 100644 --- a/grammar/testData/diagnostics/exposed/internalFromLocal.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/internalFromLocal.antlrtree.txt @@ -144,6 +144,4 @@ File: internalFromLocal.kt - 8d0d2cf1c1451ea4a734096e993bad49 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/local.antlrtree.txt b/grammar/testData/diagnostics/exposed/local.antlrtree.txt index df2db4e4f..a09f98032 100644 --- a/grammar/testData/diagnostics/exposed/local.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/local.antlrtree.txt @@ -236,6 +236,4 @@ File: local.kt - f01abb5fbbc86191b85b7d7985a6e905 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/localFromInternal.antlrtree.txt b/grammar/testData/diagnostics/exposed/localFromInternal.antlrtree.txt index 78fd6a8fb..377cb6637 100644 --- a/grammar/testData/diagnostics/exposed/localFromInternal.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/localFromInternal.antlrtree.txt @@ -78,6 +78,4 @@ File: localFromInternal.kt - 96a152bbb60236b09f70246243c62633 RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/localFromPrivate.antlrtree.txt b/grammar/testData/diagnostics/exposed/localFromPrivate.antlrtree.txt index 3b1804ae9..63348a6d3 100644 --- a/grammar/testData/diagnostics/exposed/localFromPrivate.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/localFromPrivate.antlrtree.txt @@ -202,6 +202,4 @@ File: localFromPrivate.kt - 1621b28c868667b6e59d34f57bd4c796 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/localInMemberType.antlrtree.txt b/grammar/testData/diagnostics/exposed/localInMemberType.antlrtree.txt index 9add85d13..fdd96ced2 100644 --- a/grammar/testData/diagnostics/exposed/localInMemberType.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/localInMemberType.antlrtree.txt @@ -1184,6 +1184,4 @@ File: localInMemberType.kt - 44e17bccb2b111a156c4c0c5152e23c0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/localInPropertyType.antlrtree.txt b/grammar/testData/diagnostics/exposed/localInPropertyType.antlrtree.txt index a57136a9d..3a61a4e1b 100644 --- a/grammar/testData/diagnostics/exposed/localInPropertyType.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/localInPropertyType.antlrtree.txt @@ -1313,6 +1313,4 @@ File: localInPropertyType.kt - c75bf476eb06a91c616c74322e03496a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/nested.antlrtree.txt b/grammar/testData/diagnostics/exposed/nested.antlrtree.txt index 1062cb9ed..1944cb473 100644 --- a/grammar/testData/diagnostics/exposed/nested.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/nested.antlrtree.txt @@ -54,6 +54,4 @@ File: nested.kt - 63c1f50b65103f365abb29cfe31c536f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/privateFromLocal.antlrtree.txt b/grammar/testData/diagnostics/exposed/privateFromLocal.antlrtree.txt index f6b4db809..fd3f9f9ea 100644 --- a/grammar/testData/diagnostics/exposed/privateFromLocal.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/privateFromLocal.antlrtree.txt @@ -146,6 +146,4 @@ File: privateFromLocal.kt - 6b0030ada1be4831d83b2030267b627d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/privateInFile.antlrtree.txt b/grammar/testData/diagnostics/exposed/privateInFile.antlrtree.txt new file mode 100644 index 000000000..c6e40b71a --- /dev/null +++ b/grammar/testData/diagnostics/exposed/privateInFile.antlrtree.txt @@ -0,0 +1,430 @@ +File: privateInFile.kt - afd24ff44afd8b815ed02f5d6d103a1f + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Public") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("NestedPrivate") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedPrivate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NestedPrivate") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NestedPrivate") + DOT(".") + simpleIdentifier + Identifier("test3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedPrivate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Test5") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("NestedPrivate") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + CLASS("class") + simpleIdentifier + Identifier("PrivateInFileClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("NestedPrivate") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedPrivate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NestedPrivate") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NestedPrivate") + DOT(".") + simpleIdentifier + Identifier("test3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedPrivate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Test5") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("NestedPrivate") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + INTERFACE("interface") + simpleIdentifier + Identifier("PrivateInFile") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + CLASS("class") + simpleIdentifier + Identifier("Private") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("expose") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Private") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("PrivateInFile") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/exposed/privateInFileDisabled.antlrtree.txt b/grammar/testData/diagnostics/exposed/privateInFileDisabled.antlrtree.txt new file mode 100644 index 000000000..4223dceb6 --- /dev/null +++ b/grammar/testData/diagnostics/exposed/privateInFileDisabled.antlrtree.txt @@ -0,0 +1,430 @@ +File: privateInFileDisabled.kt - 427600d4ed7084d4d6033a5d7fbfeff0 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Public") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("NestedPrivate") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedPrivate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NestedPrivate") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NestedPrivate") + DOT(".") + simpleIdentifier + Identifier("test3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedPrivate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Test5") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("NestedPrivate") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + CLASS("class") + simpleIdentifier + Identifier("PrivateInFileClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("NestedPrivate") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedPrivate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NestedPrivate") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NestedPrivate") + DOT(".") + simpleIdentifier + Identifier("test3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("NestedPrivate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Test5") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("NestedPrivate") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + INTERFACE("interface") + simpleIdentifier + Identifier("PrivateInFile") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + CLASS("class") + simpleIdentifier + Identifier("Private") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("expose") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Private") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("PrivateInFile") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/exposed/privatePropertyInPrivateConstructor.antlrtree.txt b/grammar/testData/diagnostics/exposed/privatePropertyInPrivateConstructor.antlrtree.txt index c3dd01e1a..28e8c3b45 100644 --- a/grammar/testData/diagnostics/exposed/privatePropertyInPrivateConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/privatePropertyInPrivateConstructor.antlrtree.txt @@ -59,6 +59,4 @@ File: privatePropertyInPrivateConstructor.kt - 37178c91e6888227c9bb9f99d66fdb3e simpleIdentifier Identifier("Foo") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/propertyInConstructorOfPrivateClass.antlrtree.txt b/grammar/testData/diagnostics/exposed/propertyInConstructorOfPrivateClass.antlrtree.txt index ab68a4caa..3c4734221 100644 --- a/grammar/testData/diagnostics/exposed/propertyInConstructorOfPrivateClass.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/propertyInConstructorOfPrivateClass.antlrtree.txt @@ -54,6 +54,4 @@ File: propertyInConstructorOfPrivateClass.kt - 626f594f21f3dd45eede048e47647322 simpleIdentifier Identifier("Foo") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/propertyInPrivateConstructor.antlrtree.txt b/grammar/testData/diagnostics/exposed/propertyInPrivateConstructor.antlrtree.txt index 73570cd1c..f907e7a07 100644 --- a/grammar/testData/diagnostics/exposed/propertyInPrivateConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/propertyInPrivateConstructor.antlrtree.txt @@ -1,4 +1,7 @@ -File: propertyInPrivateConstructor.kt - 04d6ae99f95cf3fdd9f595aef46ca4f5 +File: propertyInPrivateConstructor.kt - 2e345a92437a22e33114fcc22c15a704 + NL("\n") + NL("\n") + NL("\n") packageHeader importList topLevelObject @@ -55,5 +58,5 @@ File: propertyInPrivateConstructor.kt - 04d6ae99f95cf3fdd9f595aef46ca4f5 Identifier("Foo") RPAREN(")") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/exposed/propertyInPrivateConstructorError.antlrtree.txt b/grammar/testData/diagnostics/exposed/propertyInPrivateConstructorError.antlrtree.txt new file mode 100644 index 000000000..d591030bd --- /dev/null +++ b/grammar/testData/diagnostics/exposed/propertyInPrivateConstructorError.antlrtree.txt @@ -0,0 +1,62 @@ +File: propertyInPrivateConstructorError.kt - cc8ea0358ffe451c352479672539d855 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("Foo") + enumClassBody + LCURL("{") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("B") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + primaryConstructor + modifiers + modifier + visibilityModifier + PRIVATE("private") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/exposed/propertyInSimpleConstructor.antlrtree.txt b/grammar/testData/diagnostics/exposed/propertyInSimpleConstructor.antlrtree.txt index fd0d6a14b..280afaf76 100644 --- a/grammar/testData/diagnostics/exposed/propertyInSimpleConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/propertyInSimpleConstructor.antlrtree.txt @@ -49,6 +49,4 @@ File: propertyInSimpleConstructor.kt - 0c2fd7b22caa3f361d054638ea95652f simpleIdentifier Identifier("Foo") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/protected.antlrtree.txt b/grammar/testData/diagnostics/exposed/protected.antlrtree.txt index 21d5a1b14..117e4aef1 100644 --- a/grammar/testData/diagnostics/exposed/protected.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/protected.antlrtree.txt @@ -202,6 +202,4 @@ File: protected.kt - e6dd3db18d310651aa8526e4e037c19e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/protectedJava.OuterDerived.antlrtree.txt b/grammar/testData/diagnostics/exposed/protectedJava.OuterDerived.antlrtree.txt index 1bc66d900..629ff0440 100644 --- a/grammar/testData/diagnostics/exposed/protectedJava.OuterDerived.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/protectedJava.OuterDerived.antlrtree.txt @@ -115,6 +115,4 @@ File: protectedJava.OuterDerived.kt - f705eafece3eaac54739182e582812ff semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/protectedSameWay.antlrtree.txt b/grammar/testData/diagnostics/exposed/protectedSameWay.antlrtree.txt index e087d1ad4..9a97e21e4 100644 --- a/grammar/testData/diagnostics/exposed/protectedSameWay.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/protectedSameWay.antlrtree.txt @@ -210,6 +210,4 @@ File: protectedSameWay.kt - f057ec0f808742d75864c9c1bb7b1c13 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/exposed/typeArgs.antlrtree.txt b/grammar/testData/diagnostics/exposed/typeArgs.antlrtree.txt index fac850e57..825669c50 100644 --- a/grammar/testData/diagnostics/exposed/typeArgs.antlrtree.txt +++ b/grammar/testData/diagnostics/exposed/typeArgs.antlrtree.txt @@ -154,6 +154,4 @@ File: typeArgs.kt - 990312ae1539b5478a9e15e4ecdcd989 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/extensions/ExtensionsCalledOnSuper.antlrtree.txt b/grammar/testData/diagnostics/extensions/ExtensionsCalledOnSuper.antlrtree.txt index e5cef2be9..9180ee571 100644 --- a/grammar/testData/diagnostics/extensions/ExtensionsCalledOnSuper.antlrtree.txt +++ b/grammar/testData/diagnostics/extensions/ExtensionsCalledOnSuper.antlrtree.txt @@ -408,6 +408,4 @@ File: ExtensionsCalledOnSuper.kt - 061df1f3fad84a79ec03adf710e5df71 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/extensions/classObject.antlrtree.txt b/grammar/testData/diagnostics/extensions/classObject.antlrtree.txt index fca82d640..91f77d8b9 100644 --- a/grammar/testData/diagnostics/extensions/classObject.antlrtree.txt +++ b/grammar/testData/diagnostics/extensions/classObject.antlrtree.txt @@ -1,4 +1,4 @@ -File: classObject.kt - 1863a2a230b10ada2fb6dd53ff8472ca +File: classObject.kt - e30f99e789e4bb25f7629b9cde483ab8 NL("\n") packageHeader importList @@ -381,6 +381,4 @@ File: classObject.kt - 1863a2a230b10ada2fb6dd53ff8472ca semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/ambiguityInGroup.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/ambiguityInGroup.antlrtree.txt new file mode 100644 index 000000000..fd272ec97 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/ambiguityInGroup.antlrtree.txt @@ -0,0 +1,345 @@ +File: ambiguityInGroup.kt - 6f103d289e3fe80abe2518bda6396071 (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Common") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("supertypeMember") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Common") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("member") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Common") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("member") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Common") + DOT(".") + simpleIdentifier + Identifier("supertypeExtension") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Common") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + simpleIdentifier + Identifier("supertypeExtensionGeneric") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Common") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("supertypeContextual") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("C1") + COMMA(",") + Identifier("C2") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("supertypeMember") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("member") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("supertypeExtension") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("supertypeExtensionGeneric") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("supertypeContextual") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/conflicting.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/conflicting.antlrtree.txt new file mode 100644 index 000000000..ff0c111e9 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/conflicting.antlrtree.txt @@ -0,0 +1,290 @@ +File: conflicting.kt - 4f56f5eee26a6584c8326f11aaa86b4b (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/conflictingWithDifferentOrder.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/conflictingWithDifferentOrder.antlrtree.txt new file mode 100644 index 000000000..fe0b6af68 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/conflictingWithDifferentOrder.antlrtree.txt @@ -0,0 +1,290 @@ +File: conflictingWithDifferentOrder.kt - 99731e363ae704b109371cc12c5f8632 (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("B") + COMMA(",") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/contextKeywordWithElvis.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/contextKeywordWithElvis.antlrtree.txt new file mode 100644 index 000000000..51c3303c1 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/contextKeywordWithElvis.antlrtree.txt @@ -0,0 +1,126 @@ +File: contextKeywordWithElvis.kt - b03ec8fa5774a07977aef9c920849555 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Context") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("project") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("calculateResult") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("context") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Context") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("context") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("project") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("context") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("project") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/contextReceiverTypeParamsUsage.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/contextReceiverTypeParamsUsage.antlrtree.txt new file mode 100644 index 000000000..95c5eb002 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/contextReceiverTypeParamsUsage.antlrtree.txt @@ -0,0 +1,232 @@ +File: contextReceiverTypeParamsUsage.kt - 70a2744b6c872178b8c9f7b8497c5711 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ContextFunctionTypeParams") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + RPAREN(")") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("tt") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ContextFunctionTypeParams") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ContextFunctionTypeParams") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ExtensionFunctionType") + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/contextReceiverTypeParamsUsageError.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/contextReceiverTypeParamsUsageError.antlrtree.txt new file mode 100644 index 000000000..9cedad759 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/contextReceiverTypeParamsUsageError.antlrtree.txt @@ -0,0 +1,229 @@ +File: contextReceiverTypeParamsUsageError.kt - 445c91c6ce012c5ae30195af807bcd96 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ContextFunctionTypeParams") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + RPAREN(")") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("tt") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ContextFunctionTypeParams") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ContextFunctionTypeParams") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ExtensionFunctionType") + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/contextualFunctionalTypeConversion.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/contextualFunctionalTypeConversion.antlrtree.txt new file mode 100644 index 000000000..8c7f82426 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/contextualFunctionalTypeConversion.antlrtree.txt @@ -0,0 +1,181 @@ +File: contextualFunctionalTypeConversion.kt - 0d7c557e452084a6f0d924bff3e0933d (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("expectAB") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("l") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("B") + COMMA(",") + Identifier("A") + RPAREN(")") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + ASSIGNMENT("=") + LCURL("{") + RCURL("}") + semis + NL("\n") + Identifier("expectAB") + LPAREN("(") + Identifier("l") + RPAREN(")") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/autoCloseScope.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/autoCloseScope.antlrtree.txt new file mode 100644 index 000000000..7b23c757d --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/autoCloseScope.antlrtree.txt @@ -0,0 +1,652 @@ +File: autoCloseScope.kt - 575a5cea63bdac08dc2e36118cc73db9 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("File") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("InputStream") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("AutoCloseScope") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("defer") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("closeBlock") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("close") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AutoCloseScopeImpl") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("AutoCloseScope") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("defer") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("closeBlock") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("close") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("AutoCloseScope") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("File") + DOT(".") + simpleIdentifier + OPEN("open") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("InputStream") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("withAutoClose") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("AutoCloseScope") + RPAREN(")") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("scope") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AutoCloseScopeImpl") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("scope") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("block") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("scope") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("close") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("withAutoClose") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("input") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("File") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("input.txt") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + OPEN("open") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("config") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("File") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("config.txt") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + OPEN("open") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/canvas.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/canvas.antlrtree.txt new file mode 100644 index 000000000..498152444 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/canvas.antlrtree.txt @@ -0,0 +1,204 @@ +File: canvas.kt - 217bb9842055be2016f72bf7a5ac459a (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Canvas") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Shape") + LCURL("{") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Canvas") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("draw") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Circle") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Shape") + LCURL("{") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Canvas") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("draw") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("MyCanvas") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Canvas") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyCanvas") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Circle") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("draw") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/clickHandler.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/clickHandler.antlrtree.txt new file mode 100644 index 000000000..d9ac803a2 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/clickHandler.antlrtree.txt @@ -0,0 +1,148 @@ +File: clickHandler.kt - 186567c3260062c0b1e56e2d4bf4f7d7 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Button") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("ClickEvent") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("ClickHandler") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("Button") + RPAREN(")") + LPAREN("(") + Identifier("ClickEvent") + RPAREN(")") + ARROW("->") + Identifier("Unit") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("handleClick") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("clickHandler") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ClickHandler") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("clickHandler") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Button") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ClickEvent") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/compareTo.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/compareTo.antlrtree.txt new file mode 100644 index 000000000..e33ebd1a2 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/compareTo.antlrtree.txt @@ -0,0 +1,696 @@ +File: compareTo.kt - 855adb161f3b2739381355d406d5eadc (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("Pair") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("first") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("second") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Comparator") + LANGLE("<") + Identifier("T") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + simpleIdentifier + Identifier("compareTo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("compare") + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Comparator") + LANGLE("<") + Identifier("T") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("max") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("first") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("second") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("first") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("second") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("comparator") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Comparator") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("b") + ARROW("->") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("compareTo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("comparator") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Pair") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("fail") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("max") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/decimateEveryEvenThird.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/decimateEveryEvenThird.antlrtree.txt new file mode 100644 index 000000000..095b88e28 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/decimateEveryEvenThird.antlrtree.txt @@ -0,0 +1,317 @@ +File: decimateEveryEvenThird.kt - ffceeb1238c5dc4cc0b726f9581cc237 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("decimateEveryEvenThird") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("sequence") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("counter") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + loopStatement + forStatement + FOR("for") + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("e") + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("List") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("e") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("counter") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("yield") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("e") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("counter") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/dp.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/dp.antlrtree.txt new file mode 100644 index 000000000..684cfae51 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/dp.antlrtree.txt @@ -0,0 +1,345 @@ +File: dp.kt - 4bd88c53c06e22fac25e9f8fcd8ba8ed (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("View") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("View") + RPAREN(")") + topLevelObject + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("dp") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View") + DOT(".") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("123") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("dp") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("123") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("dp") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + simpleIdentifier + Identifier("g") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("dp") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("h") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("123") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("dp") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/functionalType.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/functionalType.antlrtree.txt new file mode 100644 index 000000000..876c2b1bd --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/functionalType.antlrtree.txt @@ -0,0 +1,223 @@ +File: functionalType.kt - 829d89f6624189f39795e2f76c3e0adf (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Context") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Receiver") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Param") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("context") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Context") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + RECEIVER("receiver") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Receiver") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Param") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Context") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + RECEIVER("receiver") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Receiver") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Param") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Context") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Receiver") + DOT(".") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Param") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("g") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("Context") + RPAREN(")") + Identifier("Receiver") + DOT(".") + LPAREN("(") + Identifier("Param") + RPAREN(")") + ARROW("->") + Identifier("Unit") + semis + NL("\n") + Identifier("g") + ASSIGNMENT("=") + COLONCOLON("::") + Identifier("foo") + NL("\n") + Identifier("g") + ASSIGNMENT("=") + COLONCOLON("::") + Identifier("bar") + NL("\n") + Identifier("g") + ASSIGNMENT("=") + Identifier("Receiver") + COLONCOLON("::") + Identifier("baz") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/iterableClass.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/iterableClass.antlrtree.txt new file mode 100644 index 000000000..a1e0e2fe5 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/iterableClass.antlrtree.txt @@ -0,0 +1,645 @@ +File: iterableClass.kt - fbb63fb471918bdc4050476e0d6ab776 (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("IterableClass") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("C") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterator") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("IterableClass") + LANGLE("<") + Identifier("C") + COMMA(",") + Identifier("T") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("C") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + DOT(".") + simpleIdentifier + Identifier("iterator") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("any") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterator") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@IterableClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("listOf") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("items") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IterableClass") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("listIterator") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("iterator") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("iterator") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/json.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/json.antlrtree.txt new file mode 100644 index 000000000..a159a3163 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/json.antlrtree.txt @@ -0,0 +1,708 @@ +File: json.kt - 38f0ae4755bfc88f41f3ff73dac1898b (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("JSONObject") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("build") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JSONObject") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("put") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("key") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("any") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("json") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("build") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JSONObject") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JSONObject") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("apply") + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("JSONObject") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + BY("by") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("build") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JSONObject") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("put") + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JSONObject") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("JSONObject") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + BY("by") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("put") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("json") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("json") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("name") + QUOTE_CLOSE(""") + simpleIdentifier + BY("by") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Kotlin") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("age") + QUOTE_CLOSE(""") + simpleIdentifier + BY("by") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("creator") + QUOTE_CLOSE(""") + simpleIdentifier + BY("by") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("name") + QUOTE_CLOSE(""") + simpleIdentifier + BY("by") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("JetBrains") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("age") + QUOTE_CLOSE(""") + simpleIdentifier + BY("by") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("21") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/loggingContext.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/loggingContext.antlrtree.txt new file mode 100644 index 000000000..d55395581 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/loggingContext.antlrtree.txt @@ -0,0 +1,165 @@ +File: loggingContext.kt - c4a1187b0b1add8582f2fac1708de761 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Params") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Logger") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("info") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("message") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("LoggingContext") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("log") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Logger") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("LoggingContext") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("performSomeBusinessOperation") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("withParams") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Params") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("log") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("info") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Operation has started") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/monoidSum.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/monoidSum.antlrtree.txt new file mode 100644 index 000000000..5ce572f2e --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/monoidSum.antlrtree.txt @@ -0,0 +1,1173 @@ +File: monoidSum.kt - 93b904daf03ffd13398884830c2d357b (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Semigroup") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + simpleIdentifier + Identifier("combine") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Monoid") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Semigroup") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("unit") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("IntMonoid") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Monoid") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + simpleIdentifier + Identifier("combine") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("unit") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("StringMonoid") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Monoid") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("combine") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("unit") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("fold") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("initial") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("operation") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + parameter + simpleIdentifier + Identifier("acc") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + COMMA(",") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Monoid") + LANGLE("<") + Identifier("T") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("sum") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("fold") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("unit") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("acc") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("e") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("acc") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("combine") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("e") + RPAREN(")") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("listOf") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("items") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("IntMonoid") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("sum") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("StringMonoid") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("sum") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("2") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("3") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("sum") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/transaction.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/transaction.antlrtree.txt new file mode 100644 index 000000000..0f85bc994 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/transaction.antlrtree.txt @@ -0,0 +1,266 @@ +File: transaction.kt - 804e4e5b890c1b7d001ebb15325d1a0e (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Session") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAR("var") + simpleIdentifier + Identifier("lastAccess") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Transaction") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("loadSession") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Session") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("storeSession") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("session") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Session") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("now") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Transaction") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("updateUserSession") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("session") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("loadSession") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("session") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("lastAccess") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("now") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("storeSession") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("session") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/userStorage.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/userStorage.antlrtree.txt new file mode 100644 index 000000000..3b96e15db --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/fromKEEP/userStorage.antlrtree.txt @@ -0,0 +1,321 @@ +File: userStorage.kt - 9945094bfa57342ef3f3f6c32d8d9727 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Storage") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Info") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("info") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Info") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("User") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Logger") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("info") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("message") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Logger") + COMMA(",") + Identifier("Storage") + LANGLE("<") + Identifier("User") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("userInfo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Storage") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("User") + RANGLE(">") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Info") + quest + QUEST_WS("? ") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@Logger") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("info") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Retrieving info about ") + lineStringContent + LineStrRef("$name") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@Storage") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("info") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("name") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/functionalType.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/functionalType.antlrtree.txt new file mode 100644 index 000000000..80c06910b --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/functionalType.antlrtree.txt @@ -0,0 +1,649 @@ +File: functionalType.kt - d2a796c88c8e9c614ee43d4b1454fc3b (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Param") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("R") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("r") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("f1") + LPAREN("(") + Identifier("g") + COLON(":") + Identifier("context") + LPAREN("(") + Identifier("C") + RPAREN(")") + Identifier("R") + DOT(".") + LPAREN("(") + Identifier("Param") + RPAREN(")") + ARROW("->") + Identifier("Unit") + RPAREN(")") + LCURL("{") + semis + NL("\n") + Identifier("g") + LPAREN("(") + Identifier("this") + topLevelObject + declaration + topLevelObject + declaration + AT_NO_WS("@") + Identifier("C") + COMMA(",") + Identifier("this") + topLevelObject + declaration + topLevelObject + declaration + AT_NO_WS("@") + Identifier("R") + COMMA(",") + Identifier("Param") + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("g") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("C") + RPAREN(")") + LPAREN("(") + Identifier("Param") + RPAREN(")") + ARROW("->") + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("g") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Param") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("f3") + LPAREN("(") + Identifier("g") + COLON(":") + Identifier("context") + LPAREN("(") + Identifier("C") + RPAREN(")") + Identifier("R") + DOT(".") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + RPAREN(")") + LCURL("{") + semis + NL("\n") + Identifier("g") + LPAREN("(") + Identifier("this") + topLevelObject + declaration + topLevelObject + declaration + AT_NO_WS("@") + Identifier("C") + COMMA(",") + Identifier("this") + topLevelObject + declaration + topLevelObject + declaration + AT_NO_WS("@") + Identifier("R") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("g") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("C") + RPAREN(")") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("g") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("lf1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("C") + RPAREN(")") + Identifier("R") + DOT(".") + LPAREN("(") + Identifier("Param") + RPAREN(")") + ARROW("->") + Identifier("Unit") + ASSIGNMENT("=") + LCURL("{") + Identifier("_") + ARROW("->") + semis + NL("\n") + Identifier("r") + NL("\n") + Identifier("c") + NL("\n") + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("lf2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("C") + RPAREN(")") + LPAREN("(") + Identifier("Param") + RPAREN(")") + ARROW("->") + Identifier("Unit") + ASSIGNMENT("=") + LCURL("{") + Identifier("_") + ARROW("->") + semis + NL("\n") + Identifier("c") + NL("\n") + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("lf3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("C") + RPAREN(")") + Identifier("R") + DOT(".") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + ASSIGNMENT("=") + LCURL("{") + semis + NL("\n") + Identifier("r") + NL("\n") + Identifier("c") + NL("\n") + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("lf4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("C") + RPAREN(")") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + ASSIGNMENT("=") + LCURL("{") + semis + NL("\n") + Identifier("c") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("with") + LPAREN("(") + Identifier("C") + LPAREN("(") + RPAREN(")") + RPAREN(")") + LCURL("{") + NL("\n") + Identifier("with") + LPAREN("(") + Identifier("R") + LPAREN("(") + RPAREN(")") + RPAREN(")") + LCURL("{") + NL("\n") + Identifier("f1") + LPAREN("(") + Identifier("lf1") + RPAREN(")") + NL("\n") + Identifier("f1") + LCURL("{") + Identifier("_") + ARROW("->") + NL("\n") + Identifier("r") + NL("\n") + Identifier("c") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("f2") + LPAREN("(") + Identifier("lf2") + RPAREN(")") + NL("\n") + Identifier("f2") + LCURL("{") + Identifier("_") + ARROW("->") + NL("\n") + Identifier("c") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("f3") + LPAREN("(") + Identifier("lf3") + RPAREN(")") + NL("\n") + Identifier("f3") + LCURL("{") + NL("\n") + Identifier("r") + NL("\n") + Identifier("c") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("f4") + LPAREN("(") + Identifier("lf4") + RPAREN(")") + NL("\n") + Identifier("f4") + LCURL("{") + NL("\n") + Identifier("c") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/genericOuterClass.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/genericOuterClass.antlrtree.txt new file mode 100644 index 000000000..32ab58185 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/genericOuterClass.antlrtree.txt @@ -0,0 +1,255 @@ +File: genericOuterClass.kt - 9beff7adb4b2c5032cd6f7554072d975 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("T") + RPAREN(")") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Collection") + LANGLE("<") + Identifier("P") + RANGLE(">") + RPAREN(")") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/insideDeclaration.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/insideDeclaration.antlrtree.txt new file mode 100644 index 000000000..79bba9534 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/insideDeclaration.antlrtree.txt @@ -0,0 +1,225 @@ +File: insideDeclaration.kt - c5880dca0bbdddb553f5128f3f20724c (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("h1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("h2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("h1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("h2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("h1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("h2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/labelFromFunctionName.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/labelFromFunctionName.antlrtree.txt new file mode 100644 index 000000000..2db377cac --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/labelFromFunctionName.antlrtree.txt @@ -0,0 +1,165 @@ +File: labelFromFunctionName.kt - 50f3d4504bcf2357ec50a35d722492b1 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testLabels") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("source") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("r") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("source") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mapTo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/labelsFromClassNameForbidden.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/labelsFromClassNameForbidden.antlrtree.txt new file mode 100644 index 000000000..900f79853 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/labelsFromClassNameForbidden.antlrtree.txt @@ -0,0 +1,198 @@ +File: labelsFromClassNameForbidden.kt - b04600609eb278ef8bbdcbc83723e5e8 (WITH_ERRORS) + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@List") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("size") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("String") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@String") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@Int") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toDouble") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("String") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@String") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/lazy.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/lazy.antlrtree.txt new file mode 100644 index 000000000..b6b485d17 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/lazy.antlrtree.txt @@ -0,0 +1,1170 @@ +File: lazy.kt - ad747bfc8f24b836cd70103f19f7ab36 (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Lazy") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Lazy") + LANGLE("<") + Identifier("Int") + RANGLE(">") + COMMA(",") + Identifier("Lazy") + LANGLE("<") + Identifier("CharSequence") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Lazy") + LANGLE("<") + Identifier("T") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Lazy") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Lazy") + LANGLE("<") + Identifier("Lazy") + LANGLE("<") + Identifier("T") + RANGLE(">") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Lazy") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("test3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("lazy1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Lazy") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("lazy2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Lazy") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("lazyT") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Lazy") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("lazyLazyT") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Lazy") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Lazy") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy1") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy2") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy2") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy1") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazyT") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy1") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazyLazyT") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy1") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy1") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazyLazyT") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/manyReceivers.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/manyReceivers.antlrtree.txt new file mode 100644 index 000000000..3bc89842c --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/manyReceivers.antlrtree.txt @@ -0,0 +1,698 @@ +File: manyReceivers.kt - 02068004bbec2d8d2e907d0652f7d0a7 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + DOT(".") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/noBackingField.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/noBackingField.antlrtree.txt new file mode 100644 index 000000000..a7bdcb8ac --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/noBackingField.antlrtree.txt @@ -0,0 +1,196 @@ +File: noBackingField.kt - bb63054fabd22ee1818c662e2b784318 (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("a") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("b") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/noContextReceiversOnInlineClasses.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/noContextReceiversOnInlineClasses.antlrtree.txt new file mode 100644 index 000000000..cc6f89d29 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/noContextReceiversOnInlineClasses.antlrtree.txt @@ -0,0 +1,45 @@ +File: noContextReceiversOnInlineClasses.kt - aab8d11f630cb30f89124e96739ed824 (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/noExplicitReceiver.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/noExplicitReceiver.antlrtree.txt new file mode 100644 index 000000000..0930f50d3 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/noExplicitReceiver.antlrtree.txt @@ -0,0 +1,304 @@ +File: noExplicitReceiver.kt - d18d072827c99dac01900d71e45e4f57 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + RPAREN(")") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + RPAREN(")") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleIdentifier + Identifier("g") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + RPAREN(")") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + DOT(".") + simpleIdentifier + Identifier("h") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("q") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/noLabelsByClassName.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/noLabelsByClassName.antlrtree.txt new file mode 100644 index 000000000..50b1a9fce --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/noLabelsByClassName.antlrtree.txt @@ -0,0 +1,370 @@ +File: noLabelsByClassName.kt - 44f22e9c9867aba44bcd3e5b613d4b57 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@Int") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@Int") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@p") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + semis + NL("\n") + RCURL("}") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@Int") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("X") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@Int") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@p") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + semis + NL("\n") + RCURL("}") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@Int") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@Int") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/nonConflicting.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/nonConflicting.antlrtree.txt new file mode 100644 index 000000000..e3b62d426 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/nonConflicting.antlrtree.txt @@ -0,0 +1,306 @@ +File: nonConflicting.kt - efb9e4dd3922b2cfc26536d06de6bc0f (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("D") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("C") + COMMA(",") + Identifier("D") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/outerClass.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/outerClass.antlrtree.txt new file mode 100644 index 000000000..8c9f15e28 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/outerClass.antlrtree.txt @@ -0,0 +1,289 @@ +File: outerClass.kt - 93a5444e492ab108d8c3a1a354dbed36 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Outer") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Outer") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inner") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("outer") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Outer") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Inner") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("outer") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Inner") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/overloadPriority.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/overloadPriority.antlrtree.txt new file mode 100644 index 000000000..b8bb6ee36 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/overloadPriority.antlrtree.txt @@ -0,0 +1,212 @@ +File: overloadPriority.kt - cef4ac6456ae3c5556aed66d12c2d2c9 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Context") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Context") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Context") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/overloading.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/overloading.antlrtree.txt new file mode 100644 index 000000000..e7ec10f94 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/overloading.antlrtree.txt @@ -0,0 +1,257 @@ +File: overloading.kt - 319474e70aed4781189ebb706f292b83 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Int") + COMMA(",") + Identifier("String") + RPAREN(")") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@Int") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Int") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@Int") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/parameterizedContextualLambda.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/parameterizedContextualLambda.antlrtree.txt new file mode 100644 index 000000000..54a82f49e --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/parameterizedContextualLambda.antlrtree.txt @@ -0,0 +1,329 @@ +File: parameterizedContextualLambda.kt - f2d0d0bcb0d2d667e0033b73e3557ec7 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("action") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("T") + RPAREN(")") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("actionWithArg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("T") + RPAREN(")") + LPAREN("(") + Identifier("T") + RPAREN(")") + ARROW("->") + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("toDouble") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + ARROW("->") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/plusMatrix.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/plusMatrix.antlrtree.txt new file mode 100644 index 000000000..8a7d97b61 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/plusMatrix.antlrtree.txt @@ -0,0 +1,280 @@ +File: plusMatrix.kt - aff7fa9b96d51fa0f66fdae631977e0f (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("NumberOperations") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + DOT(".") + simpleIdentifier + Identifier("plus") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Matrix") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("NumberOperations") + RPAREN(")") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Matrix") + DOT(".") + simpleIdentifier + Identifier("plus") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Matrix") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Matrix") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NumberOperations") + DOT(".") + simpleIdentifier + Identifier("plusMatrix") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("m1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Matrix") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("m2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Matrix") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("m1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("plus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("m2") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("m2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("plus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("m1") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/subtypingBetweenContextReceivers.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/subtypingBetweenContextReceivers.antlrtree.txt new file mode 100644 index 000000000..17b42ebc0 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/subtypingBetweenContextReceivers.antlrtree.txt @@ -0,0 +1,1976 @@ +File: subtypingBetweenContextReceivers.kt - 07b0cd410e1c0038512412d720dabbf3 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("C") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Cov") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("B") + COMMA(",") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("C") + COMMA(",") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("A") + COMMA(",") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f6") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + COMMA(",") + Identifier("Inv") + LANGLE("<") + Identifier("B") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f7") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + COMMA(",") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f8") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Inv") + LANGLE("<") + Identifier("T") + RANGLE(">") + COMMA(",") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("f9") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Cov") + LANGLE("<") + Identifier("A") + RANGLE(">") + COMMA(",") + Identifier("Cov") + LANGLE("<") + Identifier("B") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f10") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Cov") + LANGLE("<") + Identifier("T") + RANGLE(">") + COMMA(",") + Identifier("Cov") + LANGLE("<") + Identifier("A") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("f11") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("T") + COMMA(",") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("f12") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C1") + LCURL("{") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("42") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("m") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C2") + LCURL("{") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("42") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("m") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C3") + LCURL("{") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("42") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("m") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("B") + COMMA(",") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C4") + LCURL("{") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("B") + COMMA(",") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("42") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("B") + COMMA(",") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("m") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("C") + COMMA(",") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C5") + LCURL("{") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("C") + COMMA(",") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("42") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("C") + COMMA(",") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("m") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("A") + COMMA(",") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C6") + LCURL("{") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("A") + COMMA(",") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("42") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("A") + COMMA(",") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("m") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + COMMA(",") + Identifier("Inv") + LANGLE("<") + Identifier("B") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C7") + LCURL("{") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + COMMA(",") + Identifier("Inv") + LANGLE("<") + Identifier("B") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("42") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + COMMA(",") + Identifier("Inv") + LANGLE("<") + Identifier("B") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("m") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + COMMA(",") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C8") + LCURL("{") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + COMMA(",") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("42") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + COMMA(",") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("m") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Inv") + LANGLE("<") + Identifier("T") + RANGLE(">") + COMMA(",") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C9") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + LCURL("{") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Inv") + LANGLE("<") + Identifier("T") + RANGLE(">") + COMMA(",") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("42") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Inv") + LANGLE("<") + Identifier("T") + RANGLE(">") + COMMA(",") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("m") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Cov") + LANGLE("<") + Identifier("A") + RANGLE(">") + COMMA(",") + Identifier("Cov") + LANGLE("<") + Identifier("B") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C10") + LCURL("{") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Cov") + LANGLE("<") + Identifier("A") + RANGLE(">") + COMMA(",") + Identifier("Cov") + LANGLE("<") + Identifier("B") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("42") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Cov") + LANGLE("<") + Identifier("A") + RANGLE(">") + COMMA(",") + Identifier("Cov") + LANGLE("<") + Identifier("B") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("m") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Cov") + LANGLE("<") + Identifier("T") + RANGLE(">") + COMMA(",") + Identifier("Cov") + LANGLE("<") + Identifier("A") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C11") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + LCURL("{") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Cov") + LANGLE("<") + Identifier("T") + RANGLE(">") + COMMA(",") + Identifier("Cov") + LANGLE("<") + Identifier("A") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("42") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Cov") + LANGLE("<") + Identifier("T") + RANGLE(">") + COMMA(",") + Identifier("Cov") + LANGLE("<") + Identifier("A") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("m") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("T") + COMMA(",") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C12") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + LCURL("{") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("T") + COMMA(",") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("42") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("T") + COMMA(",") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("m") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p1") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + semis + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + LCURL("{") + RETURN("return") + NullLiteral("null") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p2") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + semis + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + LCURL("{") + RETURN("return") + NullLiteral("null") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p3") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + semis + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + LCURL("{") + RETURN("return") + NullLiteral("null") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("B") + COMMA(",") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p4") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + semis + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + LCURL("{") + RETURN("return") + NullLiteral("null") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("C") + COMMA(",") + Identifier("C") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p5") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + semis + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + LCURL("{") + RETURN("return") + NullLiteral("null") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("A") + COMMA(",") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p6") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + semis + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + LCURL("{") + RETURN("return") + NullLiteral("null") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + COMMA(",") + Identifier("Inv") + LANGLE("<") + Identifier("B") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p7") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + semis + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + LCURL("{") + RETURN("return") + NullLiteral("null") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + COMMA(",") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p8") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + semis + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + LCURL("{") + RETURN("return") + NullLiteral("null") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Inv") + LANGLE("<") + Identifier("T") + RANGLE(">") + COMMA(",") + Identifier("Inv") + LANGLE("<") + Identifier("A") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + variableDeclaration + simpleIdentifier + Identifier("p9") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + semis + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + LCURL("{") + RETURN("return") + NullLiteral("null") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Cov") + LANGLE("<") + Identifier("A") + RANGLE(">") + COMMA(",") + Identifier("Cov") + LANGLE("<") + Identifier("B") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p10") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + semis + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + LCURL("{") + RETURN("return") + NullLiteral("null") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Cov") + LANGLE("<") + Identifier("T") + RANGLE(">") + COMMA(",") + Identifier("Cov") + LANGLE("<") + Identifier("A") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + variableDeclaration + simpleIdentifier + Identifier("p11") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + semis + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + LCURL("{") + RETURN("return") + NullLiteral("null") + RCURL("}") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("T") + COMMA(",") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + variableDeclaration + simpleIdentifier + Identifier("p12") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + semis + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + LCURL("{") + RETURN("return") + NullLiteral("null") + RCURL("}") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("g") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + COMMA(",") + topLevelObject + declaration + topLevelObject + declaration + VALUE("value") + COLON(":") + Identifier("Any") + RPAREN(")") + COLON(":") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + LCURL("{") + semis + NL("\n") + RETURN("return") + topLevelObject + declaration + topLevelObject + declaration + VALUE("value") + AS("as") + LPAREN("(") + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("lf") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("A") + COMMA(",") + Identifier("B") + RPAREN(")") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + ASSIGNMENT("=") + LCURL("{") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/superWithContext.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/superWithContext.antlrtree.txt new file mode 100644 index 000000000..164407b18 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/superWithContext.antlrtree.txt @@ -0,0 +1,220 @@ +File: superWithContext.kt - 5ee98714a338c12a79ba62a7b79f71ed (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Context") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("h") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Context") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("g") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER_AT("super@B") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER_AT("super@Context") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("h") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/syntaxError.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/syntaxError.antlrtree.txt new file mode 100644 index 000000000..4c4888e2d --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/syntaxError.antlrtree.txt @@ -0,0 +1,24 @@ +File: syntaxError.kt - 4d0ee6be7b8e0ac7e18b54e4e0954f05 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/thisIdentifierInfo.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/thisIdentifierInfo.antlrtree.txt new file mode 100644 index 000000000..fe7a43287 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/thisIdentifierInfo.antlrtree.txt @@ -0,0 +1,173 @@ +File: thisIdentifierInfo.kt - aadc35b302ca6d1640dae92a00fdd69b (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + RPAREN(")") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/thisWithCustomLabel.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/thisWithCustomLabel.antlrtree.txt new file mode 100644 index 000000000..b1884fbf2 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/thisWithCustomLabel.antlrtree.txt @@ -0,0 +1,542 @@ +File: thisWithCustomLabel.kt - 37524218c68fbbcdc8d525a31f177fa5 (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("labelAInt") + topLevelObject + declaration + topLevelObject + declaration + AT_NO_WS("@") + Identifier("A") + LANGLE("<") + Identifier("Int") + RANGLE(">") + COMMA(",") + Identifier("A") + LANGLE("<") + Identifier("String") + RANGLE(">") + COMMA(",") + Identifier("labelB") + topLevelObject + declaration + topLevelObject + declaration + AT_NO_WS("@") + Identifier("B") + RPAREN(")") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@labelAInt") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@labelB") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("b") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@B") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("labelAInt") + topLevelObject + declaration + topLevelObject + declaration + AT_NO_WS("@") + Identifier("A") + LANGLE("<") + Identifier("Int") + RANGLE(">") + COMMA(",") + Identifier("A") + LANGLE("<") + Identifier("String") + RANGLE(">") + COMMA(",") + Identifier("labelB") + topLevelObject + declaration + topLevelObject + declaration + AT_NO_WS("@") + Identifier("B") + RPAREN(")") + topLevelObject + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@labelAInt") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@B") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@labelB") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("b") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@C") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("c") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@p") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("c") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("c") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/thisWithReceiverLabelsClasses.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/thisWithReceiverLabelsClasses.antlrtree.txt new file mode 100644 index 000000000..97bef48d7 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/thisWithReceiverLabelsClasses.antlrtree.txt @@ -0,0 +1,154 @@ +File: thisWithReceiverLabelsClasses.kt - cb704714133225a59056eff9426c462f (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + RPAREN(")") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/thisWithReceiverLabelsFunctions.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/thisWithReceiverLabelsFunctions.antlrtree.txt new file mode 100644 index 000000000..d407aa16a --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/thisWithReceiverLabelsFunctions.antlrtree.txt @@ -0,0 +1,557 @@ +File: thisWithReceiverLabelsFunctions.kt - 5c39c7eb7307477686f7af05ff89f97c (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + LANGLE("<") + Identifier("String") + RANGLE(">") + RPAREN(")") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + LANGLE("<") + Identifier("String") + RANGLE(">") + COMMA(",") + Identifier("B") + RPAREN(")") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@B") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("b") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + LANGLE("<") + Identifier("Int") + RANGLE(">") + COMMA(",") + Identifier("A") + LANGLE("<") + Identifier("String") + RANGLE(">") + COMMA(",") + Identifier("B") + RPAREN(")") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@B") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("b") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + LANGLE("<") + Identifier("Int") + RANGLE(">") + COMMA(",") + Identifier("A") + LANGLE("<") + Identifier("String") + RANGLE(">") + COMMA(",") + Identifier("B") + RPAREN(")") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + DOT(".") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@B") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("b") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@C") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("c") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@f") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("c") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("c") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/thisWithReceiverLabelsProperties.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/thisWithReceiverLabelsProperties.antlrtree.txt new file mode 100644 index 000000000..cfcbf3b43 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/thisWithReceiverLabelsProperties.antlrtree.txt @@ -0,0 +1,911 @@ +File: thisWithReceiverLabelsProperties.kt - 853ec46461e570be917f9605c24a0eb1 (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + LANGLE("<") + Identifier("String") + RANGLE(">") + COMMA(",") + Identifier("B") + RPAREN(")") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@B") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("b") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@B") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("b") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + FIELD("field") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + LANGLE("<") + Identifier("Int") + RANGLE(">") + COMMA(",") + Identifier("A") + LANGLE("<") + Identifier("String") + RANGLE(">") + COMMA(",") + Identifier("B") + RPAREN(")") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toDouble") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@B") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("b") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@B") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("b") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + FIELD("field") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + LANGLE("<") + Identifier("Int") + RANGLE(">") + COMMA(",") + Identifier("A") + LANGLE("<") + Identifier("String") + RANGLE(">") + COMMA(",") + Identifier("B") + RPAREN(")") + topLevelObject + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@B") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("b") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@C") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("c") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@p") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("c") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("c") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/typeParameterAsContextReceiver.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/typeParameterAsContextReceiver.antlrtree.txt new file mode 100644 index 000000000..f32654f3b --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/typeParameterAsContextReceiver.antlrtree.txt @@ -0,0 +1,199 @@ +File: typeParameterAsContextReceiver.kt - a8a0ef7d9a33481425bd28f48dc4c56d (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("T") + RPAREN(")") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("useContext") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("useContext") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toDouble") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/typeParameterized.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/typeParameterized.antlrtree.txt new file mode 100644 index 000000000..6c87f984f --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/typeParameterized.antlrtree.txt @@ -0,0 +1,209 @@ +File: typeParameterized.kt - e57983076cdf8cedf88e94707cd859b9 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("T") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/typeParameterizedList.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/typeParameterizedList.antlrtree.txt new file mode 100644 index 000000000..849471df1 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/typeParameterizedList.antlrtree.txt @@ -0,0 +1,500 @@ +File: typeParameterizedList.kt - 89c29bedca842dcd35b21e392d90d68a (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("listOf") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("List") + LANGLE("<") + Identifier("T") + RANGLE(">") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("2") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("3") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/unsupported.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/unsupported.antlrtree.txt new file mode 100644 index 000000000..cda03824a --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/unsupported.antlrtree.txt @@ -0,0 +1,738 @@ +File: unsupported.kt - 9155eaa2d91b51b7521c996162d363f9 (WITH_ERRORS) + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Any") + RPAREN(")") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("g") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("Any") + RPAREN(")") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + COMMA(",") + topLevelObject + declaration + topLevelObject + declaration + VALUE("value") + COLON(":") + Identifier("Any") + RPAREN(")") + COLON(":") + Identifier("context") + LPAREN("(") + Identifier("A") + RPAREN(")") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + LCURL("{") + semis + NL("\n") + RETURN("return") + topLevelObject + declaration + topLevelObject + declaration + VALUE("value") + AS("as") + LPAREN("(") + Identifier("context") + LPAREN("(") + Identifier("A") + RPAREN(")") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("g") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("g") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Any") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("sameAsFWithoutNonContextualCounterpart") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("g") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("g") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Any") + RPAREN(")") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("42") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("String") + COMMA(",") + Identifier("Int") + RPAREN(")") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + LCURL("{") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("Any") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("p") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + IntegerLiteral("42") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("String") + COMMA(",") + Identifier("Int") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("m") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("useWithContextReceivers") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("sameAsFWithoutNonContextualCounterpart") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("p") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("m") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/withExplicitReceiver.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/withExplicitReceiver.antlrtree.txt new file mode 100644 index 000000000..086be0c33 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/withExplicitReceiver.antlrtree.txt @@ -0,0 +1,336 @@ +File: withExplicitReceiver.kt - dc2ef57a98113eda735a5eb2229be82e (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/contextReceivers/withExplicitReceiverError.antlrtree.txt b/grammar/testData/diagnostics/extensions/contextReceivers/withExplicitReceiverError.antlrtree.txt new file mode 100644 index 000000000..97cf585d5 --- /dev/null +++ b/grammar/testData/diagnostics/extensions/contextReceivers/withExplicitReceiverError.antlrtree.txt @@ -0,0 +1,320 @@ +File: withExplicitReceiverError.kt - bb0b806d3ce3a83661b6a02a8ed1829a (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + semis + NL("\n") + NL("\n") + Identifier("context") + LPAREN("(") + Identifier("A") + RPAREN(")") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/extensions/extensionMemberInClassObject.antlrtree.txt b/grammar/testData/diagnostics/extensions/extensionMemberInClassObject.antlrtree.txt index 2c35ed456..e57f0bafc 100644 --- a/grammar/testData/diagnostics/extensions/extensionMemberInClassObject.antlrtree.txt +++ b/grammar/testData/diagnostics/extensions/extensionMemberInClassObject.antlrtree.txt @@ -1,6 +1,4 @@ -File: extensionMemberInClassObject.kt - 9be633f700d344cdca73243212275ea5 - NL("\n") - NL("\n") +File: extensionMemberInClassObject.kt - e6f9c0bf53efdfe6e8d892c9910d321e NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/extensions/extensionPropertyVsParameter.antlrtree.txt b/grammar/testData/diagnostics/extensions/extensionPropertyVsParameter.antlrtree.txt index a44566348..55d6118c4 100644 --- a/grammar/testData/diagnostics/extensions/extensionPropertyVsParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/extensions/extensionPropertyVsParameter.antlrtree.txt @@ -174,6 +174,4 @@ File: extensionPropertyVsParameter.kt - fae4d7e2852f1deab5d3363ad8afa63b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/extensions/kt3470.antlrtree.txt b/grammar/testData/diagnostics/extensions/kt3470.antlrtree.txt index f74994dc5..e9774083c 100644 --- a/grammar/testData/diagnostics/extensions/kt3470.antlrtree.txt +++ b/grammar/testData/diagnostics/extensions/kt3470.antlrtree.txt @@ -101,6 +101,4 @@ File: kt3470.kt - 5ffc3dc4f1f48a175ec2ab79c5aaaed0 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/extensions/kt3563.antlrtree.txt b/grammar/testData/diagnostics/extensions/kt3563.antlrtree.txt index 27777c595..7e1fd21fb 100644 --- a/grammar/testData/diagnostics/extensions/kt3563.antlrtree.txt +++ b/grammar/testData/diagnostics/extensions/kt3563.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt3563.kt - 93b7660a5f41221a7103da88d69b4625 +File: kt3563.kt - ab9038160be69592e7549d159bbc7f0d NL("\n") NL("\n") NL("\n") @@ -196,5 +196,5 @@ File: kt3563.kt - 93b7660a5f41221a7103da88d69b4625 LPAREN("(") RPAREN(")") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/extensions/object.antlrtree.txt b/grammar/testData/diagnostics/extensions/object.antlrtree.txt index 4e8180dbb..6a5ef3934 100644 --- a/grammar/testData/diagnostics/extensions/object.antlrtree.txt +++ b/grammar/testData/diagnostics/extensions/object.antlrtree.txt @@ -153,6 +153,4 @@ File: object.kt - fcce88115f9dde67e2c95b99af78a65c simpleIdentifier Identifier("bar") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/extensions/throwOutCandidatesByReceiver.antlrtree.txt b/grammar/testData/diagnostics/extensions/throwOutCandidatesByReceiver.antlrtree.txt index a96423a7f..1951acf00 100644 --- a/grammar/testData/diagnostics/extensions/throwOutCandidatesByReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/extensions/throwOutCandidatesByReceiver.antlrtree.txt @@ -1,5 +1,4 @@ -File: throwOutCandidatesByReceiver.kt - c1581ff3582a58e7e67a4cfdfdd8225c - NL("\n") +File: throwOutCandidatesByReceiver.kt - 5f3149bae0cdabddc14c673dea4f24ae packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/extensions/throwOutCandidatesByReceiver2.antlrtree.txt b/grammar/testData/diagnostics/extensions/throwOutCandidatesByReceiver2.antlrtree.txt index fb57fa1fa..66a12450a 100644 --- a/grammar/testData/diagnostics/extensions/throwOutCandidatesByReceiver2.antlrtree.txt +++ b/grammar/testData/diagnostics/extensions/throwOutCandidatesByReceiver2.antlrtree.txt @@ -1,4 +1,4 @@ -File: throwOutCandidatesByReceiver2.kt - 5b21d7e0817dd96f6f5b2de357ac453a +File: throwOutCandidatesByReceiver2.kt - dab35676c054c1c888cb658c80ac8919 NL("\n") packageHeader PACKAGE("package") @@ -265,5 +265,5 @@ File: throwOutCandidatesByReceiver2.kt - 5b21d7e0817dd96f6f5b2de357ac453a NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/extensions/variableInvoke.antlrtree.txt b/grammar/testData/diagnostics/extensions/variableInvoke.antlrtree.txt index fdc2bbf19..2ce3d883d 100644 --- a/grammar/testData/diagnostics/extensions/variableInvoke.antlrtree.txt +++ b/grammar/testData/diagnostics/extensions/variableInvoke.antlrtree.txt @@ -294,6 +294,4 @@ File: variableInvoke.kt - 5d458b8d60183d763f59afbbfdc96960 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/external/noExternalModifierInheritance.antlrtree.txt b/grammar/testData/diagnostics/external/noExternalModifierInheritance.antlrtree.txt new file mode 100644 index 000000000..0c12e83a5 --- /dev/null +++ b/grammar/testData/diagnostics/external/noExternalModifierInheritance.antlrtree.txt @@ -0,0 +1,117 @@ +File: noExternalModifierInheritance.kt - 352ac496469e613795786e5096499804 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + modifier + functionModifier + EXTERNAL("external") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/fileDependencyRecursion.fileDependencyRecursion.antlrtree.txt b/grammar/testData/diagnostics/fileDependencyRecursion.fileDependencyRecursion.antlrtree.txt index 990b0fad7..1c623dce4 100644 --- a/grammar/testData/diagnostics/fileDependencyRecursion.fileDependencyRecursion.antlrtree.txt +++ b/grammar/testData/diagnostics/fileDependencyRecursion.fileDependencyRecursion.antlrtree.txt @@ -88,6 +88,4 @@ File: fileDependencyRecursion.fileDependencyRecursion.kt - defd78eafd45397240651 Identifier("some") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/fileDependencyRecursion.fileDependencyRecursionOther.antlrtree.txt b/grammar/testData/diagnostics/fileDependencyRecursion.fileDependencyRecursionOther.antlrtree.txt index 508852f08..e5c6db9f9 100644 --- a/grammar/testData/diagnostics/fileDependencyRecursion.fileDependencyRecursionOther.antlrtree.txt +++ b/grammar/testData/diagnostics/fileDependencyRecursion.fileDependencyRecursionOther.antlrtree.txt @@ -86,6 +86,4 @@ File: fileDependencyRecursion.fileDependencyRecursionOther.kt - 9bbd10df55cd9127 primaryExpression simpleIdentifier Identifier("normal") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/funInterface/funInterfaceConstructorReferences_after.antlrtree.txt b/grammar/testData/diagnostics/funInterface/funInterfaceConstructorReferences_after.antlrtree.txt new file mode 100644 index 000000000..1bd77d968 --- /dev/null +++ b/grammar/testData/diagnostics/funInterface/funInterfaceConstructorReferences_after.antlrtree.txt @@ -0,0 +1,234 @@ +File: funInterfaceConstructorReferences_after.kt - 461f89698b45688190f53c930ec95bc8 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("run") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Runnable") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("w") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/funInterface/funInterfaceConstructorReferences_before.antlrtree.txt b/grammar/testData/diagnostics/funInterface/funInterfaceConstructorReferences_before.antlrtree.txt new file mode 100644 index 000000000..ced88b62f --- /dev/null +++ b/grammar/testData/diagnostics/funInterface/funInterfaceConstructorReferences_before.antlrtree.txt @@ -0,0 +1,234 @@ +File: funInterfaceConstructorReferences_before.kt - a4ec9c8256b19e6eaecfa07714149bc7 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("run") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Runnable") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("w") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/funInterface/functionDelegateClashOnJvm.antlrtree.txt b/grammar/testData/diagnostics/funInterface/functionDelegateClashOnJvm.antlrtree.txt index c691b4f90..801b2b679 100644 --- a/grammar/testData/diagnostics/funInterface/functionDelegateClashOnJvm.antlrtree.txt +++ b/grammar/testData/diagnostics/funInterface/functionDelegateClashOnJvm.antlrtree.txt @@ -1,4 +1,5 @@ -File: functionDelegateClashOnJvm.kt - 00c945974dba0fd95193f62e7e74bfaa +File: functionDelegateClashOnJvm.kt - 2d26af03da0aecf1eee51a731df847bd + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/funInterface/resolveFunInterfaceWithoutMainMethod.antlrtree.txt b/grammar/testData/diagnostics/funInterface/resolveFunInterfaceWithoutMainMethod.antlrtree.txt index a292d73ed..84ffd7e3b 100644 --- a/grammar/testData/diagnostics/funInterface/resolveFunInterfaceWithoutMainMethod.antlrtree.txt +++ b/grammar/testData/diagnostics/funInterface/resolveFunInterfaceWithoutMainMethod.antlrtree.txt @@ -1,4 +1,4 @@ -File: resolveFunInterfaceWithoutMainMethod.kt - 2467e49bca51e872d6b9b60ffdca22e6 +File: resolveFunInterfaceWithoutMainMethod.kt - 36b616743144f54d20bd4dd25012b964 packageHeader importList topLevelObject @@ -228,5 +228,5 @@ File: resolveFunInterfaceWithoutMainMethod.kt - 2467e49bca51e872d6b9b60ffdca22e6 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/functionAsExpression/Common.antlrtree.txt b/grammar/testData/diagnostics/functionAsExpression/Common.antlrtree.txt index 6c5cd1ee1..c58274689 100644 --- a/grammar/testData/diagnostics/functionAsExpression/Common.antlrtree.txt +++ b/grammar/testData/diagnostics/functionAsExpression/Common.antlrtree.txt @@ -683,6 +683,4 @@ File: Common.kt - d4c53f10ca81ceb428f05dd71c6bd139 RPAREN(")") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionAsExpression/ForbiddenNonLocalReturn.antlrtree.txt b/grammar/testData/diagnostics/functionAsExpression/ForbiddenNonLocalReturn.antlrtree.txt index 23709bdef..d26b76862 100644 --- a/grammar/testData/diagnostics/functionAsExpression/ForbiddenNonLocalReturn.antlrtree.txt +++ b/grammar/testData/diagnostics/functionAsExpression/ForbiddenNonLocalReturn.antlrtree.txt @@ -1,4 +1,5 @@ -File: ForbiddenNonLocalReturn.kt - 86cb00adc117d4d4c6e4e82c446db89e +File: ForbiddenNonLocalReturn.kt - 33d7f5836c5e6a5b7c556ec69193aaaa + NL("\n") NL("\n") NL("\n") packageHeader @@ -292,6 +293,4 @@ File: ForbiddenNonLocalReturn.kt - 86cb00adc117d4d4c6e4e82c446db89e RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionAsExpression/FunctionType.antlrtree.txt b/grammar/testData/diagnostics/functionAsExpression/FunctionType.antlrtree.txt index 027176e95..e6b04c901 100644 --- a/grammar/testData/diagnostics/functionAsExpression/FunctionType.antlrtree.txt +++ b/grammar/testData/diagnostics/functionAsExpression/FunctionType.antlrtree.txt @@ -1,5 +1,4 @@ -File: FunctionType.kt - 4208d33e0bdee9cd8420a67033c21ef1 - NL("\n") +File: FunctionType.kt - 42561934de7937cbb268e4c0184a0f11 NL("\n") NL("\n") NL("\n") @@ -846,6 +845,4 @@ File: FunctionType.kt - 4208d33e0bdee9cd8420a67033c21ef1 RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionAsExpression/InferenceParametersTypes.antlrtree.txt b/grammar/testData/diagnostics/functionAsExpression/InferenceParametersTypes.antlrtree.txt index 1dbf7072f..d37969a38 100644 --- a/grammar/testData/diagnostics/functionAsExpression/InferenceParametersTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/functionAsExpression/InferenceParametersTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: InferenceParametersTypes.kt - 93b259772b3d7d467755a6c4459c4998 - NL("\n") +File: InferenceParametersTypes.kt - ee7c24dd48886296e713cb1410d7b18a NL("\n") NL("\n") packageHeader @@ -710,6 +709,4 @@ File: InferenceParametersTypes.kt - 93b259772b3d7d467755a6c4459c4998 statements RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionAsExpression/MissingParameterTypes.antlrtree.txt b/grammar/testData/diagnostics/functionAsExpression/MissingParameterTypes.antlrtree.txt index a01cb89e2..4269227ab 100644 --- a/grammar/testData/diagnostics/functionAsExpression/MissingParameterTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/functionAsExpression/MissingParameterTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: MissingParameterTypes.kt - 152ec3c7a195e79b7ba91fe98ff48223 - NL("\n") +File: MissingParameterTypes.kt - 640d1bad8523c5cea5a2c6ee3771b474 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/functionAsExpression/NoOverloadError.antlrtree.txt b/grammar/testData/diagnostics/functionAsExpression/NoOverloadError.antlrtree.txt index 5ab2b86f3..7f0a3734b 100644 --- a/grammar/testData/diagnostics/functionAsExpression/NoOverloadError.antlrtree.txt +++ b/grammar/testData/diagnostics/functionAsExpression/NoOverloadError.antlrtree.txt @@ -493,6 +493,4 @@ File: NoOverloadError.kt - f4c43564b3e851a1e9c93a021445e57b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionAsExpression/Parameters.antlrtree.txt b/grammar/testData/diagnostics/functionAsExpression/Parameters.antlrtree.txt index 807f16325..af2d9e31f 100644 --- a/grammar/testData/diagnostics/functionAsExpression/Parameters.antlrtree.txt +++ b/grammar/testData/diagnostics/functionAsExpression/Parameters.antlrtree.txt @@ -671,6 +671,4 @@ File: Parameters.kt - 63a52c510b5e8c36ed3f32e8cd995f8b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionAsExpression/ReceiverByExpectedType.antlrtree.txt b/grammar/testData/diagnostics/functionAsExpression/ReceiverByExpectedType.antlrtree.txt index 6ae8f6b54..cd87844ae 100644 --- a/grammar/testData/diagnostics/functionAsExpression/ReceiverByExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/functionAsExpression/ReceiverByExpectedType.antlrtree.txt @@ -1,5 +1,4 @@ -File: ReceiverByExpectedType.kt - 575046fa0678ba9a914730d49bcfb9e1 - NL("\n") +File: ReceiverByExpectedType.kt - abb563d21e335e35e771dedaa1e50662 packageHeader importList topLevelObject @@ -117,6 +116,4 @@ File: ReceiverByExpectedType.kt - 575046fa0678ba9a914730d49bcfb9e1 Identifier("length") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionAsExpression/ReturnAndLabels.antlrtree.txt b/grammar/testData/diagnostics/functionAsExpression/ReturnAndLabels.antlrtree.txt index f56f586d9..984c6d028 100644 --- a/grammar/testData/diagnostics/functionAsExpression/ReturnAndLabels.antlrtree.txt +++ b/grammar/testData/diagnostics/functionAsExpression/ReturnAndLabels.antlrtree.txt @@ -150,6 +150,4 @@ File: ReturnAndLabels.kt - b62af32842544aabf2a7ad9c64fd4199 RCURL("}") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionAsExpression/ReturnTypeCheck.antlrtree.txt b/grammar/testData/diagnostics/functionAsExpression/ReturnTypeCheck.antlrtree.txt index e213d80a0..19138c204 100644 --- a/grammar/testData/diagnostics/functionAsExpression/ReturnTypeCheck.antlrtree.txt +++ b/grammar/testData/diagnostics/functionAsExpression/ReturnTypeCheck.antlrtree.txt @@ -427,6 +427,4 @@ File: ReturnTypeCheck.kt - adc6b9afdae3fe6173021df65b8a0816 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionAsExpression/ScopeCheck.antlrtree.txt b/grammar/testData/diagnostics/functionAsExpression/ScopeCheck.antlrtree.txt index 8eb3deee6..54eff0c8c 100644 --- a/grammar/testData/diagnostics/functionAsExpression/ScopeCheck.antlrtree.txt +++ b/grammar/testData/diagnostics/functionAsExpression/ScopeCheck.antlrtree.txt @@ -300,6 +300,4 @@ File: ScopeCheck.kt - 3f0266d1d93ebfd8c919712c0bc8e607 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionAsExpression/WithGenericParameters.antlrtree.txt b/grammar/testData/diagnostics/functionAsExpression/WithGenericParameters.antlrtree.txt index cb4a41355..1330ab69c 100644 --- a/grammar/testData/diagnostics/functionAsExpression/WithGenericParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/functionAsExpression/WithGenericParameters.antlrtree.txt @@ -1,5 +1,4 @@ -File: WithGenericParameters.kt - ac3c5d7cc186acd12b808bddbcaa2c1d (WITH_ERRORS) - NL("\n") +File: WithGenericParameters.kt - 09f1b0304fa5600dcfe1786eef263d8b (WITH_ERRORS) NL("\n") NL("\n") packageHeader @@ -364,6 +363,4 @@ File: WithGenericParameters.kt - ac3c5d7cc186acd12b808bddbcaa2c1d (WITH_ERRORS) NL("\n") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionAsExpression/WithOuterGeneric.antlrtree.txt b/grammar/testData/diagnostics/functionAsExpression/WithOuterGeneric.antlrtree.txt index 2d2083696..ab28cc472 100644 --- a/grammar/testData/diagnostics/functionAsExpression/WithOuterGeneric.antlrtree.txt +++ b/grammar/testData/diagnostics/functionAsExpression/WithOuterGeneric.antlrtree.txt @@ -1293,6 +1293,4 @@ File: WithOuterGeneric.kt - 24163c2e49114a7974602b896d4e7bb9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionAsExpression/WithoutBody.antlrtree.txt b/grammar/testData/diagnostics/functionAsExpression/WithoutBody.antlrtree.txt index b7586ac3e..16f39e242 100644 --- a/grammar/testData/diagnostics/functionAsExpression/WithoutBody.antlrtree.txt +++ b/grammar/testData/diagnostics/functionAsExpression/WithoutBody.antlrtree.txt @@ -269,6 +269,4 @@ File: WithoutBody.kt - 945483bc515171c3f86cb9e41122febc semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/DeprecatedSyntax.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/DeprecatedSyntax.antlrtree.txt index 54b450d7a..13a1aec45 100644 --- a/grammar/testData/diagnostics/functionLiterals/DeprecatedSyntax.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/DeprecatedSyntax.antlrtree.txt @@ -1,5 +1,4 @@ -File: DeprecatedSyntax.kt - 9c55a0a21c936954875c50aa2a5f72c3 (WITH_ERRORS) - NL("\n") +File: DeprecatedSyntax.kt - a6313d3cd381faebe19f9948e7151d72 (WITH_ERRORS) packageHeader importList topLevelObject @@ -819,6 +818,4 @@ File: DeprecatedSyntax.kt - 9c55a0a21c936954875c50aa2a5f72c3 (WITH_ERRORS) statements RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/ExpectedParameterTypeMismatchVariance.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/ExpectedParameterTypeMismatchVariance.antlrtree.txt index 4190e053e..582bbdd29 100644 --- a/grammar/testData/diagnostics/functionLiterals/ExpectedParameterTypeMismatchVariance.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/ExpectedParameterTypeMismatchVariance.antlrtree.txt @@ -1,5 +1,4 @@ -File: ExpectedParameterTypeMismatchVariance.kt - e735377d6431fd524549c677c18d2f4f - NL("\n") +File: ExpectedParameterTypeMismatchVariance.kt - 59df847f6ee9eefc3439ed95c52010f2 NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/functionLiterals/ExpectedParametersTypesMismatch.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/ExpectedParametersTypesMismatch.antlrtree.txt index ec4b82791..53789d7c6 100644 --- a/grammar/testData/diagnostics/functionLiterals/ExpectedParametersTypesMismatch.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/ExpectedParametersTypesMismatch.antlrtree.txt @@ -1,5 +1,4 @@ -File: ExpectedParametersTypesMismatch.kt - 33d22ee98948ba1c375c7c27f8278baf - NL("\n") +File: ExpectedParametersTypesMismatch.kt - 2dd2cff5e65ca909da6b7e9d52dc945b packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/functionLiterals/LabeledFunctionLiterals.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/LabeledFunctionLiterals.antlrtree.txt index 934a9f944..142b5b57c 100644 --- a/grammar/testData/diagnostics/functionLiterals/LabeledFunctionLiterals.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/LabeledFunctionLiterals.antlrtree.txt @@ -1,4 +1,4 @@ -File: LabeledFunctionLiterals.kt - efbb7cdfba6e82b58dff082c9e648efa +File: LabeledFunctionLiterals.kt - ab94f791d38f8dbbad0802d5b108c63f NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/functionLiterals/assignmentOperationInLambdaWithExpectedType.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/assignmentOperationInLambdaWithExpectedType.antlrtree.txt index b0a645b48..0b0911f45 100644 --- a/grammar/testData/diagnostics/functionLiterals/assignmentOperationInLambdaWithExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/assignmentOperationInLambdaWithExpectedType.antlrtree.txt @@ -1,5 +1,4 @@ -File: assignmentOperationInLambdaWithExpectedType.kt - c2ffdc6502d5f2e90fc9ba14d999b7b0 - NL("\n") +File: assignmentOperationInLambdaWithExpectedType.kt - bdbbed9e3f97846ef41e4b89811dcc4a packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/complexInference.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/complexInference.antlrtree.txt index fabc16b98..26c2c5d88 100644 --- a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/complexInference.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/complexInference.antlrtree.txt @@ -1,5 +1,4 @@ -File: complexInference.kt - 97b8db4a9c0bfe5d4d74c4ff98d4a3ac - NL("\n") +File: complexInference.kt - 8cafeffbfe00a338649e67b7b1fa6d92 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/inferredFunctionalType.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/inferredFunctionalType.antlrtree.txt index c5e021ca3..4fae62914 100644 --- a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/inferredFunctionalType.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/inferredFunctionalType.antlrtree.txt @@ -1,5 +1,4 @@ -File: inferredFunctionalType.kt - 1961110398c7862d6034c20754822c90 - NL("\n") +File: inferredFunctionalType.kt - 2080a26e08acbe8f1d4ca3933026f690 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/modifiers.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/modifiers.antlrtree.txt index edede0e17..086f32503 100644 --- a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/modifiers.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/modifiers.antlrtree.txt @@ -1,4 +1,5 @@ -File: modifiers.kt - 4316e9365a82c42897d20ea65e263c61 (WITH_ERRORS) +File: modifiers.kt - ae59287255b7a3eb51c6115c2511d1e9 (WITH_ERRORS) + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/noExpectedType.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/noExpectedType.antlrtree.txt index b80095de2..9da04cee8 100644 --- a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/noExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/noExpectedType.antlrtree.txt @@ -1,5 +1,4 @@ -File: noExpectedType.kt - 3f8fcee73c1c4c1be434e9f719781e91 - NL("\n") +File: noExpectedType.kt - 9fc4ed2129eae28e28aef8d05d422fc1 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/redeclaration.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/redeclaration.antlrtree.txt index 84c47cf89..d0425b5fa 100644 --- a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/redeclaration.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/redeclaration.antlrtree.txt @@ -1,5 +1,4 @@ -File: redeclaration.kt - c12d3d39ff5fa0a9beebe87b7baba672 - NL("\n") +File: redeclaration.kt - bbef4a7dabfdd412b1a5445ddb56510a NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/simple.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/simple.antlrtree.txt index 7c1e37359..dc06550f2 100644 --- a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/simple.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/simple.antlrtree.txt @@ -1,5 +1,4 @@ -File: simple.kt - 1edd95589cb66047142c74cce034bc65 - NL("\n") +File: simple.kt - aa00a0b3565d4233bb4b512b2ab27f3e NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/underscore.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/underscore.antlrtree.txt index 503543142..06387e63c 100644 --- a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/underscore.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/underscore.antlrtree.txt @@ -1,5 +1,4 @@ -File: underscore.kt - 71327b3152264545309db6cc95a0b16c - NL("\n") +File: underscore.kt - b614160833c1a5b7b6ca7f3a44f59fa6 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/unusedParameters.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/unusedParameters.antlrtree.txt index aa30c40c7..341247992 100644 --- a/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/unusedParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/destructuringInLambdas/unusedParameters.antlrtree.txt @@ -1,4 +1,4 @@ -File: unusedParameters.kt - cc770849002b607e742c258cfc576031 +File: unusedParameters.kt - ad075290b10650f1b093807c36b12ed5 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/functionLiterals/functionExpressionAsLastExpressionInBlock.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/functionExpressionAsLastExpressionInBlock.antlrtree.txt index 9b1153a4d..ed009903e 100644 --- a/grammar/testData/diagnostics/functionLiterals/functionExpressionAsLastExpressionInBlock.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/functionExpressionAsLastExpressionInBlock.antlrtree.txt @@ -299,6 +299,4 @@ File: functionExpressionAsLastExpressionInBlock.kt - 5f5b068d168705564c5c98d87c1 RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/functionLIteralInBlockInIf.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/functionLIteralInBlockInIf.antlrtree.txt index 46a12dd97..e736190cd 100644 --- a/grammar/testData/diagnostics/functionLiterals/functionLIteralInBlockInIf.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/functionLIteralInBlockInIf.antlrtree.txt @@ -288,6 +288,4 @@ File: functionLIteralInBlockInIf.kt - 8d75ec1e9aa678e44cb2148ceb3dc962 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/functionLiteralAsArgumentForFunction.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/functionLiteralAsArgumentForFunction.antlrtree.txt index 0986bda6b..fced1a7c7 100644 --- a/grammar/testData/diagnostics/functionLiterals/functionLiteralAsArgumentForFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/functionLiteralAsArgumentForFunction.antlrtree.txt @@ -1,4 +1,5 @@ -File: functionLiteralAsArgumentForFunction.kt - 7b732bddde46ebfe3a076586d430d44d +File: functionLiteralAsArgumentForFunction.kt - 310343211245f34e592bf085f1df2894 + NL("\n") packageHeader importList topLevelObject @@ -616,5 +617,5 @@ File: functionLiteralAsArgumentForFunction.kt - 7b732bddde46ebfe3a076586d430d44d simpleIdentifier Identifier("TimeIndex") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/functionLiteralInIf.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/functionLiteralInIf.antlrtree.txt index 7ff53e391..4d8077950 100644 --- a/grammar/testData/diagnostics/functionLiterals/functionLiteralInIf.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/functionLiteralInIf.antlrtree.txt @@ -289,6 +289,4 @@ File: functionLiteralInIf.kt - aa89fd0a1996f7b477b936e579313274 RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/genericFunctionalTypeOnRHSOfPlusAssign.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/genericFunctionalTypeOnRHSOfPlusAssign.antlrtree.txt index 06b92bbad..5c9c070e0 100644 --- a/grammar/testData/diagnostics/functionLiterals/genericFunctionalTypeOnRHSOfPlusAssign.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/genericFunctionalTypeOnRHSOfPlusAssign.antlrtree.txt @@ -396,6 +396,4 @@ File: genericFunctionalTypeOnRHSOfPlusAssign.kt - f94710d8d236df51fbf64bbb1dd640 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/higherOrderCallMissingParameters.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/higherOrderCallMissingParameters.antlrtree.txt index 73e852e17..b99500654 100644 --- a/grammar/testData/diagnostics/functionLiterals/higherOrderCallMissingParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/higherOrderCallMissingParameters.antlrtree.txt @@ -565,6 +565,4 @@ File: higherOrderCallMissingParameters.kt - 1c284db5ed628ac0eabf2b045b1376a1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/kt11733.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/kt11733.antlrtree.txt index f4b7d6a49..67d336bfd 100644 --- a/grammar/testData/diagnostics/functionLiterals/kt11733.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/kt11733.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt11733.kt - 81712ef278a2d53ded86bf1fd7337e09 +File: kt11733.kt - 97796e0e464e4c64b7e7e42161b28cc5 + NL("\n") NL("\n") NL("\n") packageHeader @@ -312,5 +313,5 @@ File: kt11733.kt - 81712ef278a2d53ded86bf1fd7337e09 statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/kt16016.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/kt16016.antlrtree.txt index 0137a9b5a..4fee51f55 100644 --- a/grammar/testData/diagnostics/functionLiterals/kt16016.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/kt16016.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt16016.kt - cb053f0f329a490b3f3fc266f568eaef +File: kt16016.kt - ef85fdd3e0339bb5a6033163d91db6a3 NL("\n") packageHeader importList @@ -262,6 +262,5 @@ File: kt16016.kt - cb053f0f329a490b3f3fc266f568eaef literalConstant IntegerLiteral("123") RPAREN(")") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/kt3343.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/kt3343.antlrtree.txt index 7c2c20593..51c711c01 100644 --- a/grammar/testData/diagnostics/functionLiterals/kt3343.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/kt3343.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt3343.kt - 87579165527d807289e40abf4c44c9ad +File: kt3343.kt - 9282ec97058cab6f52305c8d4f933cc6 + NL("\n") NL("\n") NL("\n") packageHeader @@ -494,5 +495,5 @@ File: kt3343.kt - 87579165527d807289e40abf4c44c9ad NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/kt4529.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/kt4529.antlrtree.txt index 556b05aea..972191874 100644 --- a/grammar/testData/diagnostics/functionLiterals/kt4529.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/kt4529.antlrtree.txt @@ -431,6 +431,4 @@ File: kt4529.kt - 2da6fdde801fbdf1559daa79b9755015 primaryExpression simpleIdentifier Identifier("a") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/kt47493.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/kt47493.antlrtree.txt new file mode 100644 index 000000000..29a8f7766 --- /dev/null +++ b/grammar/testData/diagnostics/functionLiterals/kt47493.antlrtree.txt @@ -0,0 +1,311 @@ +File: kt47493.kt - 28d66f5a78070c5a4e22bd44836f7dae + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("toDouble") + ARROW("->") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("toDouble") + ARROW("->") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/kt51317.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/kt51317.antlrtree.txt new file mode 100644 index 000000000..3e1a3bf9a --- /dev/null +++ b/grammar/testData/diagnostics/functionLiterals/kt51317.antlrtree.txt @@ -0,0 +1,305 @@ +File: kt51317.kt - 31748002a86a2ef2afe6b800665331d7 + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f") + COLON(":") + type + nullableType + parenthesizedType + LPAREN("(") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("g") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("K") + QUOTE_CLOSE(""") + RCURL("}") + semis + NL("\n") + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("g") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("O") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/kt6541_extensionForExtensionFunction.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/kt6541_extensionForExtensionFunction.antlrtree.txt index 3ab9a5dda..fc3f158ce 100644 --- a/grammar/testData/diagnostics/functionLiterals/kt6541_extensionForExtensionFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/kt6541_extensionForExtensionFunction.antlrtree.txt @@ -204,6 +204,4 @@ File: kt6541_extensionForExtensionFunction.kt - 96c29991a3fac7f08db0032c884c2758 statements RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/kt6869.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/kt6869.antlrtree.txt index f067ea1b7..da66a4c66 100644 --- a/grammar/testData/diagnostics/functionLiterals/kt6869.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/kt6869.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt6869.kt - 59bf6aa76d1c813d9b965ae30e34329d +File: kt6869.kt - 267679d1aba1c71b915def481ff0c23d + NL("\n") packageHeader importList topLevelObject @@ -338,5 +339,5 @@ File: kt6869.kt - 59bf6aa76d1c813d9b965ae30e34329d excl EXCL_NO_WS("!") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/kt7383_starProjectedFunction.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/kt7383_starProjectedFunction.antlrtree.txt index 08e04eb2f..f6293d6f0 100644 --- a/grammar/testData/diagnostics/functionLiterals/kt7383_starProjectedFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/kt7383_starProjectedFunction.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt7383_starProjectedFunction.kt - ddc25b778acc57beee938bce7727068a - NL("\n") +File: kt7383_starProjectedFunction.kt - ccc188317b04372ea743fd76cf4fff22 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/functionLiterals/lambdaInLambda2.main.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/lambdaInLambda2.main.antlrtree.txt index bce34defd..6e3039209 100644 --- a/grammar/testData/diagnostics/functionLiterals/lambdaInLambda2.main.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/lambdaInLambda2.main.antlrtree.txt @@ -177,6 +177,4 @@ File: lambdaInLambda2.main.kt - 8a0336aa31e713c6c551b97658d6083b RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/return/AutoLabels.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/AutoLabels.antlrtree.txt index 3f5aa3262..d4116bb36 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/AutoLabels.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/AutoLabels.antlrtree.txt @@ -1,4 +1,4 @@ -File: AutoLabels.kt - 334e6137d7ab39fab2c340085f41b5ec +File: AutoLabels.kt - 6d61a8c6289ecc872d60b2d99c0b20d7 packageHeader importList topLevelObject @@ -430,5 +430,4 @@ File: AutoLabels.kt - 334e6137d7ab39fab2c340085f41b5ec RCURL("}") semis NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/return/AutoLabelsNonLocal.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/AutoLabelsNonLocal.antlrtree.txt index 709b77c20..bd355e37f 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/AutoLabelsNonLocal.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/AutoLabelsNonLocal.antlrtree.txt @@ -1,4 +1,5 @@ -File: AutoLabelsNonLocal.kt - d52d1da6b6c06667a12f828bcfcc1a6d +File: AutoLabelsNonLocal.kt - 1f1321001048d010244015d7a75a6d81 + NL("\n") packageHeader importList topLevelObject @@ -208,5 +209,5 @@ File: AutoLabelsNonLocal.kt - d52d1da6b6c06667a12f828bcfcc1a6d statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/return/ForbiddenNonLocalReturnNoType.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/ForbiddenNonLocalReturnNoType.antlrtree.txt index 8f1eea405..b799e05cd 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/ForbiddenNonLocalReturnNoType.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/ForbiddenNonLocalReturnNoType.antlrtree.txt @@ -1,4 +1,4 @@ -File: ForbiddenNonLocalReturnNoType.kt - 46c36b73dee62a59f2f902746160d207 +File: ForbiddenNonLocalReturnNoType.kt - 2ad4a99807a58d455973e1408c5c6bc8 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/functionLiterals/return/IfInReturnedExpression.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/IfInReturnedExpression.antlrtree.txt index 7757f7dae..d05b35e78 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/IfInReturnedExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/IfInReturnedExpression.antlrtree.txt @@ -224,6 +224,4 @@ File: IfInReturnedExpression.kt - 82b24e938af22a186826a5a8abda8633 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/return/IfWithoutElse.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/IfWithoutElse.antlrtree.txt index 075b78b77..985a97cdf 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/IfWithoutElse.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/IfWithoutElse.antlrtree.txt @@ -1,4 +1,4 @@ -File: IfWithoutElse.kt - 9be8790ad99cc4eeffa750f1c208b46b +File: IfWithoutElse.kt - b0dc3ec26cab35ccb07de595c6c073d5 packageHeader importList topLevelObject @@ -379,6 +379,5 @@ File: IfWithoutElse.kt - 9be8790ad99cc4eeffa750f1c208b46b semis NL("\n") RCURL("}") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/return/IfWithoutElseWithExplicitType.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/IfWithoutElseWithExplicitType.antlrtree.txt index 48739086e..4c770192c 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/IfWithoutElseWithExplicitType.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/IfWithoutElseWithExplicitType.antlrtree.txt @@ -1,4 +1,4 @@ -File: IfWithoutElseWithExplicitType.kt - b86112305a53ae14ef558e030f5db6aa +File: IfWithoutElseWithExplicitType.kt - 5d0b585611d17542c78ca0d23390d734 packageHeader importList topLevelObject @@ -675,6 +675,5 @@ File: IfWithoutElseWithExplicitType.kt - b86112305a53ae14ef558e030f5db6aa semis NL("\n") RCURL("}") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/return/LambdaWithParameter.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/LambdaWithParameter.antlrtree.txt index 4f3a5f599..03d5a1736 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/LambdaWithParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/LambdaWithParameter.antlrtree.txt @@ -478,6 +478,4 @@ File: LambdaWithParameter.kt - 33f040d0c5cfacd25730b139fab98ce6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/return/LocalAndNonLocalReturnInLambda.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/LocalAndNonLocalReturnInLambda.antlrtree.txt index 8f498f7f4..2e5ad4aac 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/LocalAndNonLocalReturnInLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/LocalAndNonLocalReturnInLambda.antlrtree.txt @@ -1,4 +1,5 @@ -File: LocalAndNonLocalReturnInLambda.kt - 042b64d67bf2e245734cbbdf4c3fc031 +File: LocalAndNonLocalReturnInLambda.kt - 561749d6489b7c5718548e3c400f3392 + NL("\n") NL("\n") NL("\n") packageHeader @@ -329,6 +330,4 @@ File: LocalAndNonLocalReturnInLambda.kt - 042b64d67bf2e245734cbbdf4c3fc031 LPAREN("(") RPAREN(")") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/return/LocalReturnNoCoercionToUnit.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/LocalReturnNoCoercionToUnit.antlrtree.txt index 4f98a8c40..2b9cbeaa4 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/LocalReturnNoCoercionToUnit.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/LocalReturnNoCoercionToUnit.antlrtree.txt @@ -1,5 +1,4 @@ -File: LocalReturnNoCoercionToUnit.kt - b85b038f7df66c1ec4bfb840bd0fdfe4 - NL("\n") +File: LocalReturnNoCoercionToUnit.kt - d1b212dfafe2ad702db558cdb16fa267 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/functionLiterals/return/LocalReturnNull.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/LocalReturnNull.antlrtree.txt index c4920f615..4d1f50933 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/LocalReturnNull.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/LocalReturnNull.antlrtree.txt @@ -340,6 +340,4 @@ File: LocalReturnNull.kt - d8ee6d863cd55c60402162f28a544d7a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/return/LocalReturnSecondUnit.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/LocalReturnSecondUnit.antlrtree.txt index f1c5d2ea6..45c8fe6ca 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/LocalReturnSecondUnit.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/LocalReturnSecondUnit.antlrtree.txt @@ -1,4 +1,4 @@ -File: LocalReturnSecondUnit.kt - 7a70ac26580fb59d7eeea93b7c994839 +File: LocalReturnSecondUnit.kt - d177041dac8454c5a7ae43d242716eab packageHeader importList topLevelObject @@ -164,6 +164,5 @@ File: LocalReturnSecondUnit.kt - 7a70ac26580fb59d7eeea93b7c994839 semis NL("\n") RCURL("}") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/return/LocalReturnUnitAndDontCareType.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/LocalReturnUnitAndDontCareType.antlrtree.txt index 80cf07dcf..3e0686500 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/LocalReturnUnitAndDontCareType.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/LocalReturnUnitAndDontCareType.antlrtree.txt @@ -1,5 +1,4 @@ -File: LocalReturnUnitAndDontCareType.kt - c0e315a72fa1c56e371abf1f8dcba1ce - NL("\n") +File: LocalReturnUnitAndDontCareType.kt - 886206639ae94965ca16974f91ded19c NL("\n") packageHeader importList @@ -344,6 +343,5 @@ File: LocalReturnUnitAndDontCareType.kt - c0e315a72fa1c56e371abf1f8dcba1ce semis NL("\n") RCURL("}") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/return/LocalReturnUnitWithBodyExpression.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/LocalReturnUnitWithBodyExpression.antlrtree.txt index 3b2e037e6..c3841813f 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/LocalReturnUnitWithBodyExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/LocalReturnUnitWithBodyExpression.antlrtree.txt @@ -1,4 +1,6 @@ -File: LocalReturnUnitWithBodyExpression.kt - 85cc1390c0d7e63c8f8389d07f602d82 +File: LocalReturnUnitWithBodyExpression.kt - dbddad72ff010be632933ed057c17077 + NL("\n") + NL("\n") packageHeader importList topLevelObject @@ -148,6 +150,5 @@ File: LocalReturnUnitWithBodyExpression.kt - 85cc1390c0d7e63c8f8389d07f602d82 semis NL("\n") RCURL("}") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/return/LocalReturnWithExpectedType.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/LocalReturnWithExpectedType.antlrtree.txt index 311dddf46..56d8ceb32 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/LocalReturnWithExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/LocalReturnWithExpectedType.antlrtree.txt @@ -1,4 +1,5 @@ -File: LocalReturnWithExpectedType.kt - 23b8eea53ab7167c4dbf736b6680db70 +File: LocalReturnWithExpectedType.kt - 6460c0329caa2e7842fb593c01f42b7a + NL("\n") packageHeader importList topLevelObject @@ -349,6 +350,5 @@ File: LocalReturnWithExpectedType.kt - 23b8eea53ab7167c4dbf736b6680db70 semis NL("\n") RCURL("}") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/return/LocalReturnWithExplicitUnit.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/LocalReturnWithExplicitUnit.antlrtree.txt index f99778f43..3e7bd122b 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/LocalReturnWithExplicitUnit.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/LocalReturnWithExplicitUnit.antlrtree.txt @@ -437,6 +437,4 @@ File: LocalReturnWithExplicitUnit.kt - 09f7afc0e69a4b618c71f72448f83fd7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/return/LocalReturnsWithExplicitReturnType.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/LocalReturnsWithExplicitReturnType.antlrtree.txt index e523ea8ea..2342ec8c4 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/LocalReturnsWithExplicitReturnType.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/LocalReturnsWithExplicitReturnType.antlrtree.txt @@ -1,5 +1,4 @@ -File: LocalReturnsWithExplicitReturnType.kt - 86a082db5a83dcfc9c7e2805e1b7ed5e - NL("\n") +File: LocalReturnsWithExplicitReturnType.kt - f50f9220a097ca16c1df1f345a8aa96f packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/functionLiterals/return/NoCommonSystem.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/NoCommonSystem.antlrtree.txt index 25edc47e1..ae1c7c7b2 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/NoCommonSystem.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/NoCommonSystem.antlrtree.txt @@ -1,4 +1,4 @@ -File: NoCommonSystem.kt - 1fff9a4e04ba42d841cc33d5c506895c +File: NoCommonSystem.kt - b5eb29cfe65b47fd2fbbbb2e62ab4fd7 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/functionLiterals/return/SmartCast.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/SmartCast.antlrtree.txt index 81e37b973..dbc65c3d5 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/SmartCast.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/SmartCast.antlrtree.txt @@ -1,5 +1,4 @@ -File: SmartCast.kt - 55059d056a5b95aad94f08e9579c347b - NL("\n") +File: SmartCast.kt - c9c02591efdd313eb2d93592d229051c NL("\n") NL("\n") NL("\n") @@ -535,6 +534,4 @@ File: SmartCast.kt - 55059d056a5b95aad94f08e9579c347b NL("\n") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/return/SmartCastWithExplicitType.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/SmartCastWithExplicitType.antlrtree.txt index 2687f6d4d..c91b5a190 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/SmartCastWithExplicitType.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/SmartCastWithExplicitType.antlrtree.txt @@ -553,6 +553,4 @@ File: SmartCastWithExplicitType.kt - 02f0d58e71dd77eebe76a4294406007d NL("\n") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/return/unresolvedReferenceInReturnBlock.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/return/unresolvedReferenceInReturnBlock.antlrtree.txt index a5b1f0531..fe9c6d480 100644 --- a/grammar/testData/diagnostics/functionLiterals/return/unresolvedReferenceInReturnBlock.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/return/unresolvedReferenceInReturnBlock.antlrtree.txt @@ -235,6 +235,4 @@ File: unresolvedReferenceInReturnBlock.kt - 91bef6b80fe1fc3d1a7f6f3f8be1ba32 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/returnNull.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/returnNull.antlrtree.txt index 740e102fd..f610e2dcf 100644 --- a/grammar/testData/diagnostics/functionLiterals/returnNull.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/returnNull.antlrtree.txt @@ -326,6 +326,4 @@ File: returnNull.kt - eb8d82d1c40109c67be802db8e38d0da LineStrRef("$defaultValue") QUOTE_CLOSE(""") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/returnNullWithReturn.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/returnNullWithReturn.antlrtree.txt index e91455dc0..3e8cedd38 100644 --- a/grammar/testData/diagnostics/functionLiterals/returnNullWithReturn.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/returnNullWithReturn.antlrtree.txt @@ -1,4 +1,4 @@ -File: returnNullWithReturn.kt - 87752de14b269141832a913c19e8b87e +File: returnNullWithReturn.kt - 5a6291cd93e77beb8b51cbaa5ab79f6b NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/functionLiterals/unusedLiteral.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/unusedLiteral.antlrtree.txt index ac01a092e..369f8888c 100644 --- a/grammar/testData/diagnostics/functionLiterals/unusedLiteral.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/unusedLiteral.antlrtree.txt @@ -1,4 +1,6 @@ -File: unusedLiteral.kt - b76dc681320865aa5f68c0a9e57a0dee +File: unusedLiteral.kt - 9673313baa887f942946747e2d4fb7ad + NL("\n") + NL("\n") packageHeader importList topLevelObject @@ -168,5 +170,5 @@ File: unusedLiteral.kt - b76dc681320865aa5f68c0a9e57a0dee NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/functionLiterals/unusedLiteralInsideUnitLiteral.antlrtree.txt b/grammar/testData/diagnostics/functionLiterals/unusedLiteralInsideUnitLiteral.antlrtree.txt index 56f1aed37..a9be49b8f 100644 --- a/grammar/testData/diagnostics/functionLiterals/unusedLiteralInsideUnitLiteral.antlrtree.txt +++ b/grammar/testData/diagnostics/functionLiterals/unusedLiteralInsideUnitLiteral.antlrtree.txt @@ -1,4 +1,6 @@ -File: unusedLiteralInsideUnitLiteral.kt - 34a6845965af88e9f8f58f523e0d077f +File: unusedLiteralInsideUnitLiteral.kt - f9356a136b1d99bb9652cd9abe762728 + NL("\n") + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/generics/Projections.antlrtree.txt b/grammar/testData/diagnostics/generics/Projections.antlrtree.txt index ceec4748e..22298c55e 100644 --- a/grammar/testData/diagnostics/generics/Projections.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/Projections.antlrtree.txt @@ -1,5 +1,4 @@ -File: Projections.kt - 06fef203000227a968d74768dc48c22b - NL("\n") +File: Projections.kt - fb6a94295f610b82d2aeb6b9f5cca0b7 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/RawTypeInIsPattern.antlrtree.txt b/grammar/testData/diagnostics/generics/RawTypeInIsPattern.antlrtree.txt index 8b34f8dcf..fa8ca3adf 100644 --- a/grammar/testData/diagnostics/generics/RawTypeInIsPattern.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/RawTypeInIsPattern.antlrtree.txt @@ -1,4 +1,4 @@ -File: RawTypeInIsPattern.kt - 2db4030985d8e08262198b8ef9d76618 (WITH_ERRORS) +File: RawTypeInIsPattern.kt - 8f2c63772a81caa1d1281cc72375a424 (WITH_ERRORS) packageHeader importList topLevelObject @@ -122,4 +122,5 @@ File: RawTypeInIsPattern.kt - 2db4030985d8e08262198b8ef9d76618 (WITH_ERRORS) RCURL("}") NL("\n") RCURL("}") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/generics/RecursiveUpperBoundCheck.antlrtree.txt b/grammar/testData/diagnostics/generics/RecursiveUpperBoundCheck.antlrtree.txt index 50f07e52f..e8205d998 100644 --- a/grammar/testData/diagnostics/generics/RecursiveUpperBoundCheck.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/RecursiveUpperBoundCheck.antlrtree.txt @@ -1,4 +1,5 @@ -File: RecursiveUpperBoundCheck.kt - ea954e823c47707b979aa3049b77eca2 +File: RecursiveUpperBoundCheck.kt - 6511df310a9c53665608a0b618609f49 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/generics/RecursiveUpperBoundWithTwoArguments.antlrtree.txt b/grammar/testData/diagnostics/generics/RecursiveUpperBoundWithTwoArguments.antlrtree.txt index 67293d389..66300cd31 100644 --- a/grammar/testData/diagnostics/generics/RecursiveUpperBoundWithTwoArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/RecursiveUpperBoundWithTwoArguments.antlrtree.txt @@ -1,4 +1,5 @@ -File: RecursiveUpperBoundWithTwoArguments.kt - 66cef337baa4877737494ac679f9207f +File: RecursiveUpperBoundWithTwoArguments.kt - 534766abc4393a07eefd0fea9eb45dd8 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/generics/TypeParameterBounds.antlrtree.txt b/grammar/testData/diagnostics/generics/TypeParameterBounds.antlrtree.txt index 041d1b539..841f12944 100644 --- a/grammar/testData/diagnostics/generics/TypeParameterBounds.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/TypeParameterBounds.antlrtree.txt @@ -1,4 +1,5 @@ -File: TypeParameterBounds.kt - 9a6e5b8662ca2c90a6f5addb5efb7f13 +File: TypeParameterBounds.kt - 32c0d22b60f3eb1df8f2da4f0c879963 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/TypeParametersInTypeParameterBounds.antlrtree.txt b/grammar/testData/diagnostics/generics/TypeParametersInTypeParameterBounds.antlrtree.txt index 30095daaa..4d748b8c1 100644 --- a/grammar/testData/diagnostics/generics/TypeParametersInTypeParameterBounds.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/TypeParametersInTypeParameterBounds.antlrtree.txt @@ -1,4 +1,5 @@ -File: TypeParametersInTypeParameterBounds.kt - 421adcff3c80dd18b00f06724ede222c +File: TypeParametersInTypeParameterBounds.kt - 39f5a0112ee32617ff271aff2e581b42 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/generics/anonymousObjectSupertypeWithTypeParameterFromFunction.antlrtree.txt b/grammar/testData/diagnostics/generics/anonymousObjectSupertypeWithTypeParameterFromFunction.antlrtree.txt new file mode 100644 index 000000000..81bb321ce --- /dev/null +++ b/grammar/testData/diagnostics/generics/anonymousObjectSupertypeWithTypeParameterFromFunction.antlrtree.txt @@ -0,0 +1,144 @@ +File: anonymousObjectSupertypeWithTypeParameterFromFunction.kt - 42bee6db0ed730478165c0e3ebb911b0 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Checker") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("StateT") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("ToolchainPanel") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("ItemT") + RANGLE(">") + simpleIdentifier + Identifier("addVersionChecker") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("item") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ItemT") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("MyState") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("selectedItem") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ItemT") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Checker") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyState") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/generics/argumentsForT.antlrtree.txt b/grammar/testData/diagnostics/generics/argumentsForT.antlrtree.txt index 8cf450360..3de1cb5a8 100644 --- a/grammar/testData/diagnostics/generics/argumentsForT.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/argumentsForT.antlrtree.txt @@ -135,6 +135,4 @@ File: argumentsForT.kt - 5c4c61cc1d46442839c81d2d9a1e615b LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/capturedParameters/innerLocalClass.antlrtree.txt b/grammar/testData/diagnostics/generics/capturedParameters/innerLocalClass.antlrtree.txt index db2ab7baa..0481af784 100644 --- a/grammar/testData/diagnostics/generics/capturedParameters/innerLocalClass.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/capturedParameters/innerLocalClass.antlrtree.txt @@ -1,5 +1,4 @@ -File: innerLocalClass.kt - ebc162447d7f32c1d23680e01fea14b5 - NL("\n") +File: innerLocalClass.kt - 990ec47a9dafb3f35016b5418f48baec NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/capturedParameters/localClass.antlrtree.txt b/grammar/testData/diagnostics/generics/capturedParameters/localClass.antlrtree.txt index 8cbf03be3..d7b88b72b 100644 --- a/grammar/testData/diagnostics/generics/capturedParameters/localClass.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/capturedParameters/localClass.antlrtree.txt @@ -1,5 +1,4 @@ -File: localClass.kt - 1532ffe9d43c3fa37963ba20a69e1da6 - NL("\n") +File: localClass.kt - 56d199249179e32c00c5a518b51153f8 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/capturedParameters/objectLiteral.antlrtree.txt b/grammar/testData/diagnostics/generics/capturedParameters/objectLiteral.antlrtree.txt index ace43161b..94d824f19 100644 --- a/grammar/testData/diagnostics/generics/capturedParameters/objectLiteral.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/capturedParameters/objectLiteral.antlrtree.txt @@ -1,5 +1,4 @@ -File: objectLiteral.kt - 62f68ea2fc9806436dd3f210e6970c33 - NL("\n") +File: objectLiteral.kt - 0c97ed4fe28417f5d756cb949abe6df5 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/capturedParameters/uncheckedCast.antlrtree.txt b/grammar/testData/diagnostics/generics/capturedParameters/uncheckedCast.antlrtree.txt index 54460ab1f..2871bf2ee 100644 --- a/grammar/testData/diagnostics/generics/capturedParameters/uncheckedCast.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/capturedParameters/uncheckedCast.antlrtree.txt @@ -1,4 +1,4 @@ -File: uncheckedCast.kt - 3a3bc3b15315956be4e3f43e1e204ada +File: uncheckedCast.kt - d8b6f642301f2aaf9ad72ee4f5ac8b3b packageHeader importList topLevelObject @@ -473,6 +473,110 @@ File: uncheckedCast.kt - 3a3bc3b15315956be4e3f43e1e204ada semis NL("\n") NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Outer") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Inner") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") statement expression disjunction @@ -509,6 +613,39 @@ File: uncheckedCast.kt - 3a3bc3b15315956be4e3f43e1e204ada simpleUserType simpleIdentifier Identifier("Inner") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Outer") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Inner") semis NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/cyclicBounds/functions.antlrtree.txt b/grammar/testData/diagnostics/generics/cyclicBounds/functions.antlrtree.txt index f52a04713..9d4be0b04 100644 --- a/grammar/testData/diagnostics/generics/cyclicBounds/functions.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/cyclicBounds/functions.antlrtree.txt @@ -1,4 +1,5 @@ -File: functions.kt - 0d83d5a6180c4b999755a19473046b4f +File: functions.kt - 8e74391acd9cc8701ed3e4b97294c082 + NL("\n") packageHeader importList topLevelObject @@ -227,6 +228,4 @@ File: functions.kt - 0d83d5a6180c4b999755a19473046b4f LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/cyclicBounds/inClass.antlrtree.txt b/grammar/testData/diagnostics/generics/cyclicBounds/inClass.antlrtree.txt index 11a4797aa..f1d3e15c0 100644 --- a/grammar/testData/diagnostics/generics/cyclicBounds/inClass.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/cyclicBounds/inClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: inClass.kt - a1aa98b4d06a443fb202b4e3aab94404 +File: inClass.kt - 8861d8e07e484c9b115ba073b2c09521 + NL("\n") packageHeader importList topLevelObject @@ -195,6 +196,4 @@ File: inClass.kt - a1aa98b4d06a443fb202b4e3aab94404 simpleUserType simpleIdentifier Identifier("F") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/finalUpperBoundWithOverride.antlrtree.txt b/grammar/testData/diagnostics/generics/finalUpperBoundWithOverride.antlrtree.txt index e4b758672..e2971e273 100644 --- a/grammar/testData/diagnostics/generics/finalUpperBoundWithOverride.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/finalUpperBoundWithOverride.antlrtree.txt @@ -1,4 +1,5 @@ -File: finalUpperBoundWithOverride.kt - 92ba2857b48d5b2950c7905fa1c875f4 +File: finalUpperBoundWithOverride.kt - ebb7e517f29e75157f51229a3f7461d3 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/genericsInType.antlrtree.txt b/grammar/testData/diagnostics/generics/genericsInType.antlrtree.txt index df69e52c0..4d8b26272 100644 --- a/grammar/testData/diagnostics/generics/genericsInType.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/genericsInType.antlrtree.txt @@ -1,4 +1,4 @@ -File: genericsInType.kt - 447387b5f5b0c8166f87be17c37a94af +File: genericsInType.kt - 6bf4e5357ec0efb450adbf75e6b07e5c NL("\n") NL("\n") NL("\n") @@ -761,5 +761,5 @@ File: genericsInType.kt - 447387b5f5b0c8166f87be17c37a94af statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/generics/innerClasses/bareTypes.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/bareTypes.antlrtree.txt index 0ce5e53cb..4a54b6255 100644 --- a/grammar/testData/diagnostics/generics/innerClasses/bareTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/innerClasses/bareTypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: bareTypes.kt - 9e9cab5a37f74fa734a42fc67470ffce +File: bareTypes.kt - efb5e9ba957197320e30aa9db09975a4 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/generics/innerClasses/bareTypesComplex.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/bareTypesComplex.antlrtree.txt index 8e643b7eb..a2ea778a6 100644 --- a/grammar/testData/diagnostics/generics/innerClasses/bareTypesComplex.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/innerClasses/bareTypesComplex.antlrtree.txt @@ -1,4 +1,5 @@ -File: bareTypesComplex.kt - 111426c6b373e6b587a69ca9e0bc4fa0 +File: bareTypesComplex.kt - abb8feec48233665743cb8da7b368fe2 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/generics/innerClasses/checkBoundsOuter.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/checkBoundsOuter.antlrtree.txt index 11a781bbc..b77d79731 100644 --- a/grammar/testData/diagnostics/generics/innerClasses/checkBoundsOuter.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/innerClasses/checkBoundsOuter.antlrtree.txt @@ -1,4 +1,5 @@ -File: checkBoundsOuter.kt - f453301739fbcddf1fe14a01c0c7c2d3 +File: checkBoundsOuter.kt - 110c46115a8097bad918a04713d0dd2b + NL("\n") packageHeader importList topLevelObject @@ -124,6 +125,4 @@ File: checkBoundsOuter.kt - f453301739fbcddf1fe14a01c0c7c2d3 excl EXCL_NO_WS("!") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/innerClasses/implicitArguments/fromSuperClassesLocal.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/implicitArguments/fromSuperClassesLocal.antlrtree.txt index 32bb2f54c..d4059d8b1 100644 --- a/grammar/testData/diagnostics/generics/innerClasses/implicitArguments/fromSuperClassesLocal.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/innerClasses/implicitArguments/fromSuperClassesLocal.antlrtree.txt @@ -1,5 +1,4 @@ -File: fromSuperClassesLocal.kt - 1702aa39e7a457e664e03cb861ef022c - NL("\n") +File: fromSuperClassesLocal.kt - 7ea5839942374c7e5d6dde5939bf1bb9 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/innerClasses/implicitArguments/fromSuperClassesLocalInsideInner.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/implicitArguments/fromSuperClassesLocalInsideInner.antlrtree.txt index 3cd387c27..4a695029c 100644 --- a/grammar/testData/diagnostics/generics/innerClasses/implicitArguments/fromSuperClassesLocalInsideInner.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/innerClasses/implicitArguments/fromSuperClassesLocalInsideInner.antlrtree.txt @@ -1,5 +1,4 @@ -File: fromSuperClassesLocalInsideInner.kt - 092773de255a376e25b0d75a93925403 - NL("\n") +File: fromSuperClassesLocalInsideInner.kt - 8d9105b6943f214997970525189159e7 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/innerClasses/implicitArguments/inStaticScope.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/implicitArguments/inStaticScope.antlrtree.txt index 2cb8bb2b9..57fec1289 100644 --- a/grammar/testData/diagnostics/generics/innerClasses/implicitArguments/inStaticScope.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/innerClasses/implicitArguments/inStaticScope.antlrtree.txt @@ -1,4 +1,5 @@ -File: inStaticScope.kt - c64628bc6facd8ba06cb93f2e0c781bb +File: inStaticScope.kt - 63b6553ab9a8b2e653c20e275c873f1e + NL("\n") packageHeader importList topLevelObject @@ -70,6 +71,36 @@ File: inStaticScope.kt - c64628bc6facd8ba06cb93f2e0c781bb RANGLE(">") semis NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Inner2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inner") + RANGLE(">") + semis + NL("\n") classMemberDeclaration declaration objectDeclaration @@ -99,4 +130,5 @@ File: inStaticScope.kt - c64628bc6facd8ba06cb93f2e0c781bb RCURL("}") semis NL("\n") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/generics/innerClasses/innerTP.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/innerTP.antlrtree.txt index 6bf842fcd..1fc7fae68 100644 --- a/grammar/testData/diagnostics/generics/innerClasses/innerTP.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/innerClasses/innerTP.antlrtree.txt @@ -1,5 +1,4 @@ -File: innerTP.kt - 6a795391f973a38a80019565c5aee21c - NL("\n") +File: innerTP.kt - c230ad908e66cbcbb0900ad882964fe2 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/innerClasses/innerUncheckedCast.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/innerUncheckedCast.antlrtree.txt index 0b15c8fc6..08e8ffb5f 100644 --- a/grammar/testData/diagnostics/generics/innerClasses/innerUncheckedCast.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/innerClasses/innerUncheckedCast.antlrtree.txt @@ -1,5 +1,4 @@ -File: innerUncheckedCast.kt - eadd798816ada94544dd6c0278ad6e42 - NL("\n") +File: innerUncheckedCast.kt - e57a1b95e1c95191c68c75b10f2d1777 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/innerClasses/innerVariance.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/innerVariance.antlrtree.txt index 994f8cfe3..6deec2741 100644 --- a/grammar/testData/diagnostics/generics/innerClasses/innerVariance.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/innerClasses/innerVariance.antlrtree.txt @@ -1,4 +1,5 @@ -File: innerVariance.kt - 9db6b0e33626dd492eac67386b61a36d +File: innerVariance.kt - f307f3d479513ea697682f24c495759b + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/generics/innerClasses/iterator.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/iterator.antlrtree.txt index 01429f79e..a4e133073 100644 --- a/grammar/testData/diagnostics/generics/innerClasses/iterator.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/innerClasses/iterator.antlrtree.txt @@ -1,5 +1,4 @@ -File: iterator.kt - 73d566c8e2e70ef46e3628c25446d849 - NL("\n") +File: iterator.kt - fc0419a9570e9ea55cf0de639eaec2a4 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/innerClasses/kt408.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/kt408.antlrtree.txt index 82e71e224..a45046867 100644 --- a/grammar/testData/diagnostics/generics/innerClasses/kt408.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/innerClasses/kt408.antlrtree.txt @@ -249,6 +249,4 @@ File: kt408.kt - 9c2461f56959136a5c3e578a8c3c3dc2 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/innerClasses/noTypeVarianceConflictInNestedClass.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/noTypeVarianceConflictInNestedClass.antlrtree.txt new file mode 100644 index 000000000..3ea6de441 --- /dev/null +++ b/grammar/testData/diagnostics/generics/innerClasses/noTypeVarianceConflictInNestedClass.antlrtree.txt @@ -0,0 +1,85 @@ +File: noTypeVarianceConflictInNestedClass.kt - f4746dc07ccab5a5fbcee675ccc4d23e + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("CidrMemoryData") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Data") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("AbstractData") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Data") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/generics/innerClasses/qualifiedOuter.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/qualifiedOuter.antlrtree.txt index 4e3cd5def..a9eda1165 100644 --- a/grammar/testData/diagnostics/generics/innerClasses/qualifiedOuter.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/innerClasses/qualifiedOuter.antlrtree.txt @@ -1,5 +1,4 @@ -File: qualifiedOuter.kt - 2f1e93ba486e7c55352871df388e5250 - NL("\n") +File: qualifiedOuter.kt - 736440a510ae9824ff8330c7df16a742 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/innerClasses/qualifiedTypesResolution.main.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/qualifiedTypesResolution.main.antlrtree.txt index 65f1afc16..a28f9fb2d 100644 --- a/grammar/testData/diagnostics/generics/innerClasses/qualifiedTypesResolution.main.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/innerClasses/qualifiedTypesResolution.main.antlrtree.txt @@ -1210,6 +1210,4 @@ File: qualifiedTypesResolution.main.kt - bd98de8d20cdbe59b308c9e8dae496fc EXCL_NO_WS("!") excl EXCL_NO_WS("!") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/innerClasses/simple.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/simple.antlrtree.txt index 2360bb1e7..9e09f99aa 100644 --- a/grammar/testData/diagnostics/generics/innerClasses/simple.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/innerClasses/simple.antlrtree.txt @@ -1129,6 +1129,4 @@ File: simple.kt - 2c6b580b358a3b2a2fd528d2b47b676b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/innerClasses/simpleOut.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/simpleOut.antlrtree.txt index a7c2f4f60..cdba6a779 100644 --- a/grammar/testData/diagnostics/generics/innerClasses/simpleOut.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/innerClasses/simpleOut.antlrtree.txt @@ -1135,6 +1135,4 @@ File: simpleOut.kt - 3f3d6e6b4a6120b4a0cc7f4d286d2169 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/innerClasses/simpleOutUseSite.antlrtree.txt b/grammar/testData/diagnostics/generics/innerClasses/simpleOutUseSite.antlrtree.txt index 89bb131e2..90a284167 100644 --- a/grammar/testData/diagnostics/generics/innerClasses/simpleOutUseSite.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/innerClasses/simpleOutUseSite.antlrtree.txt @@ -1,5 +1,4 @@ -File: simpleOutUseSite.kt - 33129ae9e3d72f439d0a08dc7f35f7a3 - NL("\n") +File: simpleOutUseSite.kt - 5c27da3c6d6a1147e90603da66a4aaad NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/invalidArgumentsNumberInWhere.antlrtree.txt b/grammar/testData/diagnostics/generics/invalidArgumentsNumberInWhere.antlrtree.txt index 9b9300403..65ba5cfe1 100644 --- a/grammar/testData/diagnostics/generics/invalidArgumentsNumberInWhere.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/invalidArgumentsNumberInWhere.antlrtree.txt @@ -1,4 +1,5 @@ -File: invalidArgumentsNumberInWhere.kt - e0cf63a0da1099ef9d99f6112afe73b6 +File: invalidArgumentsNumberInWhere.kt - 42cd5aeb45014c3e72ebff48d4bb5035 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/generics/kt1575-Class.antlrtree.txt b/grammar/testData/diagnostics/generics/kt1575-Class.antlrtree.txt index b867130d8..1b71bfae8 100644 --- a/grammar/testData/diagnostics/generics/kt1575-Class.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/kt1575-Class.antlrtree.txt @@ -31,6 +31,4 @@ File: kt1575-Class.kt - b63f8f85722227c493850b29f53738fa Identifier("T") RANGLE(">") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/kt30590.antlrtree.txt b/grammar/testData/diagnostics/generics/kt30590.antlrtree.txt index 3cc5bb1cb..3c498760c 100644 --- a/grammar/testData/diagnostics/generics/kt30590.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/kt30590.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt30590.kt - 380c6109c6efea97e7b37e91bd693bf0 - NL("\n") +File: kt30590.kt - 4340ee1658f46a6b6b48b2948920ed37 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/kt34729.antlrtree.txt b/grammar/testData/diagnostics/generics/kt34729.antlrtree.txt index 79b6770d5..0eca00e64 100644 --- a/grammar/testData/diagnostics/generics/kt34729.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/kt34729.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt34729.kt - b9415dbb34e326375ad52ec24572daee - NL("\n") +File: kt34729.kt - d667d8a4d288fa33199de543bbf11c5f NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/kt5508.antlrtree.txt b/grammar/testData/diagnostics/generics/kt5508.antlrtree.txt index e0b0a970d..1d2296ea0 100644 --- a/grammar/testData/diagnostics/generics/kt5508.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/kt5508.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt5508.kt - 3d95d431133272c7a9a5f40737a3590a +File: kt5508.kt - 7fe92a769b7585b27c74be2a482d5715 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/kt9203_1.antlrtree.txt b/grammar/testData/diagnostics/generics/kt9203_1.antlrtree.txt index 49ac5983b..964061e4e 100644 --- a/grammar/testData/diagnostics/generics/kt9203_1.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/kt9203_1.antlrtree.txt @@ -468,6 +468,4 @@ File: kt9203_1.kt - a507680f8b8cade5cc56928128f1cea9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/kt9985.A.antlrtree.txt b/grammar/testData/diagnostics/generics/kt9985.A.antlrtree.txt index 942528a1d..0f2c970c8 100644 --- a/grammar/testData/diagnostics/generics/kt9985.A.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/kt9985.A.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt9985.A.kt - 4d080165df27a742bacc927b9f595d47 +File: kt9985.A.kt - 33e9365cc6319fa30031b8bb6f0c0234 packageHeader importList topLevelObject @@ -1295,5 +1295,4 @@ File: kt9985.A.kt - 4d080165df27a742bacc927b9f595d47 RCURL("}") semis NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/generics/localClassTypeRefWithTypeParameterFromFunction.antlrtree.txt b/grammar/testData/diagnostics/generics/localClassTypeRefWithTypeParameterFromFunction.antlrtree.txt new file mode 100644 index 000000000..612e2c99a --- /dev/null +++ b/grammar/testData/diagnostics/generics/localClassTypeRefWithTypeParameterFromFunction.antlrtree.txt @@ -0,0 +1,189 @@ +File: localClassTypeRefWithTypeParameterFromFunction.kt - 80431aa49d42c2687e576881f7ce7299 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C1") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T1") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T3") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T2") + RANGLE(">") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("LocalClass") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C1") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("LocalClass") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Inner") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ArrayList") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inner") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/generics/multipleBoundsMemberScope/properties.antlrtree.txt b/grammar/testData/diagnostics/generics/multipleBoundsMemberScope/properties.antlrtree.txt index 36783d267..27fddcfbb 100644 --- a/grammar/testData/diagnostics/generics/multipleBoundsMemberScope/properties.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/multipleBoundsMemberScope/properties.antlrtree.txt @@ -1,4 +1,5 @@ -File: properties.kt - c35cb7ac7fdc019f03a83505bf00f35c +File: properties.kt - 71ea0bcc841555f785ad438d44ae39d4 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/multipleBoundsMemberScope/simple.antlrtree.txt b/grammar/testData/diagnostics/generics/multipleBoundsMemberScope/simple.antlrtree.txt index 85cba2ac9..c07de4ee1 100644 --- a/grammar/testData/diagnostics/generics/multipleBoundsMemberScope/simple.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/multipleBoundsMemberScope/simple.antlrtree.txt @@ -1,5 +1,4 @@ -File: simple.kt - e4e5b39d8ed1f49ffeaee4aad9dd6619 - NL("\n") +File: simple.kt - 0ac60328b23a166e9846e01d6c9013a2 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/generics/nullability/capturedTypeWithPlatformSupertype.test.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/capturedTypeWithPlatformSupertype.test.antlrtree.txt index 76456298f..a984690c2 100644 --- a/grammar/testData/diagnostics/generics/nullability/capturedTypeWithPlatformSupertype.test.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/capturedTypeWithPlatformSupertype.test.antlrtree.txt @@ -92,6 +92,4 @@ File: capturedTypeWithPlatformSupertype.test.kt - e18bed68e4d2a9c9f2eb064dcc1843 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/nullability/correctSubstitutionForIncorporationConstraint.test.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/correctSubstitutionForIncorporationConstraint.test.antlrtree.txt index 1e0eb8036..9f2dbd540 100644 --- a/grammar/testData/diagnostics/generics/nullability/correctSubstitutionForIncorporationConstraint.test.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/correctSubstitutionForIncorporationConstraint.test.antlrtree.txt @@ -265,6 +265,4 @@ File: correctSubstitutionForIncorporationConstraint.test.kt - 67c4f818264484fe51 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/nullability/declarationsBoundsViolation.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/declarationsBoundsViolation.antlrtree.txt index 832e98d37..9e21c91c5 100644 --- a/grammar/testData/diagnostics/generics/nullability/declarationsBoundsViolation.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/declarationsBoundsViolation.antlrtree.txt @@ -1,4 +1,5 @@ -File: declarationsBoundsViolation.kt - 6603982b4ee88da1dca46cbf41531632 +File: declarationsBoundsViolation.kt - 45709511cfb34e26832f8c16b0320fac + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/nullability/expressionsBoundsViolation.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/expressionsBoundsViolation.antlrtree.txt index a90224589..114c00905 100644 --- a/grammar/testData/diagnostics/generics/nullability/expressionsBoundsViolation.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/expressionsBoundsViolation.antlrtree.txt @@ -1,5 +1,4 @@ -File: expressionsBoundsViolation.kt - 7a2d4fc7be9ce5953b61757f5e1ddefd - NL("\n") +File: expressionsBoundsViolation.kt - d4b008ba19ad1b414cc0bf8681952011 NL("\n") NL("\n") packageHeader @@ -440,5 +439,4 @@ File: expressionsBoundsViolation.kt - 7a2d4fc7be9ce5953b61757f5e1ddefd RCURL("}") semis NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/generics/nullability/inferNotNullTypeFromIntersectionOfNullableTypes.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/inferNotNullTypeFromIntersectionOfNullableTypes.antlrtree.txt index 933667ef5..b3b567786 100644 --- a/grammar/testData/diagnostics/generics/nullability/inferNotNullTypeFromIntersectionOfNullableTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/inferNotNullTypeFromIntersectionOfNullableTypes.antlrtree.txt @@ -707,6 +707,4 @@ File: inferNotNullTypeFromIntersectionOfNullableTypes.kt - 36c80fd78892abd119329 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/nullability/kt25182.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/kt25182.antlrtree.txt index ffa1a0aa2..ece098c58 100644 --- a/grammar/testData/diagnostics/generics/nullability/kt25182.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/kt25182.antlrtree.txt @@ -383,6 +383,4 @@ File: kt25182.kt - 47d2170d972edaa07733f87ebc8b41b8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/nullability/notNullSmartcastOnIntersectionOfNullables.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/notNullSmartcastOnIntersectionOfNullables.antlrtree.txt index 3e8258ab2..607e71a31 100644 --- a/grammar/testData/diagnostics/generics/nullability/notNullSmartcastOnIntersectionOfNullables.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/notNullSmartcastOnIntersectionOfNullables.antlrtree.txt @@ -385,6 +385,4 @@ File: notNullSmartcastOnIntersectionOfNullables.kt - 4d27a26549288730606c98d55d4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/nullability/nullToGeneric.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/nullToGeneric.antlrtree.txt index 8a1b8afbf..4bf52f89e 100644 --- a/grammar/testData/diagnostics/generics/nullability/nullToGeneric.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/nullToGeneric.antlrtree.txt @@ -1,4 +1,5 @@ -File: nullToGeneric.kt - 9f19b8a37011fd514bf23de58c36a536 +File: nullToGeneric.kt - f99edf379fbf481a4e0a44414c24cd96 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/nullability/smartCasts.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/smartCasts.antlrtree.txt index 5dc40e6f4..dea23e12b 100644 --- a/grammar/testData/diagnostics/generics/nullability/smartCasts.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/smartCasts.antlrtree.txt @@ -1,5 +1,4 @@ -File: smartCasts.kt - 651bed08f4254c53866acdbd0509d309 - NL("\n") +File: smartCasts.kt - 6419dd7a563aaeb235ccc482183a20e4 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/nullability/smartCastsOnThis.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/smartCastsOnThis.antlrtree.txt index 0d62090fa..f446f2ef4 100644 --- a/grammar/testData/diagnostics/generics/nullability/smartCastsOnThis.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/smartCastsOnThis.antlrtree.txt @@ -1,5 +1,4 @@ -File: smartCastsOnThis.kt - cd9e1c5451f539b0115ca89627abad7e - NL("\n") +File: smartCastsOnThis.kt - c9f126b6d88d1e520e2b25d94cb759c1 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/nullability/smartCastsValueArgument.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/smartCastsValueArgument.antlrtree.txt index 92374160e..28ae4939e 100644 --- a/grammar/testData/diagnostics/generics/nullability/smartCastsValueArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/smartCastsValueArgument.antlrtree.txt @@ -1,5 +1,4 @@ -File: smartCastsValueArgument.kt - 128e2b8b3e018a4f6c2b1990f2f65e61 - NL("\n") +File: smartCastsValueArgument.kt - b75b93e0e5eb9c20d2dd0e2630701b4f NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/nullability/tpBoundsViolation.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/tpBoundsViolation.antlrtree.txt index 32d5bb22a..d418a4479 100644 --- a/grammar/testData/diagnostics/generics/nullability/tpBoundsViolation.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/tpBoundsViolation.antlrtree.txt @@ -1,5 +1,4 @@ -File: tpBoundsViolation.kt - 14abccff5ab4bc39f86f93752f095817 - NL("\n") +File: tpBoundsViolation.kt - b571830aadd23c02d9abc22173cc879d NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/nullability/tpBoundsViolationVariance.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/tpBoundsViolationVariance.antlrtree.txt index ddba40635..5aa3974b6 100644 --- a/grammar/testData/diagnostics/generics/nullability/tpBoundsViolationVariance.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/tpBoundsViolationVariance.antlrtree.txt @@ -1,5 +1,4 @@ -File: tpBoundsViolationVariance.kt - b8e7632a299b9ddf99832469d49928b8 - NL("\n") +File: tpBoundsViolationVariance.kt - 6e155cc02ec58ba0001f118163b27ed2 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/nullability/tpInBounds.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/tpInBounds.antlrtree.txt index 7cf6d4164..334029c7f 100644 --- a/grammar/testData/diagnostics/generics/nullability/tpInBounds.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/tpInBounds.antlrtree.txt @@ -1,5 +1,4 @@ -File: tpInBounds.kt - 70530c1805e478734d801856d39230a4 - NL("\n") +File: tpInBounds.kt - 9d244fc7f60c2367586d98020c0dc9a6 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/nullability/useAsReceiver.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/useAsReceiver.antlrtree.txt index 504780625..7f898fbfa 100644 --- a/grammar/testData/diagnostics/generics/nullability/useAsReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/useAsReceiver.antlrtree.txt @@ -1,4 +1,4 @@ -File: useAsReceiver.kt - d521aec3af7a0c8d14eaf977b7fc9477 +File: useAsReceiver.kt - 622903a4da2f64c6ed354497abd842c8 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/nullability/useAsValueArgument.antlrtree.txt b/grammar/testData/diagnostics/generics/nullability/useAsValueArgument.antlrtree.txt index a7ab126f7..9cafc5f0c 100644 --- a/grammar/testData/diagnostics/generics/nullability/useAsValueArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/nullability/useAsValueArgument.antlrtree.txt @@ -1,5 +1,4 @@ -File: useAsValueArgument.kt - 8efb7cc383edd25a50bec576dcb978ac - NL("\n") +File: useAsValueArgument.kt - ec6b58671e8c8610e37b30db4d80638a NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/projectionsScope/addAll.antlrtree.txt b/grammar/testData/diagnostics/generics/projectionsScope/addAll.antlrtree.txt index 1c9d40c16..ff4f05978 100644 --- a/grammar/testData/diagnostics/generics/projectionsScope/addAll.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/projectionsScope/addAll.antlrtree.txt @@ -1,5 +1,4 @@ -File: addAll.kt - 6a57a40554b16a34584284635403cf20 - NL("\n") +File: addAll.kt - 3afb8c0d0fb0c93e3b2b4614b5b9ebda NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/projectionsScope/extensionReceiverTypeMismatch.antlrtree.txt b/grammar/testData/diagnostics/generics/projectionsScope/extensionReceiverTypeMismatch.antlrtree.txt index cdcc3af17..453d1ba14 100644 --- a/grammar/testData/diagnostics/generics/projectionsScope/extensionReceiverTypeMismatch.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/projectionsScope/extensionReceiverTypeMismatch.antlrtree.txt @@ -1,4 +1,4 @@ -File: extensionReceiverTypeMismatch.kt - 811ef97a7167a8cbcf1d2ed0058819ac +File: extensionReceiverTypeMismatch.kt - 7c752c959d385bcd1cef7eb927abf8a5 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/generics/projectionsScope/inValueParameter.antlrtree.txt b/grammar/testData/diagnostics/generics/projectionsScope/inValueParameter.antlrtree.txt index e4c17086d..0dc7f73ae 100644 --- a/grammar/testData/diagnostics/generics/projectionsScope/inValueParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/projectionsScope/inValueParameter.antlrtree.txt @@ -1,5 +1,4 @@ -File: inValueParameter.kt - 0dec1c6a3648d8a781fe3e0f4755c094 - NL("\n") +File: inValueParameter.kt - ce3954dd8a18c959ac21655b628829be packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/generics/projectionsScope/kt7296.antlrtree.txt b/grammar/testData/diagnostics/generics/projectionsScope/kt7296.antlrtree.txt index 6abbed030..fb2fb1e37 100644 --- a/grammar/testData/diagnostics/generics/projectionsScope/kt7296.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/projectionsScope/kt7296.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt7296.kt - 1974ae6ca856c6e74a43390e7c56223e - NL("\n") +File: kt7296.kt - 7fcc2d70a02b5a8ba5161eb42137edfb NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/projectionsScope/multipleArgumentProjectedOut.antlrtree.txt b/grammar/testData/diagnostics/generics/projectionsScope/multipleArgumentProjectedOut.antlrtree.txt index 8f702f939..bead1231a 100644 --- a/grammar/testData/diagnostics/generics/projectionsScope/multipleArgumentProjectedOut.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/projectionsScope/multipleArgumentProjectedOut.antlrtree.txt @@ -1,5 +1,4 @@ -File: multipleArgumentProjectedOut.kt - 4b4c6481a920a05ccb2512107463ae90 - NL("\n") +File: multipleArgumentProjectedOut.kt - 0625f66f4979d1d8d9de60505098ddc2 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/projectionsScope/projectedOutConventions.antlrtree.txt b/grammar/testData/diagnostics/generics/projectionsScope/projectedOutConventions.antlrtree.txt index 434790f6d..e217860fb 100644 --- a/grammar/testData/diagnostics/generics/projectionsScope/projectedOutConventions.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/projectionsScope/projectedOutConventions.antlrtree.txt @@ -1,5 +1,4 @@ -File: projectedOutConventions.kt - 9058331550ef2b856473dfd7b947f4fb - NL("\n") +File: projectedOutConventions.kt - 36211e101ec8a50ab437dd101b5a82dd NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/projectionsScope/projectedOutSmartCast.antlrtree.txt b/grammar/testData/diagnostics/generics/projectionsScope/projectedOutSmartCast.antlrtree.txt index fe1e0587f..8217aa4fe 100644 --- a/grammar/testData/diagnostics/generics/projectionsScope/projectedOutSmartCast.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/projectionsScope/projectedOutSmartCast.antlrtree.txt @@ -1,5 +1,4 @@ -File: projectedOutSmartCast.kt - e2d9e0f494b0a779bcefa8121882da14 - NL("\n") +File: projectedOutSmartCast.kt - 38ead84a9a64de6b8064ae0124d65ea5 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/generics/projectionsScope/starNullabilityRecursive.antlrtree.txt b/grammar/testData/diagnostics/generics/projectionsScope/starNullabilityRecursive.antlrtree.txt index ac2f4342c..8796ce841 100644 --- a/grammar/testData/diagnostics/generics/projectionsScope/starNullabilityRecursive.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/projectionsScope/starNullabilityRecursive.antlrtree.txt @@ -1,5 +1,4 @@ -File: starNullabilityRecursive.kt - 461cceb07e176dc4e45c2f2989b82936 - NL("\n") +File: starNullabilityRecursive.kt - 3f7c42a8ea891b83e697ff9be4696e44 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/projectionsScope/typeMismatchConventions.antlrtree.txt b/grammar/testData/diagnostics/generics/projectionsScope/typeMismatchConventions.antlrtree.txt index 8f802c740..906f3c60b 100644 --- a/grammar/testData/diagnostics/generics/projectionsScope/typeMismatchConventions.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/projectionsScope/typeMismatchConventions.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeMismatchConventions.kt - 52c4d5e1dee6cb05cd142913a52fc360 - NL("\n") +File: typeMismatchConventions.kt - fff717eba196b8df634add80b76261b0 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/projectionsScope/typeMismatchInLambda.antlrtree.txt b/grammar/testData/diagnostics/generics/projectionsScope/typeMismatchInLambda.antlrtree.txt index 86201d184..fe67edc13 100644 --- a/grammar/testData/diagnostics/generics/projectionsScope/typeMismatchInLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/projectionsScope/typeMismatchInLambda.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeMismatchInLambda.kt - 5fa53a2453e0b5a8ca24feaeea438d2b - NL("\n") +File: typeMismatchInLambda.kt - 64c6f679a3b063ca4b0ea5f323cb2032 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/projectionsScope/typeParameterBounds.antlrtree.txt b/grammar/testData/diagnostics/generics/projectionsScope/typeParameterBounds.antlrtree.txt index 291a4444f..f5362987d 100644 --- a/grammar/testData/diagnostics/generics/projectionsScope/typeParameterBounds.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/projectionsScope/typeParameterBounds.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeParameterBounds.kt - 1ca43bd33e37d11c5f3a2cb8c47022a3 - NL("\n") +File: typeParameterBounds.kt - 331426965d752360a6e7680e54adcd4d NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/projectionsScope/unsafeVarianceInAliasedFunctionalType.antlrtree.txt b/grammar/testData/diagnostics/generics/projectionsScope/unsafeVarianceInAliasedFunctionalType.antlrtree.txt index c696021a5..76481f211 100644 --- a/grammar/testData/diagnostics/generics/projectionsScope/unsafeVarianceInAliasedFunctionalType.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/projectionsScope/unsafeVarianceInAliasedFunctionalType.antlrtree.txt @@ -1,5 +1,4 @@ -File: unsafeVarianceInAliasedFunctionalType.kt - f0768d7c7fa18105e54798f085a83920 - NL("\n") +File: unsafeVarianceInAliasedFunctionalType.kt - 6cee3389ba807b09fec52ebfca92e11d NL("\n") packageHeader importList @@ -233,5 +232,5 @@ File: unsafeVarianceInAliasedFunctionalType.kt - f0768d7c7fa18105e54798f085a8392 simpleIdentifier Identifier("Unit") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/generics/projectionsScope/varargs.antlrtree.txt b/grammar/testData/diagnostics/generics/projectionsScope/varargs.antlrtree.txt index db7c904af..6e66859d6 100644 --- a/grammar/testData/diagnostics/generics/projectionsScope/varargs.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/projectionsScope/varargs.antlrtree.txt @@ -1,5 +1,4 @@ -File: varargs.kt - 70b2930431cb55560b15c009a224c1f6 - NL("\n") +File: varargs.kt - 539b055e880c3db30aff38399f7c569a NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/protectedSuperCall.Main.antlrtree.txt b/grammar/testData/diagnostics/generics/protectedSuperCall.Main.antlrtree.txt index d78c40326..3101be334 100644 --- a/grammar/testData/diagnostics/generics/protectedSuperCall.Main.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/protectedSuperCall.Main.antlrtree.txt @@ -184,6 +184,4 @@ File: protectedSuperCall.Main.kt - f9a932c298307a53bca5a102005303e9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/recursive.antlrtree.txt b/grammar/testData/diagnostics/generics/recursive.antlrtree.txt index 203d3996b..5f92b2eb3 100644 --- a/grammar/testData/diagnostics/generics/recursive.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/recursive.antlrtree.txt @@ -262,6 +262,4 @@ File: recursive.kt - aad6d1ba8ae3690b0aecd296a9423afb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/starProjections/checkBounds.antlrtree.txt b/grammar/testData/diagnostics/generics/starProjections/checkBounds.antlrtree.txt index 37d84208f..e352f068d 100644 --- a/grammar/testData/diagnostics/generics/starProjections/checkBounds.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/starProjections/checkBounds.antlrtree.txt @@ -91,6 +91,4 @@ File: checkBounds.kt - 4c42f8422c72545fb5747e7530a1be5e MULT("*") RANGLE(">") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/starProjections/collectionInheritedFromJava.k.antlrtree.txt b/grammar/testData/diagnostics/generics/starProjections/collectionInheritedFromJava.k.antlrtree.txt index 56a591d5c..be3a2e33f 100644 --- a/grammar/testData/diagnostics/generics/starProjections/collectionInheritedFromJava.k.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/starProjections/collectionInheritedFromJava.k.antlrtree.txt @@ -40,6 +40,4 @@ File: collectionInheritedFromJava.k.kt - 2e84e9f7c016b698690719c900227373 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/starProjections/foldRecursiveTypesToStarProjection.antlrtree.txt b/grammar/testData/diagnostics/generics/starProjections/foldRecursiveTypesToStarProjection.antlrtree.txt index 2dd51a33d..3210d7532 100644 --- a/grammar/testData/diagnostics/generics/starProjections/foldRecursiveTypesToStarProjection.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/starProjections/foldRecursiveTypesToStarProjection.antlrtree.txt @@ -1,4 +1,4 @@ -File: foldRecursiveTypesToStarProjection.kt - df494b4738f201824e928cf9ec8fca98 +File: foldRecursiveTypesToStarProjection.kt - 2ebb37a540e46d55ff0534bae9bc2b45 NL("\n") NL("\n") NL("\n") @@ -838,6 +838,4 @@ File: foldRecursiveTypesToStarProjection.kt - df494b4738f201824e928cf9ec8fca98 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/starProjections/inheritedFromJava.k.antlrtree.txt b/grammar/testData/diagnostics/generics/starProjections/inheritedFromJava.k.antlrtree.txt index 16bf91e8c..faaa82aeb 100644 --- a/grammar/testData/diagnostics/generics/starProjections/inheritedFromJava.k.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/starProjections/inheritedFromJava.k.antlrtree.txt @@ -72,6 +72,4 @@ File: inheritedFromJava.k.kt - 7181b3156c1098f914dd6824ddd8fc96 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/starProjections/inheritedFromKotlin.antlrtree.txt b/grammar/testData/diagnostics/generics/starProjections/inheritedFromKotlin.antlrtree.txt index 7a930e27f..9d5e87d05 100644 --- a/grammar/testData/diagnostics/generics/starProjections/inheritedFromKotlin.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/starProjections/inheritedFromKotlin.antlrtree.txt @@ -120,6 +120,4 @@ File: inheritedFromKotlin.kt - 21721a93c905249f761806e420e84cd7 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/suppressVarianceConflict.antlrtree.txt b/grammar/testData/diagnostics/generics/suppressVarianceConflict.antlrtree.txt index f510b142e..6db3b3f52 100644 --- a/grammar/testData/diagnostics/generics/suppressVarianceConflict.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/suppressVarianceConflict.antlrtree.txt @@ -1,4 +1,5 @@ -File: suppressVarianceConflict.kt - 14f2b0dd974955d7cbd5fbd25555da60 +File: suppressVarianceConflict.kt - 8ab12d0c9d9707150adfba75a781d017 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/tpAsReified/CapturedAsReified.antlrtree.txt b/grammar/testData/diagnostics/generics/tpAsReified/CapturedAsReified.antlrtree.txt index 5874495ea..3582d2308 100644 --- a/grammar/testData/diagnostics/generics/tpAsReified/CapturedAsReified.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/tpAsReified/CapturedAsReified.antlrtree.txt @@ -1,4 +1,4 @@ -File: CapturedAsReified.kt - e1b7b0905dd147ca47d642d3a6c2546a +File: CapturedAsReified.kt - ffd860ca24055d01abbd4df26b36ce20 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/tpAsReified/Conventions.antlrtree.txt b/grammar/testData/diagnostics/generics/tpAsReified/Conventions.antlrtree.txt index 9fa777525..e84d99422 100644 --- a/grammar/testData/diagnostics/generics/tpAsReified/Conventions.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/tpAsReified/Conventions.antlrtree.txt @@ -1,4 +1,5 @@ -File: Conventions.kt - 58b574a72674ceaa6dcd2c350489d654 +File: Conventions.kt - b007a35cf6d18914f60b734ab360afbb + NL("\n") NL("\n") NL("\n") packageHeader @@ -297,6 +298,4 @@ File: Conventions.kt - 58b574a72674ceaa6dcd2c350489d654 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/tpAsReified/GenericArrayAsReifiedArgument.antlrtree.txt b/grammar/testData/diagnostics/generics/tpAsReified/GenericArrayAsReifiedArgument.antlrtree.txt index 46e04c0df..f91268fc8 100644 --- a/grammar/testData/diagnostics/generics/tpAsReified/GenericArrayAsReifiedArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/tpAsReified/GenericArrayAsReifiedArgument.antlrtree.txt @@ -1,4 +1,5 @@ -File: GenericArrayAsReifiedArgument.kt - baae8e7b2906123443069c046ecbc058 +File: GenericArrayAsReifiedArgument.kt - 3f7494f2617196e718c513bf4dfd540e + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/tpAsReified/GenericArrayAsReifiedArgumentWarning.antlrtree.txt b/grammar/testData/diagnostics/generics/tpAsReified/GenericArrayAsReifiedArgumentWarning.antlrtree.txt index d99583bc3..9ba52fbd1 100644 --- a/grammar/testData/diagnostics/generics/tpAsReified/GenericArrayAsReifiedArgumentWarning.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/tpAsReified/GenericArrayAsReifiedArgumentWarning.antlrtree.txt @@ -1,4 +1,5 @@ -File: GenericArrayAsReifiedArgumentWarning.kt - 538fdc6b6b7b02ba34349c2c2aeafead +File: GenericArrayAsReifiedArgumentWarning.kt - 26916f13dd601a7aed3bab31dbbbf851 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/generics/tpAsReified/InConstructor.antlrtree.txt b/grammar/testData/diagnostics/generics/tpAsReified/InConstructor.antlrtree.txt index 10138cdfb..2ca767d84 100644 --- a/grammar/testData/diagnostics/generics/tpAsReified/InConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/tpAsReified/InConstructor.antlrtree.txt @@ -1,4 +1,4 @@ -File: InConstructor.kt - 39411edde4bf4f1368cb83bd7a693645 +File: InConstructor.kt - 1154ed4f2f48ce1b4fbd7c262941a84d NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/generics/tpAsReified/InFunction.antlrtree.txt b/grammar/testData/diagnostics/generics/tpAsReified/InFunction.antlrtree.txt index 7521da730..bd3b9ce88 100644 --- a/grammar/testData/diagnostics/generics/tpAsReified/InFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/tpAsReified/InFunction.antlrtree.txt @@ -1,5 +1,4 @@ -File: InFunction.kt - f1c21865d6d23a536612dd81a6b66e15 - NL("\n") +File: InFunction.kt - 19cddb89590630d2df048cfe06c6f988 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/tpAsReified/InProperty.antlrtree.txt b/grammar/testData/diagnostics/generics/tpAsReified/InProperty.antlrtree.txt index c530a1aaa..c661b3d86 100644 --- a/grammar/testData/diagnostics/generics/tpAsReified/InProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/tpAsReified/InProperty.antlrtree.txt @@ -1,4 +1,5 @@ -File: InProperty.kt - f1afeefb8d73284b8dc61693c1efb68a +File: InProperty.kt - 54087a9375676ce36decd989a989872d + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/generics/tpAsReified/InType.antlrtree.txt b/grammar/testData/diagnostics/generics/tpAsReified/InType.antlrtree.txt index 344c30a7c..d3c60970c 100644 --- a/grammar/testData/diagnostics/generics/tpAsReified/InType.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/tpAsReified/InType.antlrtree.txt @@ -1,4 +1,5 @@ -File: InType.kt - d4536f2a4a8efea2b91c53a269eeb846 +File: InType.kt - dabc80badcf6b79b1abc6109b50e7ff9 + NL("\n") packageHeader importList topLevelObject @@ -85,5 +86,5 @@ File: InType.kt - d4536f2a4a8efea2b91c53a269eeb846 statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/generics/tpAsReified/LocalFun.antlrtree.txt b/grammar/testData/diagnostics/generics/tpAsReified/LocalFun.antlrtree.txt index 9daa2780e..99f81d102 100644 --- a/grammar/testData/diagnostics/generics/tpAsReified/LocalFun.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/tpAsReified/LocalFun.antlrtree.txt @@ -1,4 +1,5 @@ -File: LocalFun.kt - f8e81000f19d70269f73933b989fd675 +File: LocalFun.kt - 68f0a1a508b1d75ab9dd841a4bfe0892 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/generics/tpAsReified/NotInlineableReified.antlrtree.txt b/grammar/testData/diagnostics/generics/tpAsReified/NotInlineableReified.antlrtree.txt index 72dad8f18..5c8c087e4 100644 --- a/grammar/testData/diagnostics/generics/tpAsReified/NotInlineableReified.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/tpAsReified/NotInlineableReified.antlrtree.txt @@ -1,4 +1,5 @@ -File: NotInlineableReified.kt - 2738b8b6946d31e252c97affe004856a +File: NotInlineableReified.kt - 023fc98936f4123c39c46022bb883b35 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/generics/tpAsReified/ReifiedClass.antlrtree.txt b/grammar/testData/diagnostics/generics/tpAsReified/ReifiedClass.antlrtree.txt index c6e43e6a2..e90a4dcf4 100644 --- a/grammar/testData/diagnostics/generics/tpAsReified/ReifiedClass.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/tpAsReified/ReifiedClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: ReifiedClass.kt - 79f0e9d127c4bc7b9576f4b52de8d6af +File: ReifiedClass.kt - c8202649bc22d6d8454907ae5ddde350 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/generics/varProjection/setterNotProjectedOutAssign.antlrtree.txt b/grammar/testData/diagnostics/generics/varProjection/setterNotProjectedOutAssign.antlrtree.txt index 7549d635a..83d00eca2 100644 --- a/grammar/testData/diagnostics/generics/varProjection/setterNotProjectedOutAssign.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/varProjection/setterNotProjectedOutAssign.antlrtree.txt @@ -1,5 +1,4 @@ -File: setterNotProjectedOutAssign.kt - 0f8fdc1c7f2f604061f2b1676446bc9d - NL("\n") +File: setterNotProjectedOutAssign.kt - 867fa2e02f57927658ab427575587e20 NL("\n") packageHeader importList @@ -194,6 +193,4 @@ File: setterNotProjectedOutAssign.kt - 0f8fdc1c7f2f604061f2b1676446bc9d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutAssign.antlrtree.txt b/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutAssign.antlrtree.txt index 30bd7f7f7..19bc2e570 100644 --- a/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutAssign.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutAssign.antlrtree.txt @@ -1,4 +1,4 @@ -File: setterProjectedOutAssign.kt - cf626afb94ba922104c52e0706aef8a3 +File: setterProjectedOutAssign.kt - 5ba660243500e3bb74987449c37ef625 NL("\n") NL("\n") NL("\n") @@ -259,6 +259,4 @@ File: setterProjectedOutAssign.kt - cf626afb94ba922104c52e0706aef8a3 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutNoPlusAssign.antlrtree.txt b/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutNoPlusAssign.antlrtree.txt index a6c360b1a..6822e6d97 100644 --- a/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutNoPlusAssign.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutNoPlusAssign.antlrtree.txt @@ -1,4 +1,4 @@ -File: setterProjectedOutNoPlusAssign.kt - 5acd5297a3343f08089710b9cc04f524 +File: setterProjectedOutNoPlusAssign.kt - b31632e2ebbc7a262edcdec99f5414ec NL("\n") NL("\n") packageHeader @@ -121,6 +121,4 @@ File: setterProjectedOutNoPlusAssign.kt - 5acd5297a3343f08089710b9cc04f524 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutPlusAssignDefined.antlrtree.txt b/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutPlusAssignDefined.antlrtree.txt index c2f0c4c75..397915f46 100644 --- a/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutPlusAssignDefined.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/varProjection/setterProjectedOutPlusAssignDefined.antlrtree.txt @@ -1,4 +1,5 @@ -File: setterProjectedOutPlusAssignDefined.kt - e0178f17b2f2dd8dfcf5f73e6799d9d7 +File: setterProjectedOutPlusAssignDefined.kt - ad157e6dd566ff1d31a24c3c00d8de93 + NL("\n") NL("\n") packageHeader importList @@ -165,5 +166,5 @@ File: setterProjectedOutPlusAssignDefined.kt - e0178f17b2f2dd8dfcf5f73e6799d9d7 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/generics/wrongNumberOfTypeArgumentsDiagnostic.antlrtree.txt b/grammar/testData/diagnostics/generics/wrongNumberOfTypeArgumentsDiagnostic.antlrtree.txt index 5e4325f7d..9a8cd9d14 100644 --- a/grammar/testData/diagnostics/generics/wrongNumberOfTypeArgumentsDiagnostic.antlrtree.txt +++ b/grammar/testData/diagnostics/generics/wrongNumberOfTypeArgumentsDiagnostic.antlrtree.txt @@ -1,5 +1,4 @@ -File: wrongNumberOfTypeArgumentsDiagnostic.kt - 7915af1b62ca65ac2330d27a12d6ce69 - NL("\n") +File: wrongNumberOfTypeArgumentsDiagnostic.kt - c308bb053de8d058ff20d29c4104cf15 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/implicitIntersection.antlrtree.txt b/grammar/testData/diagnostics/implicitIntersection.antlrtree.txt index ef1dd2538..f6089791a 100644 --- a/grammar/testData/diagnostics/implicitIntersection.antlrtree.txt +++ b/grammar/testData/diagnostics/implicitIntersection.antlrtree.txt @@ -1,5 +1,4 @@ -File: implicitIntersection.kt - d55e113cb4607bd149f9ebdb0fffa505 - NL("\n") +File: implicitIntersection.kt - 920ab0723ff8dc8a4f1fd6492a9620fd NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/implicitNestedIntersection.antlrtree.txt b/grammar/testData/diagnostics/implicitNestedIntersection.antlrtree.txt index bbaf1f1e1..e2a8ec4a0 100644 --- a/grammar/testData/diagnostics/implicitNestedIntersection.antlrtree.txt +++ b/grammar/testData/diagnostics/implicitNestedIntersection.antlrtree.txt @@ -1,4 +1,4 @@ -File: implicitNestedIntersection.kt - 9cb9bbc7f8de95d22f5550ba3a8d0ecd +File: implicitNestedIntersection.kt - 4b2e873900d23a813aebeaf6ff3821f1 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/implicitNothing.antlrtree.txt b/grammar/testData/diagnostics/implicitNothing.antlrtree.txt index 53341e427..87cafc93d 100644 --- a/grammar/testData/diagnostics/implicitNothing.antlrtree.txt +++ b/grammar/testData/diagnostics/implicitNothing.antlrtree.txt @@ -1,4 +1,4 @@ -File: implicitNothing.kt - 6aab0fb2c53f1c9858df0f7fa8d0bfb6 +File: implicitNothing.kt - 4f5f3191e430c9d0a8603767dedcce80 packageHeader importList topLevelObject @@ -803,5 +803,5 @@ File: implicitNothing.kt - 6aab0fb2c53f1c9858df0f7fa8d0bfb6 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/imports/AllUnderImportsAmbiguity.c.antlrtree.txt b/grammar/testData/diagnostics/imports/AllUnderImportsAmbiguity.c.antlrtree.txt index cbc026de3..5a38c20a4 100644 --- a/grammar/testData/diagnostics/imports/AllUnderImportsAmbiguity.c.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/AllUnderImportsAmbiguity.c.antlrtree.txt @@ -41,6 +41,4 @@ File: AllUnderImportsAmbiguity.c.kt - 1cc18ea80ba6dc20ef6a9fd469ceb7de simpleUserType simpleIdentifier Identifier("X") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/AllUnderImportsLessPriority.c.antlrtree.txt b/grammar/testData/diagnostics/imports/AllUnderImportsLessPriority.c.antlrtree.txt index ae8874fd1..488088fb8 100644 --- a/grammar/testData/diagnostics/imports/AllUnderImportsLessPriority.c.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/AllUnderImportsLessPriority.c.antlrtree.txt @@ -46,6 +46,4 @@ File: AllUnderImportsLessPriority.c.kt - ee03f4cf88de0850061cc5efc3bc08fa valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/AllUnderImportsSamePriorityForProperty.a.antlrtree.txt b/grammar/testData/diagnostics/imports/AllUnderImportsSamePriorityForProperty.a.antlrtree.txt index dd71e3818..0d07eff9f 100644 --- a/grammar/testData/diagnostics/imports/AllUnderImportsSamePriorityForProperty.a.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/AllUnderImportsSamePriorityForProperty.a.antlrtree.txt @@ -43,6 +43,4 @@ File: AllUnderImportsSamePriorityForProperty.a.kt - 8c4b5901c2e215e10c5c1d8631c6 IntegerLiteral("1") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/AllUnderImportsSamePriorityForProperty.b.antlrtree.txt b/grammar/testData/diagnostics/imports/AllUnderImportsSamePriorityForProperty.b.antlrtree.txt index ac45dea9f..789d656c7 100644 --- a/grammar/testData/diagnostics/imports/AllUnderImportsSamePriorityForProperty.b.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/AllUnderImportsSamePriorityForProperty.b.antlrtree.txt @@ -45,6 +45,4 @@ File: AllUnderImportsSamePriorityForProperty.b.kt - 8cc7670fe1aa7d41b191915c26c1 QUOTE_CLOSE(""") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/CheckJavaVisibility.k2.antlrtree.txt b/grammar/testData/diagnostics/imports/CheckJavaVisibility.k2.antlrtree.txt index c245f759a..32fc793f8 100644 --- a/grammar/testData/diagnostics/imports/CheckJavaVisibility.k2.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/CheckJavaVisibility.k2.antlrtree.txt @@ -166,6 +166,4 @@ File: CheckJavaVisibility.k2.kt - 657d6a1942b062664884f4055db20a9f DOT(".") simpleIdentifier Identifier("javaPPrivate") - semi - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/CheckVisibility.k3.antlrtree.txt b/grammar/testData/diagnostics/imports/CheckVisibility.k3.antlrtree.txt index 6a4bd0001..a321e34bf 100644 --- a/grammar/testData/diagnostics/imports/CheckVisibility.k3.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/CheckVisibility.k3.antlrtree.txt @@ -49,6 +49,4 @@ File: CheckVisibility.k3.kt - fb561822b17a717678e180bc02cbb425 DOT(".") simpleIdentifier Identifier("KProtected") - semi - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/ClassImportsConflicting.c.antlrtree.txt b/grammar/testData/diagnostics/imports/ClassImportsConflicting.c.antlrtree.txt index 1759a855f..21c9dba20 100644 --- a/grammar/testData/diagnostics/imports/ClassImportsConflicting.c.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/ClassImportsConflicting.c.antlrtree.txt @@ -18,6 +18,4 @@ File: ClassImportsConflicting.c.kt - d4bdff26595dec54d741c1695147c62f LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/DefaultImportsPriority.antlrtree.txt b/grammar/testData/diagnostics/imports/DefaultImportsPriority.antlrtree.txt index 58bee2cd8..9afeed3b7 100644 --- a/grammar/testData/diagnostics/imports/DefaultImportsPriority.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/DefaultImportsPriority.antlrtree.txt @@ -1,4 +1,7 @@ -File: DefaultImportsPriority.kt - 006564d59f7ef0ae345410a957e94a0b +File: DefaultImportsPriority.kt - ef2935e76d36d42c1e7a713670401048 + NL("\n") + NL("\n") + NL("\n") packageHeader importList importHeader @@ -88,5 +91,5 @@ File: DefaultImportsPriority.kt - 006564d59f7ef0ae345410a957e94a0b statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/imports/DoubleImports.ExplicitImported.antlrtree.txt b/grammar/testData/diagnostics/imports/DoubleImports.ExplicitImported.antlrtree.txt new file mode 100644 index 000000000..f3cf3dddc --- /dev/null +++ b/grammar/testData/diagnostics/imports/DoubleImports.ExplicitImported.antlrtree.txt @@ -0,0 +1,65 @@ +File: DoubleImports.ExplicitImported.kt - 81e73dbb2ad498550abfb92eec1b0bcb + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("explicit") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AnotherClass") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("gau") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/DoubleImports.StarImported.antlrtree.txt b/grammar/testData/diagnostics/imports/DoubleImports.StarImported.antlrtree.txt new file mode 100644 index 000000000..4abd55e42 --- /dev/null +++ b/grammar/testData/diagnostics/imports/DoubleImports.StarImported.antlrtree.txt @@ -0,0 +1,78 @@ +File: DoubleImports.StarImported.kt - d78bf95e1ba0311dfa36def1f4ac22a0 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("star") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SomeClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/DoubleImports.Test.antlrtree.txt b/grammar/testData/diagnostics/imports/DoubleImports.Test.antlrtree.txt new file mode 100644 index 000000000..13c7c72fa --- /dev/null +++ b/grammar/testData/diagnostics/imports/DoubleImports.Test.antlrtree.txt @@ -0,0 +1,349 @@ +File: DoubleImports.Test.kt - 1d04354b207bb70adfabcbcf37040dff + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("star") + DOT(".") + MULT("*") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("star") + DOT(".") + MULT("*") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("explicit") + DOT(".") + simpleIdentifier + Identifier("AnotherClass") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("explicit") + DOT(".") + simpleIdentifier + Identifier("AnotherClass") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("explicit") + DOT(".") + simpleIdentifier + Identifier("baz") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("explicit") + DOT(".") + simpleIdentifier + Identifier("baz") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("explicit") + DOT(".") + simpleIdentifier + Identifier("gau") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("explicit") + DOT(".") + simpleIdentifier + Identifier("gau") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("useSomeClass") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeClass") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeClass") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("useNested") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeClass") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Nested") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Nested") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("useAnotherClass") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AnotherClass") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnotherClass") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("gau") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity.SomeEnum.antlrtree.txt b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity.SomeEnum.antlrtree.txt new file mode 100644 index 000000000..35cde5691 --- /dev/null +++ b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity.SomeEnum.antlrtree.txt @@ -0,0 +1,35 @@ +File: EnumEntryVsStaticAmbiguity.SomeEnum.kt - 95a410e0ebc7f6da0f0e614c0cc7e214 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("second") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("SOME") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity.test.antlrtree.txt b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity.test.antlrtree.txt new file mode 100644 index 000000000..2dfda13c4 --- /dev/null +++ b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity.test.antlrtree.txt @@ -0,0 +1,195 @@ +File: EnumEntryVsStaticAmbiguity.test.kt - f7423de58957d1e827f076d91729b2a8 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("first") + DOT(".") + simpleIdentifier + Identifier("KtNodeTypes") + DOT(".") + MULT("*") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("second") + DOT(".") + simpleIdentifier + Identifier("SomeEnum") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SOME") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity2.OtherEnum.antlrtree.txt b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity2.OtherEnum.antlrtree.txt new file mode 100644 index 000000000..a1d1a60c6 --- /dev/null +++ b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity2.OtherEnum.antlrtree.txt @@ -0,0 +1,35 @@ +File: EnumEntryVsStaticAmbiguity2.OtherEnum.kt - 686366857312493aeb94cc21ae41c581 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("third") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("SOME") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity2.SomeEnum.antlrtree.txt b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity2.SomeEnum.antlrtree.txt new file mode 100644 index 000000000..58df52903 --- /dev/null +++ b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity2.SomeEnum.antlrtree.txt @@ -0,0 +1,35 @@ +File: EnumEntryVsStaticAmbiguity2.SomeEnum.kt - 95a410e0ebc7f6da0f0e614c0cc7e214 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("second") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("SOME") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity2.test.antlrtree.txt b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity2.test.antlrtree.txt new file mode 100644 index 000000000..7ebeafd5b --- /dev/null +++ b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity2.test.antlrtree.txt @@ -0,0 +1,207 @@ +File: EnumEntryVsStaticAmbiguity2.test.kt - 6c40e938584029985ee4837dad41ebd3 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("first") + DOT(".") + simpleIdentifier + Identifier("KtNodeTypes") + DOT(".") + MULT("*") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("second") + DOT(".") + simpleIdentifier + Identifier("SomeEnum") + DOT(".") + MULT("*") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("third") + DOT(".") + simpleIdentifier + Identifier("SomeEnum") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SOME") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity3.SomeEnum.antlrtree.txt b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity3.SomeEnum.antlrtree.txt new file mode 100644 index 000000000..c829e9716 --- /dev/null +++ b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity3.SomeEnum.antlrtree.txt @@ -0,0 +1,35 @@ +File: EnumEntryVsStaticAmbiguity3.SomeEnum.kt - 95a410e0ebc7f6da0f0e614c0cc7e214 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("second") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("SOME") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity3.test.antlrtree.txt b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity3.test.antlrtree.txt new file mode 100644 index 000000000..84efa4075 --- /dev/null +++ b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity3.test.antlrtree.txt @@ -0,0 +1,197 @@ +File: EnumEntryVsStaticAmbiguity3.test.kt - 5cec101cc1de363d8820ee6b1cf33598 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("first") + DOT(".") + simpleIdentifier + Identifier("KtNodeTypes") + DOT(".") + simpleIdentifier + Identifier("SOME") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("second") + DOT(".") + simpleIdentifier + Identifier("SomeEnum") + DOT(".") + simpleIdentifier + Identifier("SOME") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SOME") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity4.SomeEnum.antlrtree.txt b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity4.SomeEnum.antlrtree.txt new file mode 100644 index 000000000..f0ebcc6db --- /dev/null +++ b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity4.SomeEnum.antlrtree.txt @@ -0,0 +1,35 @@ +File: EnumEntryVsStaticAmbiguity4.SomeEnum.kt - 95a410e0ebc7f6da0f0e614c0cc7e214 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("second") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("SOME") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity4.test.antlrtree.txt b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity4.test.antlrtree.txt new file mode 100644 index 000000000..79f95e284 --- /dev/null +++ b/grammar/testData/diagnostics/imports/EnumEntryVsStaticAmbiguity4.test.antlrtree.txt @@ -0,0 +1,207 @@ +File: EnumEntryVsStaticAmbiguity4.test.kt - f741edc9e25f62e14081afb80e48f446 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("first") + DOT(".") + simpleIdentifier + Identifier("KtNodeTypes") + DOT(".") + MULT("*") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("second") + DOT(".") + simpleIdentifier + Identifier("SomeEnum") + DOT(".") + MULT("*") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("third") + DOT(".") + simpleIdentifier + Identifier("OtherTypes") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SOME") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/ExplicitImportsAmbiguity.c.antlrtree.txt b/grammar/testData/diagnostics/imports/ExplicitImportsAmbiguity.c.antlrtree.txt index e8e480ec2..a649bd022 100644 --- a/grammar/testData/diagnostics/imports/ExplicitImportsAmbiguity.c.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/ExplicitImportsAmbiguity.c.antlrtree.txt @@ -43,6 +43,4 @@ File: ExplicitImportsAmbiguity.c.kt - 6e134e4327ddc9e073a7591c3f192599 simpleUserType simpleIdentifier Identifier("X") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/ExplicitPackageImportsAmbiguity.c.antlrtree.txt b/grammar/testData/diagnostics/imports/ExplicitPackageImportsAmbiguity.c.antlrtree.txt index 852da6351..00ddfe5ba 100644 --- a/grammar/testData/diagnostics/imports/ExplicitPackageImportsAmbiguity.c.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/ExplicitPackageImportsAmbiguity.c.antlrtree.txt @@ -47,6 +47,4 @@ File: ExplicitPackageImportsAmbiguity.c.kt - f58990a7ce7bc1b95e68a11d8687c008 simpleUserType simpleIdentifier Identifier("X") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportClassClash.6.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportClassClash.6.antlrtree.txt index ca4660a99..80fb80ad6 100644 --- a/grammar/testData/diagnostics/imports/ImportClassClash.6.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/ImportClassClash.6.antlrtree.txt @@ -1,4 +1,4 @@ -File: ImportClassClash.6.kt - 4ad4c54994cc928b7cc35c06608a4bb3 +File: ImportClassClash.6.kt - f0d7ea22b84e2f73282bbacde48792a8 packageHeader importList importHeader @@ -20,5 +20,6 @@ File: ImportClassClash.6.kt - 4ad4c54994cc928b7cc35c06608a4bb3 simpleIdentifier Identifier("B") semi - EOF("") + NL("\n") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportClassClash.7.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportClassClash.7.antlrtree.txt new file mode 100644 index 000000000..09a5ab5b3 --- /dev/null +++ b/grammar/testData/diagnostics/imports/ImportClassClash.7.antlrtree.txt @@ -0,0 +1,32 @@ +File: ImportClassClash.7.kt - e3f17d83cd177d64cfa84c4b9fbc5993 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("a") + DOT(".") + simpleIdentifier + Identifier("B") + importAlias + AS("as") + simpleIdentifier + Identifier("Foo") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("b") + DOT(".") + simpleIdentifier + Identifier("B") + importAlias + AS("as") + simpleIdentifier + Identifier("Foo") + semi + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportFromCompanionObject.e.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportFromCompanionObject.e.antlrtree.txt index 5159dcd6c..b3dea011b 100644 --- a/grammar/testData/diagnostics/imports/ImportFromCompanionObject.e.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/ImportFromCompanionObject.e.antlrtree.txt @@ -1,4 +1,4 @@ -File: ImportFromCompanionObject.e.kt - 370ab66b365e5bb71a297406415b9f67 +File: ImportFromCompanionObject.e.kt - 8be366f763ce2914b9a0811c78d676c2 packageHeader PACKAGE("package") identifier @@ -374,5 +374,5 @@ File: ImportFromCompanionObject.e.kt - 370ab66b365e5bb71a297406415b9f67 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportFromObject.e.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportFromObject.e.antlrtree.txt index 0b192fcc6..69be2a01d 100644 --- a/grammar/testData/diagnostics/imports/ImportFromObject.e.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/ImportFromObject.e.antlrtree.txt @@ -1,4 +1,4 @@ -File: ImportFromObject.e.kt - 8a188c6df6b11330ac9b9284d3054bd5 +File: ImportFromObject.e.kt - 80239951b38d5a8305413100432ac749 packageHeader PACKAGE("package") identifier @@ -353,5 +353,5 @@ File: ImportFromObject.e.kt - 8a188c6df6b11330ac9b9284d3054bd5 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportFromRootPackage.rootPackage.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportFromRootPackage.rootPackage.antlrtree.txt index e0f2fee5e..e1243f662 100644 --- a/grammar/testData/diagnostics/imports/ImportFromRootPackage.rootPackage.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/ImportFromRootPackage.rootPackage.antlrtree.txt @@ -96,6 +96,4 @@ File: ImportFromRootPackage.rootPackage.kt - e3c3778b8da6203107b6c814331e3502 QUOTE_CLOSE(""") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportFromRootPackage.yetAnotherFromRootPackage.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportFromRootPackage.yetAnotherFromRootPackage.antlrtree.txt index 693ecf948..9f5d4ce2e 100644 --- a/grammar/testData/diagnostics/imports/ImportFromRootPackage.yetAnotherFromRootPackage.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/ImportFromRootPackage.yetAnotherFromRootPackage.antlrtree.txt @@ -222,6 +222,4 @@ File: ImportFromRootPackage.yetAnotherFromRootPackage.kt - 93f2692c495fcb7223c8c LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportFunctionWithPackageName.a.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportFunctionWithPackageName.a.antlrtree.txt new file mode 100644 index 000000000..6352befad --- /dev/null +++ b/grammar/testData/diagnostics/imports/ImportFunctionWithPackageName.a.antlrtree.txt @@ -0,0 +1,14 @@ +File: ImportFunctionWithPackageName.a.kt - dba85fabd43591ffe55dd71706ad50e1 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("a") + DOT(".") + simpleIdentifier + Identifier("foo") + semi + NL("\n") + NL("\n") + importList + EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportFunctionWithPackageName.b.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportFunctionWithPackageName.b.antlrtree.txt new file mode 100644 index 000000000..8639fe3a4 --- /dev/null +++ b/grammar/testData/diagnostics/imports/ImportFunctionWithPackageName.b.antlrtree.txt @@ -0,0 +1,43 @@ +File: ImportFunctionWithPackageName.b.kt - cbd1e636a5567b2387ba1b349efac590 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("a") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportFunctionWithPackageName.c.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportFunctionWithPackageName.c.antlrtree.txt new file mode 100644 index 000000000..ac3955f51 --- /dev/null +++ b/grammar/testData/diagnostics/imports/ImportFunctionWithPackageName.c.antlrtree.txt @@ -0,0 +1,21 @@ +File: ImportFunctionWithPackageName.c.kt - 00c08359e18f1d3a5223a507d5bdb000 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("c") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("a") + DOT(".") + simpleIdentifier + Identifier("foo") + semi + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportHidingDefinitionInTheSameFile.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportHidingDefinitionInTheSameFile.antlrtree.txt index 0b4b1252f..e0eca41fe 100644 --- a/grammar/testData/diagnostics/imports/ImportHidingDefinitionInTheSameFile.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/ImportHidingDefinitionInTheSameFile.antlrtree.txt @@ -100,6 +100,4 @@ File: ImportHidingDefinitionInTheSameFile.kt - 1b8b070c9d2832b1aa1ad864f9d9fc53 literalConstant IntegerLiteral("0") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportObjectAndUseAsSupertype.b.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportObjectAndUseAsSupertype.b.antlrtree.txt index 35985ff12..4ec4d2afd 100644 --- a/grammar/testData/diagnostics/imports/ImportObjectAndUseAsSupertype.b.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/ImportObjectAndUseAsSupertype.b.antlrtree.txt @@ -83,6 +83,4 @@ File: ImportObjectAndUseAsSupertype.b.kt - 3c885620f647f02909177d97f6874509 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportPrivateMemberFromOtherFile.C.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportPrivateMemberFromOtherFile.C.antlrtree.txt index 4336fb085..807351ed7 100644 --- a/grammar/testData/diagnostics/imports/ImportPrivateMemberFromOtherFile.C.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/ImportPrivateMemberFromOtherFile.C.antlrtree.txt @@ -89,6 +89,4 @@ File: ImportPrivateMemberFromOtherFile.C.kt - 353228c3e3a9c0570edeaca61c396d40 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportPrivateMembersWithStar.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportPrivateMembersWithStar.antlrtree.txt index 71759e3f9..0c54184a7 100644 --- a/grammar/testData/diagnostics/imports/ImportPrivateMembersWithStar.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/ImportPrivateMembersWithStar.antlrtree.txt @@ -366,6 +366,4 @@ File: ImportPrivateMembersWithStar.kt - f520220a0bdccfbe0ab0bcfa08dba636 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportProtectedClass.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportProtectedClass.antlrtree.txt index cc9a60c2b..66b92d831 100644 --- a/grammar/testData/diagnostics/imports/ImportProtectedClass.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/ImportProtectedClass.antlrtree.txt @@ -219,6 +219,4 @@ File: ImportProtectedClass.kt - b3b2832de7e9a4ba726df52ba4be1490 primaryExpression literalConstant NullLiteral("null") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportResolutionOrder.a.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportResolutionOrder.a.antlrtree.txt index cc41429a8..2c3b722ac 100644 --- a/grammar/testData/diagnostics/imports/ImportResolutionOrder.a.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/ImportResolutionOrder.a.antlrtree.txt @@ -58,6 +58,4 @@ File: ImportResolutionOrder.a.kt - 2d8d4410727a0bc45e331f9d2e438830 RPAREN(")") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportResolutionOrder.c.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportResolutionOrder.c.antlrtree.txt index aa69e2c00..681a1a99f 100644 --- a/grammar/testData/diagnostics/imports/ImportResolutionOrder.c.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/ImportResolutionOrder.c.antlrtree.txt @@ -57,6 +57,4 @@ File: ImportResolutionOrder.c.kt - 707ceedbf5410e3c41e07ae5fd4b3f28 RPAREN(")") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/ImportStaticFunctionWithNonStaticSibling.test.antlrtree.txt b/grammar/testData/diagnostics/imports/ImportStaticFunctionWithNonStaticSibling.test.antlrtree.txt new file mode 100644 index 000000000..d081cf486 --- /dev/null +++ b/grammar/testData/diagnostics/imports/ImportStaticFunctionWithNonStaticSibling.test.antlrtree.txt @@ -0,0 +1,24 @@ +File: ImportStaticFunctionWithNonStaticSibling.test.kt - b9d88479dd18433e0a32e84af0312da4 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("b") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("a") + DOT(".") + simpleIdentifier + Identifier("Foo") + DOT(".") + simpleIdentifier + Identifier("bar") + semi + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/InaccessiblePrivateClass.c.antlrtree.txt b/grammar/testData/diagnostics/imports/InaccessiblePrivateClass.c.antlrtree.txt index 5aa674122..83cd0ba38 100644 --- a/grammar/testData/diagnostics/imports/InaccessiblePrivateClass.c.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/InaccessiblePrivateClass.c.antlrtree.txt @@ -96,6 +96,4 @@ File: InaccessiblePrivateClass.c.kt - 61aa39ece753a65a5f342429f14504a3 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/InaccessiblePrivateInFile.f11.antlrtree.txt b/grammar/testData/diagnostics/imports/InaccessiblePrivateInFile.f11.antlrtree.txt new file mode 100644 index 000000000..16e57e6cc --- /dev/null +++ b/grammar/testData/diagnostics/imports/InaccessiblePrivateInFile.f11.antlrtree.txt @@ -0,0 +1,45 @@ +File: InaccessiblePrivateInFile.f11.kt - 10a077751dddee496532f17eeca6ff6a + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("api") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ApplicabilityResult") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Inapplicable") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ApplicabilityResult") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/InaccessiblePrivateInFile.f12.antlrtree.txt b/grammar/testData/diagnostics/imports/InaccessiblePrivateInFile.f12.antlrtree.txt new file mode 100644 index 000000000..0583d6442 --- /dev/null +++ b/grammar/testData/diagnostics/imports/InaccessiblePrivateInFile.f12.antlrtree.txt @@ -0,0 +1,44 @@ +File: InaccessiblePrivateInFile.f12.kt - 350e35a5461f9dc4ae57468b4ed35708 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("api") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ArgumentMapping") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("highlightingApplicabilities") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ApplicabilityResult") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/InaccessiblePrivateInFile.f21.antlrtree.txt b/grammar/testData/diagnostics/imports/InaccessiblePrivateInFile.f21.antlrtree.txt new file mode 100644 index 000000000..f15f3bff3 --- /dev/null +++ b/grammar/testData/diagnostics/imports/InaccessiblePrivateInFile.f21.antlrtree.txt @@ -0,0 +1,42 @@ +File: InaccessiblePrivateInFile.f21.kt - 0e9baf1df2375e0f3e838aa4cb47d966 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("impl") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("ApplicabilityResult") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("applicable") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/InaccessiblePrivateInFile.f22.antlrtree.txt b/grammar/testData/diagnostics/imports/InaccessiblePrivateInFile.f22.antlrtree.txt new file mode 100644 index 000000000..bf39be04b --- /dev/null +++ b/grammar/testData/diagnostics/imports/InaccessiblePrivateInFile.f22.antlrtree.txt @@ -0,0 +1,171 @@ +File: InaccessiblePrivateInFile.f22.kt - 11ce68209b3eb0064a528a2a4520abd9 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("impl") + semi + NL("\n") + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("api") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("NullArgumentMapping") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ArgumentMapping") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("highlightingApplicabilities") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ApplicabilityResult") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ApplicabilityResult") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("PositionalArgumentMapping") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ArgumentMapping") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("highlightingApplicabilities") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ApplicabilityResult") + functionBody + ASSIGNMENT("=") + NL("\n") + NL("\n") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ApplicabilityResult") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Inapplicable") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/imports/NestedClassClash.d.antlrtree.txt b/grammar/testData/diagnostics/imports/NestedClassClash.d.antlrtree.txt index 7bde2e558..efa034b6e 100644 --- a/grammar/testData/diagnostics/imports/NestedClassClash.d.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/NestedClassClash.d.antlrtree.txt @@ -79,6 +79,4 @@ File: NestedClassClash.d.kt - efa1ebb743dedcd8073792d46d365d0c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/OperatorRenameOnImport.b.antlrtree.txt b/grammar/testData/diagnostics/imports/OperatorRenameOnImport.b.antlrtree.txt index a25a7a4b6..40eb84b93 100644 --- a/grammar/testData/diagnostics/imports/OperatorRenameOnImport.b.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/OperatorRenameOnImport.b.antlrtree.txt @@ -95,6 +95,4 @@ File: OperatorRenameOnImport.b.kt - 2803adc752aa5c8c33b75732ee5d1dd0 primaryExpression simpleIdentifier Identifier("a2") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/OptionalAnnotationClasses.antlrtree.txt b/grammar/testData/diagnostics/imports/OptionalAnnotationClasses.antlrtree.txt new file mode 100644 index 000000000..99f558e02 --- /dev/null +++ b/grammar/testData/diagnostics/imports/OptionalAnnotationClasses.antlrtree.txt @@ -0,0 +1,186 @@ +File: OptionalAnnotationClasses.kt - df566f7245e0ca84e377a2062748831b + NL("\n") + NL("\n") + fileAnnotation + AT_PRE_WS("\n@") + FILE("file") + COLON(":") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Suppress") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("js") + DOT(".") + MULT("*") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("native") + DOT(".") + simpleIdentifier + Identifier("concurrent") + DOT(".") + MULT("*") + semi + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JsName") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + visibilityModifier + PUBLIC("public") + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("SharedImmutable") + NL("\n") + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("EmptyArray") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arrayOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + EOF("") diff --git a/grammar/testData/diagnostics/imports/PackageVsClass.d.antlrtree.txt b/grammar/testData/diagnostics/imports/PackageVsClass.d.antlrtree.txt index 21f7e5678..579d46fb3 100644 --- a/grammar/testData/diagnostics/imports/PackageVsClass.d.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/PackageVsClass.d.antlrtree.txt @@ -518,6 +518,4 @@ File: PackageVsClass.d.kt - 6b5f43df6c42d9be9d1f07183721b904 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/RenameOnImport.a.antlrtree.txt b/grammar/testData/diagnostics/imports/RenameOnImport.a.antlrtree.txt index c7379ee7c..e37de3c90 100644 --- a/grammar/testData/diagnostics/imports/RenameOnImport.a.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/RenameOnImport.a.antlrtree.txt @@ -63,6 +63,4 @@ File: RenameOnImport.a.kt - 1d4b4e7321208835dd8c4f2a731b8ced IntegerLiteral("1") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/RenameOnImport.b.antlrtree.txt b/grammar/testData/diagnostics/imports/RenameOnImport.b.antlrtree.txt index e07323ddb..1f9ce6a48 100644 --- a/grammar/testData/diagnostics/imports/RenameOnImport.b.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/RenameOnImport.b.antlrtree.txt @@ -38,6 +38,4 @@ File: RenameOnImport.b.kt - 8439768e6d56202f64d6550254a3fc08 QUOTE_CLOSE(""") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/RenameOnImport.c.antlrtree.txt b/grammar/testData/diagnostics/imports/RenameOnImport.c.antlrtree.txt index 016f57f5c..cdae8f99d 100644 --- a/grammar/testData/diagnostics/imports/RenameOnImport.c.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/RenameOnImport.c.antlrtree.txt @@ -150,6 +150,4 @@ File: RenameOnImport.c.kt - c53e6e0b6f2b1fcef497753c36fe1af2 simpleIdentifier Identifier("y") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/StarImportFromObject.antlrtree.txt b/grammar/testData/diagnostics/imports/StarImportFromObject.antlrtree.txt index c4a701d42..e1492bf6a 100644 --- a/grammar/testData/diagnostics/imports/StarImportFromObject.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/StarImportFromObject.antlrtree.txt @@ -1,4 +1,5 @@ -File: StarImportFromObject.kt - 9d1b92d2443fd0d8751826c4bf91eee2 +File: StarImportFromObject.kt - be8ce980313fc5c11527c6ce7e8e43bd + NL("\n") packageHeader PACKAGE("package") identifier @@ -393,6 +394,4 @@ File: StarImportFromObject.kt - 9d1b92d2443fd0d8751826c4bf91eee2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/TopLevelClassVsPackage.e.antlrtree.txt b/grammar/testData/diagnostics/imports/TopLevelClassVsPackage.e.antlrtree.txt index 48d4b287d..3425ba2cd 100644 --- a/grammar/testData/diagnostics/imports/TopLevelClassVsPackage.e.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/TopLevelClassVsPackage.e.antlrtree.txt @@ -256,6 +256,4 @@ File: TopLevelClassVsPackage.e.kt - 2f37ca93121bfd792437d9d2ad1d556d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/importFunctionWithAllUnderImport.importFunctionWithAllUnderImport.antlrtree.txt b/grammar/testData/diagnostics/imports/importFunctionWithAllUnderImport.importFunctionWithAllUnderImport.antlrtree.txt index d0745d9f3..3107e293a 100644 --- a/grammar/testData/diagnostics/imports/importFunctionWithAllUnderImport.importFunctionWithAllUnderImport.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/importFunctionWithAllUnderImport.importFunctionWithAllUnderImport.antlrtree.txt @@ -71,6 +71,4 @@ File: importFunctionWithAllUnderImport.importFunctionWithAllUnderImport.kt - 7bb RPAREN(")") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/importFunctionWithAllUnderImportAfterNamedImport.mainFile.antlrtree.txt b/grammar/testData/diagnostics/imports/importFunctionWithAllUnderImportAfterNamedImport.mainFile.antlrtree.txt index 6a2ba5cfc..af91e9523 100644 --- a/grammar/testData/diagnostics/imports/importFunctionWithAllUnderImportAfterNamedImport.mainFile.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/importFunctionWithAllUnderImportAfterNamedImport.mainFile.antlrtree.txt @@ -67,6 +67,4 @@ File: importFunctionWithAllUnderImportAfterNamedImport.mainFile.kt - d6aea1c08b9 NL("\n") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/kt13112.3.antlrtree.txt b/grammar/testData/diagnostics/imports/kt13112.3.antlrtree.txt index 2f3cf9365..b89cd9fde 100644 --- a/grammar/testData/diagnostics/imports/kt13112.3.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/kt13112.3.antlrtree.txt @@ -494,6 +494,4 @@ File: kt13112.3.kt - 6630d18e9205419f2d03cfa2fdfce598 simpleIdentifier Identifier("Int") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/propertyClassFileDependencyRecursion.propertyClassFileDependencyRecursion.antlrtree.txt b/grammar/testData/diagnostics/imports/propertyClassFileDependencyRecursion.propertyClassFileDependencyRecursion.antlrtree.txt index b6f18266e..08d6ba3b0 100644 --- a/grammar/testData/diagnostics/imports/propertyClassFileDependencyRecursion.propertyClassFileDependencyRecursion.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/propertyClassFileDependencyRecursion.propertyClassFileDependencyRecursion.antlrtree.txt @@ -66,6 +66,4 @@ File: propertyClassFileDependencyRecursion.propertyClassFileDependencyRecursion. Identifier("prop") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/imports/propertyClassFileDependencyRecursion.propertyClassFileDependencyRecursionOther.antlrtree.txt b/grammar/testData/diagnostics/imports/propertyClassFileDependencyRecursion.propertyClassFileDependencyRecursionOther.antlrtree.txt index bcb5759a7..1b8d7a2dc 100644 --- a/grammar/testData/diagnostics/imports/propertyClassFileDependencyRecursion.propertyClassFileDependencyRecursionOther.antlrtree.txt +++ b/grammar/testData/diagnostics/imports/propertyClassFileDependencyRecursion.propertyClassFileDependencyRecursionOther.antlrtree.txt @@ -56,6 +56,4 @@ File: propertyClassFileDependencyRecursion.propertyClassFileDependencyRecursionO literalConstant NullLiteral("null") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/NoSenselessComparisonForErrorType.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/NoSenselessComparisonForErrorType.antlrtree.txt index c664c001b..92551c2b6 100644 --- a/grammar/testData/diagnostics/incompleteCode/NoSenselessComparisonForErrorType.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/NoSenselessComparisonForErrorType.antlrtree.txt @@ -1,5 +1,4 @@ -File: NoSenselessComparisonForErrorType.kt - 812e5cffb3f13283f8db5b19e3620653 - NL("\n") +File: NoSenselessComparisonForErrorType.kt - 9bcccf4a8b8f0f95eda745ae7972d6bf packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/incompleteCode/SupertypeOfErrorType.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/SupertypeOfErrorType.antlrtree.txt index d5e2ccbc3..11ae2ca79 100644 --- a/grammar/testData/diagnostics/incompleteCode/SupertypeOfErrorType.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/SupertypeOfErrorType.antlrtree.txt @@ -1,4 +1,4 @@ -File: SupertypeOfErrorType.kt - 2423632fe13172f066c5806aa5412c25 +File: SupertypeOfErrorType.kt - 6b0cfd934158b10c37682f682498dfc1 NL("\n") packageHeader PACKAGE("package") @@ -546,5 +546,5 @@ File: SupertypeOfErrorType.kt - 2423632fe13172f066c5806aa5412c25 statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/checkNothingIsSubtype.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/checkNothingIsSubtype.antlrtree.txt index 6dad340ca..e5167e8bf 100644 --- a/grammar/testData/diagnostics/incompleteCode/checkNothingIsSubtype.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/checkNothingIsSubtype.antlrtree.txt @@ -1,5 +1,4 @@ -File: checkNothingIsSubtype.kt - 0afff34d592ab4a7f33ac52158e8c502 (WITH_ERRORS) - NL("\n") +File: checkNothingIsSubtype.kt - 4e15a717cab68e9718e3854488dea7df (WITH_ERRORS) NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/incompleteCode/controlStructuresErrors.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/controlStructuresErrors.antlrtree.txt index cc429cf91..d6b5a6808 100644 --- a/grammar/testData/diagnostics/incompleteCode/controlStructuresErrors.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/controlStructuresErrors.antlrtree.txt @@ -1,6 +1,4 @@ -File: controlStructuresErrors.kt - 5f190879fd66a1fad1734df0403491f6 - NL("\n") - NL("\n") +File: controlStructuresErrors.kt - 2bdcb488f67cdab5503d0daf6024a44d packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/arrayExpression.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/arrayExpression.antlrtree.txt index 7796e1591..6cda063d0 100644 --- a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/arrayExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/arrayExpression.antlrtree.txt @@ -1,5 +1,4 @@ -File: arrayExpression.kt - 2726f41f8a9ad03203742b30d845d1a9 (WITH_ERRORS) - NL("\n") +File: arrayExpression.kt - 78e2c75f0f211069504a47c014186417 (WITH_ERRORS) packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.antlrtree.txt index f75fb9d5c..6fed6c8d0 100644 --- a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.antlrtree.txt @@ -1,4 +1,4 @@ -File: checkBackingFieldException.kt - 88ea7b93111640e6509b909e398133c5 (WITH_ERRORS) +File: checkBackingFieldException.kt - 4a8c89056bcbc7c6e3cdc1c9a0e5c170 (WITH_ERRORS) NL("\n") packageHeader PACKAGE("package") @@ -81,6 +81,7 @@ File: checkBackingFieldException.kt - 88ea7b93111640e6509b909e398133c5 (WITH_ERR LCURL("{") semis NL("\n") + NL("\n") FieldIdentifier("$area") ASSIGNMENT("=") Identifier("size") @@ -201,5 +202,5 @@ File: checkBackingFieldException.kt - 88ea7b93111640e6509b909e398133c5 (WITH_ERR NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/declarationAfterDotSelectorExpected.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/declarationAfterDotSelectorExpected.antlrtree.txt index cf0b90fc0..d11c29fc6 100644 --- a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/declarationAfterDotSelectorExpected.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/declarationAfterDotSelectorExpected.antlrtree.txt @@ -1,4 +1,5 @@ -File: declarationAfterDotSelectorExpected.kt - 0f55f49c72f2f3b5125a5ac5a3c1522b (WITH_ERRORS) +File: declarationAfterDotSelectorExpected.kt - 63e0561f64c1227ece0f7f9f49db2489 (WITH_ERRORS) + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/funEquals.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/funEquals.antlrtree.txt index 658215f3f..582b8da8a 100644 --- a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/funEquals.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/funEquals.antlrtree.txt @@ -28,6 +28,4 @@ File: funEquals.kt - 2fb0f054844cd26c7989d17a1329e3d3 (WITH_ERRORS) multiplicativeExpression asExpression prefixUnaryExpression - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/funKeyword.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/funKeyword.antlrtree.txt index 55b149cff..6fdc7ffbc 100644 --- a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/funKeyword.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/funKeyword.antlrtree.txt @@ -7,6 +7,4 @@ File: funKeyword.kt - 1e1f94d6d0d185a1b422fffe573e745d (WITH_ERRORS) topLevelObject declaration FUN("fun") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteEnumReference.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteEnumReference.antlrtree.txt index e352e76a4..fbe0699b9 100644 --- a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteEnumReference.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteEnumReference.antlrtree.txt @@ -1,5 +1,4 @@ -File: incompleteEnumReference.kt - e904e58aec02d03e2724f7abb15b2b7f (WITH_ERRORS) - NL("\n") +File: incompleteEnumReference.kt - 50d01dc06f05098fcde81d6fe8c2c5b9 (WITH_ERRORS) packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteVal.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteVal.antlrtree.txt index 22e7496fe..df3c2b181 100644 --- a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteVal.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteVal.antlrtree.txt @@ -32,6 +32,4 @@ File: incompleteVal.kt - c289e77189a74a4320d4f5e12bc670ed (WITH_ERRORS) multiplicativeExpression asExpression prefixUnaryExpression - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteValWithAccessor.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteValWithAccessor.antlrtree.txt index 812d8f7ef..be21d261b 100644 --- a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteValWithAccessor.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteValWithAccessor.antlrtree.txt @@ -27,6 +27,4 @@ File: incompleteValWithAccessor.kt - 26f07274b334195301462a4db0c66c0e (WITH_ERRO LPAREN("(") RPAREN(")") ASSIGNMENT("=") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteWhen.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteWhen.antlrtree.txt index d9458e5dc..037074522 100644 --- a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteWhen.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/incompleteWhen.antlrtree.txt @@ -1,4 +1,5 @@ -File: incompleteWhen.kt - c93b3b4a0ea300aba331fec4a23bc427 (WITH_ERRORS) +File: incompleteWhen.kt - 36f984793bde9d5caf67e1c69b117e47 (WITH_ERRORS) + NL("\n") packageHeader importList topLevelObject @@ -29,4 +30,5 @@ File: incompleteWhen.kt - c93b3b4a0ea300aba331fec4a23bc427 (WITH_ERRORS) RPAREN(")") NL("\n") RCURL("}") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.antlrtree.txt index 43d1124aa..348b68cf3 100644 --- a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.antlrtree.txt @@ -1,5 +1,4 @@ -File: noTypeParamsInReturnType.kt - 2c283da712764abaa31424e9c564a19f (WITH_ERRORS) - NL("\n") +File: noTypeParamsInReturnType.kt - e95240e0dbc6ac5b64e75f9eaf1a1776 (WITH_ERRORS) packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/typeReferenceError.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/typeReferenceError.antlrtree.txt index 4737f9243..4a79a7f6f 100644 --- a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/typeReferenceError.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/typeReferenceError.antlrtree.txt @@ -34,6 +34,4 @@ File: typeReferenceError.kt - cf39bdf8d39d6732fe48fc4a94ce4513 (WITH_ERRORS) Identifier("main") LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/valWithNoNameInBlock.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/valWithNoNameInBlock.antlrtree.txt index 79e387fd1..c64512caa 100644 --- a/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/valWithNoNameInBlock.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/diagnosticWithSyntaxError/valWithNoNameInBlock.antlrtree.txt @@ -1,4 +1,5 @@ -File: valWithNoNameInBlock.kt - 03df9d9241a91c7ce8aa26f4a81331c4 (WITH_ERRORS) +File: valWithNoNameInBlock.kt - b772ea79a95d74b82c3672d52843729e (WITH_ERRORS) + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/incompleteCode/illegalSelectorCallableReference.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/illegalSelectorCallableReference.antlrtree.txt index 8d52dbf6e..850fcd27c 100644 --- a/grammar/testData/diagnostics/incompleteCode/illegalSelectorCallableReference.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/illegalSelectorCallableReference.antlrtree.txt @@ -73,6 +73,4 @@ File: illegalSelectorCallableReference.kt - 91dfee92be6de942ed9218dcd8424abe (WI RCURL("}") NL("\n") simpleIdentifier - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/inExpr.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/inExpr.antlrtree.txt index d16f09a05..bf95eb5c6 100644 --- a/grammar/testData/diagnostics/incompleteCode/inExpr.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/inExpr.antlrtree.txt @@ -1,4 +1,4 @@ -File: inExpr.kt - 9212444fdf16355a0933efc47765bf07 (WITH_ERRORS) +File: inExpr.kt - f445042abe04f9ebae09a119e7941f65 (WITH_ERRORS) packageHeader PACKAGE("package") identifier @@ -39,4 +39,5 @@ File: inExpr.kt - 9212444fdf16355a0933efc47765bf07 (WITH_ERRORS) RCURL("}") NL("\n") RCURL("}") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/incompleteAssignment.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/incompleteAssignment.antlrtree.txt index 5d9e031df..3dee6f7c8 100644 --- a/grammar/testData/diagnostics/incompleteCode/incompleteAssignment.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/incompleteAssignment.antlrtree.txt @@ -1,4 +1,6 @@ -File: incompleteAssignment.kt - cd1f67c51cfca2749e19ec0e53da3457 (WITH_ERRORS) +File: incompleteAssignment.kt - be64b3aa7e85b04b8ad4124df9c1bc26 (WITH_ERRORS) + NL("\n") + NL("\n") packageHeader PACKAGE("package") identifier @@ -1154,6 +1156,4 @@ File: incompleteAssignment.kt - cd1f67c51cfca2749e19ec0e53da3457 (WITH_ERRORS) semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/incompleteEquals.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/incompleteEquals.antlrtree.txt index 3c7520b02..bcb505be7 100644 --- a/grammar/testData/diagnostics/incompleteCode/incompleteEquals.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/incompleteEquals.antlrtree.txt @@ -61,6 +61,4 @@ File: incompleteEquals.kt - 128457813e0820d4033dc31d0ee6fdbf (WITH_ERRORS) multiplicativeExpression asExpression prefixUnaryExpression - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/incompleteTryCatchBlock.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/incompleteTryCatchBlock.antlrtree.txt index c3fc5fefd..a1f48c576 100644 --- a/grammar/testData/diagnostics/incompleteCode/incompleteTryCatchBlock.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/incompleteTryCatchBlock.antlrtree.txt @@ -1,4 +1,5 @@ -File: incompleteTryCatchBlock.kt - 8c97dbc395bba066e54ad6060f47cff2 (WITH_ERRORS) +File: incompleteTryCatchBlock.kt - 1c144193d8ec07cc1f13622ac1e9789b (WITH_ERRORS) + NL("\n") packageHeader importList topLevelObject @@ -66,4 +67,5 @@ File: incompleteTryCatchBlock.kt - 8c97dbc395bba066e54ad6060f47cff2 (WITH_ERRORS RCURL("}") NL("\n") RCURL("}") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/kt1955.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/kt1955.antlrtree.txt index 1a08cd52b..f7982a3e6 100644 --- a/grammar/testData/diagnostics/incompleteCode/kt1955.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/kt1955.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt1955.kt - c0418cfeb2a359211c0f0fada76b4eaf (WITH_ERRORS) +File: kt1955.kt - eb9bfb2af3161bec5185e44144e55165 (WITH_ERRORS) + NL("\n") NL("\n") NL("\n") packageHeader @@ -48,8 +49,4 @@ File: kt1955.kt - c0418cfeb2a359211c0f0fada76b4eaf (WITH_ERRORS) literalConstant IntegerLiteral("1") NL("\n") - NL("\n") - NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/kt4866UnresolvedArrayAccess.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/kt4866UnresolvedArrayAccess.antlrtree.txt index 99c7e6cbd..6e83f5d86 100644 --- a/grammar/testData/diagnostics/incompleteCode/kt4866UnresolvedArrayAccess.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/kt4866UnresolvedArrayAccess.antlrtree.txt @@ -103,6 +103,4 @@ File: kt4866UnresolvedArrayAccess.kt - 5524e34d6339aad84c44fe44525d0d5d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/plusOnTheRight.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/plusOnTheRight.antlrtree.txt index 0035b43b7..47c89934d 100644 --- a/grammar/testData/diagnostics/incompleteCode/plusOnTheRight.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/plusOnTheRight.antlrtree.txt @@ -1,5 +1,4 @@ -File: plusOnTheRight.kt - bc639de92669511f69ce5f69ebf02e84 (WITH_ERRORS) - NL("\n") +File: plusOnTheRight.kt - e5bc69dd9488a530510e8f659ed612dd (WITH_ERRORS) NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/incompleteCode/typeParameterOnLhsOfDot.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/typeParameterOnLhsOfDot.antlrtree.txt index dcaeac8cf..36a85ca67 100644 --- a/grammar/testData/diagnostics/incompleteCode/typeParameterOnLhsOfDot.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/typeParameterOnLhsOfDot.antlrtree.txt @@ -96,6 +96,4 @@ File: typeParameterOnLhsOfDot.kt - 3ddda9d145b81a2764c888164236c623 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/unresolvedArguments.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/unresolvedArguments.antlrtree.txt index beab3a72c..0ae11e653 100644 --- a/grammar/testData/diagnostics/incompleteCode/unresolvedArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/unresolvedArguments.antlrtree.txt @@ -1,5 +1,4 @@ -File: unresolvedArguments.kt - 3943b8ed49b40cb95a39f67e207fac91 - NL("\n") +File: unresolvedArguments.kt - a17b3c98a834053bbd4bbcb589b58107 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/incompleteCode/unresolvedOperation.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/unresolvedOperation.antlrtree.txt index 48e06ccbb..c6c83dd64 100644 --- a/grammar/testData/diagnostics/incompleteCode/unresolvedOperation.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/unresolvedOperation.antlrtree.txt @@ -82,6 +82,4 @@ File: unresolvedOperation.kt - 1a55726d9393a8c40e124c8db25b9ed6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/unresolvedTypeWithTypeArguments.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/unresolvedTypeWithTypeArguments.antlrtree.txt new file mode 100644 index 000000000..aff50c130 --- /dev/null +++ b/grammar/testData/diagnostics/incompleteCode/unresolvedTypeWithTypeArguments.antlrtree.txt @@ -0,0 +1,154 @@ +File: unresolvedTypeWithTypeArguments.kt - fb37d65a567e7ea4866fb092bbea275d + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("MyClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("P1") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P1") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unknown") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("callTryConvertConstant") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/incompleteCode/variableDeclarationInSelector.antlrtree.txt b/grammar/testData/diagnostics/incompleteCode/variableDeclarationInSelector.antlrtree.txt index 7f292150b..98c6d8abd 100644 --- a/grammar/testData/diagnostics/incompleteCode/variableDeclarationInSelector.antlrtree.txt +++ b/grammar/testData/diagnostics/incompleteCode/variableDeclarationInSelector.antlrtree.txt @@ -1,4 +1,5 @@ -File: variableDeclarationInSelector.kt - e5faeea17bd22166c78bdcf0d37f518f (WITH_ERRORS) +File: variableDeclarationInSelector.kt - ed4a61e2c4ca7c8dc6170cf1e36a4b05 (WITH_ERRORS) + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/NoInferenceFromDeclaredBounds.antlrtree.txt b/grammar/testData/diagnostics/inference/NoInferenceFromDeclaredBounds.antlrtree.txt index c15725404..18f5953bc 100644 --- a/grammar/testData/diagnostics/inference/NoInferenceFromDeclaredBounds.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/NoInferenceFromDeclaredBounds.antlrtree.txt @@ -1,4 +1,4 @@ -File: NoInferenceFromDeclaredBounds.kt - a639a1c85aa5fd792c89271e2104dbeb +File: NoInferenceFromDeclaredBounds.kt - f0a2fffd81498012d4229721d64bdf7a NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/annotatedUnderscoredTypeArgument.antlrtree.txt b/grammar/testData/diagnostics/inference/annotatedUnderscoredTypeArgument.antlrtree.txt new file mode 100644 index 000000000..a4a3a34b4 --- /dev/null +++ b/grammar/testData/diagnostics/inference/annotatedUnderscoredTypeArgument.antlrtree.txt @@ -0,0 +1,1297 @@ +File: annotatedUnderscoredTypeArgument.kt - 789beb79893648c69915f735495453ac + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Anno") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Anno2") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Repeatable") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Anno3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + multiAnnotation + AT_NO_WS("@") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno2") + RSQUARE("]") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + typeProjectionModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno2") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + RSQUARE("]") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Anno3") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + multiAnnotation + AT_PRE_WS(" @") + LSQUARE("[") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Anno3") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RSQUARE("]") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + COMMA(",") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z31") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Anno3") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z33") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Anno3") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + type + parenthesizedType + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RPAREN(")") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z35") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + type + parenthesizedType + LPAREN("(") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Anno3") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + parenthesizedType + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RPAREN(")") + RPAREN(")") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + NL("\n") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/changingResolveIfDontUseBuilderInference.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/changingResolveIfDontUseBuilderInference.antlrtree.txt new file mode 100644 index 000000000..9a9f08c61 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/changingResolveIfDontUseBuilderInference.antlrtree.txt @@ -0,0 +1,920 @@ +File: changingResolveIfDontUseBuilderInference.kt - 010f6058dccbf16e145afa9eb236ddf4 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("experimental") + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + semi + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("buildMap") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builderAction") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Map") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mapOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mutableMapOf") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("swap") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + simpleIdentifier + Identifier("build7") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builderAction") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mutableMapOf") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalStdlibApi") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Map") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildMap") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("put") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("swap") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build7") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("run") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/constraints/violating.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/constraints/violating.antlrtree.txt new file mode 100644 index 000000000..ba4fb6df7 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/constraints/violating.antlrtree.txt @@ -0,0 +1,778 @@ +File: violating.kt - 3a38f34181229d2aa09c51a097ce5659 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ExperimentalStdlibApi") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@buildList") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("3") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@buildList") + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@buildList") + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("StringBuilder") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/equalityChecksOnIntegerTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/equalityChecksOnIntegerTypes.antlrtree.txt new file mode 100644 index 000000000..618a62660 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/equalityChecksOnIntegerTypes.antlrtree.txt @@ -0,0 +1,493 @@ +File: equalityChecksOnIntegerTypes.kt - f47df23db2793e079cb5d62ed5f664fc + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("sequence") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("1L") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("1L") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("1L") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("1L") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("yield") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/equalityChecksOnIntegerTypesProgressive.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/equalityChecksOnIntegerTypesProgressive.antlrtree.txt new file mode 100644 index 000000000..9542a8cba --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/equalityChecksOnIntegerTypesProgressive.antlrtree.txt @@ -0,0 +1,493 @@ +File: equalityChecksOnIntegerTypesProgressive.kt - c4b6086cf50b49cb7375a837a084d4c9 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("sequence") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("1L") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("1L") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("1L") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("1L") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("yield") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt47744.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt47744.antlrtree.txt new file mode 100644 index 000000000..c5d1feed8 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt47744.antlrtree.txt @@ -0,0 +1,770 @@ +File: kt47744.kt - f30cf9079898d8b25f0b4f6407afad40 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("experimental") + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + semi + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("flow") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Flow") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("produce") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SendChannel") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("SendChannel") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("E") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("onSend") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SelectClause2") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SendChannel") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RANGLE(">") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("SelectClause2") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("P") + COMMA(",") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("Q") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Flow") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("FlowCollector") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("SelectBuilder") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("R") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("P") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("Q") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SelectClause2") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Q") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + PARAM("param") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Q") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + CROSSINLINE("crossinline") + parameter + simpleIdentifier + Identifier("builder") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SelectBuilder") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("produce") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("onSend") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt47986Default.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt47986Default.antlrtree.txt new file mode 100644 index 000000000..1f9094167 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt47986Default.antlrtree.txt @@ -0,0 +1,262 @@ +File: kt47986Default.kt - c77c1700350a0eeab14b384283ee6f1e + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("buildFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builderAction") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildFoo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt47986Disabled.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt47986Disabled.antlrtree.txt new file mode 100644 index 000000000..141d26195 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt47986Disabled.antlrtree.txt @@ -0,0 +1,263 @@ +File: kt47986Disabled.kt - 1634f1dd80fe867fe2921bc76d5d2630 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("buildFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builderAction") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildFoo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt47986Enabled.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt47986Enabled.antlrtree.txt new file mode 100644 index 000000000..8305419cd --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt47986Enabled.antlrtree.txt @@ -0,0 +1,263 @@ +File: kt47986Enabled.kt - 69d472613b6e7b6b3a62feecb96d066c + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("buildFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builderAction") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildFoo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt47986_2.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt47986_2.antlrtree.txt new file mode 100644 index 000000000..0302c03b3 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt47986_2.antlrtree.txt @@ -0,0 +1,306 @@ +File: kt47986_2.kt - e1dc1cc63d6970c79ee17c8aeea0aee4 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("buildFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builderAction") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("L") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildFoo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + RPAREN(")") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt47986_3.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt47986_3.antlrtree.txt new file mode 100644 index 000000000..e1f3e7514 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt47986_3.antlrtree.txt @@ -0,0 +1,273 @@ +File: kt47986_3.kt - 49e02a2648c16ec62abd48b0a1f8b037 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("buildFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builderAction") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("N") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("N") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildFoo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt47986_4.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt47986_4.antlrtree.txt new file mode 100644 index 000000000..a56ef4638 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt47986_4.antlrtree.txt @@ -0,0 +1,315 @@ +File: kt47986_4.kt - f33608665baa8921833c8cdda9c3c6e0 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("buildFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builderAction") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("N") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("N") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildFoo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt49285.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt49285.antlrtree.txt new file mode 100644 index 000000000..143f8465e --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt49285.antlrtree.txt @@ -0,0 +1,586 @@ +File: kt49285.kt - ee8988d1da9b3cf7cdc7edd125fbbda5 + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("experimental") + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("add") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K1") + RANGLE(">") + simpleIdentifier + Identifier("myBuilder1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builder") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K1") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K1") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K1") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K1") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("apply") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("builder") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K2") + RANGLE(">") + simpleIdentifier + Identifier("myBuilder2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builder") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K2") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K2") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K2") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("apply") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("builder") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("result1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myBuilder1") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myBuilder2") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt49828.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt49828.antlrtree.txt new file mode 100644 index 000000000..f6c73c7f8 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt49828.antlrtree.txt @@ -0,0 +1,6614 @@ +File: kt49828.kt - 3ad6764aa93cc541413ed2ac59e5556e + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JvmName") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("foo1") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JvmName") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("foo21") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JvmName") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("bar1") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo0") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo0") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo00") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo00") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo000") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo000") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo0000") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo0000") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo0001") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo0001") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo0002") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo0002") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + simpleIdentifier + Identifier("foo0003") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("foo0003") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JvmName") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("foo111") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("foo11") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableSet") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableMap") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("MutableEntry") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JvmName") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("foo112") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("foo11") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableSet") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableMap") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("MutableEntry") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo11") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableSet") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableMap") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("MutableEntry") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("secondParameter") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("secondParameter") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("secondParameter") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("secondParameter") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("secondParameter") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("secondParameter") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list71") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + annotatedLambda + label + simpleIdentifier + Identifier("l1") + AT_POST_WS("@ ") + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list711") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list8") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list9") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list91") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo0") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0f") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo0") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0f") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo00") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0f") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list13") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo000") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0f") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list14") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo0000") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0f") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list17") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + label + simpleIdentifier + Identifier("l1") + AT_POST_WS("@ ") + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo0003") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0f") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("l1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list18") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo0003") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0f") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("map1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildMap") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("put") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo11") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("entries") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list15") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo0001") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0f") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list16") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo0002") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("0f") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("add") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("put") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableSet") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableMap") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("MutableEntry") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("entries") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableSet") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableMap") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("MutableEntry") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("L") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("twoBuilderLambdas") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("block2") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo2") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("twoBuilderLambdas") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("put") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo11") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("entries") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt49829.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt49829.antlrtree.txt new file mode 100644 index 000000000..ea69ae58b --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt49829.antlrtree.txt @@ -0,0 +1,262 @@ +File: kt49829.kt - c15aef9f77b024a878807fcf4b85c039 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("list") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("one") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("two") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("secondParameter") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("secondParameter") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt50498.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt50498.antlrtree.txt new file mode 100644 index 000000000..a7a32b05c --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt50498.antlrtree.txt @@ -0,0 +1,213 @@ +File: kt50498.kt - ae9ef357f2dd72df4a3c21dd7bb2dce6 + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("body") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + ARROW("->") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt50989.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt50989.antlrtree.txt new file mode 100644 index 000000000..49f4e7d0a --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt50989.antlrtree.txt @@ -0,0 +1,119 @@ +File: kt50989.kt - 0b2acc7cfae7c5388a97d3b40fe01850 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildList") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt51148.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt51148.antlrtree.txt new file mode 100644 index 000000000..af27633a3 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt51148.antlrtree.txt @@ -0,0 +1,273 @@ +File: kt51148.kt - 7a0d44ada7b3a2292e2df77a018ed247 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("someFunction") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeEnum") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("SomeInterface") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + NL("\n") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum") + enumClassBody + LCURL("{") + NL("\n") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("B") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("C") + NL("\n") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("someFunction") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Enum") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/kt51464.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/kt51464.antlrtree.txt new file mode 100644 index 000000000..9fae49de3 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/kt51464.antlrtree.txt @@ -0,0 +1,398 @@ +File: kt51464.kt - 944c84eced945971916f93d07ebec4e1 + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("flowOf") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("FlowCollector") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Flow") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("transform") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("transform") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("doEmit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("collector") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flowOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("transform") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("doEmit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/labaledCall.main.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/labaledCall.main.antlrtree.txt new file mode 100644 index 000000000..3635c6aee --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/labaledCall.main.antlrtree.txt @@ -0,0 +1,346 @@ +File: labaledCall.main.kt - 198eb2bc4f583bc112bcb6a47b2782d1 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("experimental") + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + semi + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("build") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("TestInterface") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("emit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("r") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + label + simpleIdentifier + Identifier("myLabel") + AT_POST_WS("@ ") + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS_AT("this@myLabel") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/simpleLambdaInCallWithAnotherLambdaWithBuilderInference.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/simpleLambdaInCallWithAnotherLambdaWithBuilderInference.antlrtree.txt index 78255741f..7b5a2584b 100644 --- a/grammar/testData/diagnostics/inference/builderInference/simpleLambdaInCallWithAnotherLambdaWithBuilderInference.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/builderInference/simpleLambdaInCallWithAnotherLambdaWithBuilderInference.antlrtree.txt @@ -1,4 +1,5 @@ -File: simpleLambdaInCallWithAnotherLambdaWithBuilderInference.kt - f170ee211418b0f263e6711a045ca1cb +File: simpleLambdaInCallWithAnotherLambdaWithBuilderInference.kt - 1455a3dbd9b14a84cb3f9258d2839a92 + NL("\n") NL("\n") NL("\n") NL("\n") @@ -29,7 +30,7 @@ File: simpleLambdaInCallWithAnotherLambdaWithBuilderInference.kt - f170ee211418b userType simpleUserType simpleIdentifier - Identifier("UseExperimental") + Identifier("OptIn") valueArguments LPAREN("(") valueArgument @@ -89,15 +90,6 @@ File: simpleLambdaInCallWithAnotherLambdaWithBuilderInference.kt - f170ee211418b Identifier("Unit") COMMA(",") functionValueParameter - parameterModifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("BuilderInference") parameter simpleIdentifier Identifier("block") diff --git a/grammar/testData/diagnostics/inference/builderInference/skipedUnresolvedInBuilderInferenceWithStubReceiverType.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/skipedUnresolvedInBuilderInferenceWithStubReceiverType.antlrtree.txt index 9aa9f1ad9..f2c311e55 100644 --- a/grammar/testData/diagnostics/inference/builderInference/skipedUnresolvedInBuilderInferenceWithStubReceiverType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/builderInference/skipedUnresolvedInBuilderInferenceWithStubReceiverType.antlrtree.txt @@ -1,4 +1,5 @@ -File: skipedUnresolvedInBuilderInferenceWithStubReceiverType.kt - 4826fdc821d71039962fb33c855bc67b +File: skipedUnresolvedInBuilderInferenceWithStubReceiverType.kt - d4dc1f49770788347c1224c65a54b7b1 + NL("\n") NL("\n") NL("\n") NL("\n") @@ -83,15 +84,6 @@ File: skipedUnresolvedInBuilderInferenceWithStubReceiverType.kt - 4826fdc821d710 Identifier("T") COMMA(",") functionValueParameter - parameterModifiers - annotation - singleAnnotation - AT_PRE_WS(" @") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("BuilderInference") parameter simpleIdentifier Identifier("builder") diff --git a/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferences.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferences.antlrtree.txt index 548f5a2b9..1532a4163 100644 --- a/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferences.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferences.antlrtree.txt @@ -1,4 +1,4 @@ -File: specialCallsWithCallableReferences.kt - 7dae88787288e7a665b6fa4f5db0b578 +File: specialCallsWithCallableReferences.kt - 75524c18aa7eeb90aecc32de24fd5c7c NL("\n") NL("\n") NL("\n") @@ -706,15 +706,6 @@ File: specialCallsWithCallableReferences.kt - 7dae88787288e7a665b6fa4f5db0b578 functionValueParameters LPAREN("(") functionValueParameter - parameterModifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("BuilderInference") parameter simpleIdentifier Identifier("block") @@ -752,6 +743,23 @@ File: specialCallsWithCallableReferences.kt - 7dae88787288e7a665b6fa4f5db0b578 simpleIdentifier Identifier("Unit") RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + RANGLE(">") functionBody ASSIGNMENT("=") expression diff --git a/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesDontCareTypeInBlockExression.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesDontCareTypeInBlockExression.antlrtree.txt index 27e16aed1..33c1a1040 100644 --- a/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesDontCareTypeInBlockExression.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesDontCareTypeInBlockExression.antlrtree.txt @@ -1,4 +1,4 @@ -File: specialCallsWithCallableReferencesDontCareTypeInBlockExression.kt - f3e20b50bc15fc532f868f60e221ed8c +File: specialCallsWithCallableReferencesDontCareTypeInBlockExression.kt - f69de3611e8f70d034a9e043defc554f NL("\n") NL("\n") NL("\n") @@ -706,15 +706,6 @@ File: specialCallsWithCallableReferencesDontCareTypeInBlockExression.kt - f3e20b functionValueParameters LPAREN("(") functionValueParameter - parameterModifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("BuilderInference") parameter simpleIdentifier Identifier("block") diff --git a/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesDontRewriteAtSlice.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesDontRewriteAtSlice.antlrtree.txt index 6965feef4..613565926 100644 --- a/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesDontRewriteAtSlice.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesDontRewriteAtSlice.antlrtree.txt @@ -1,4 +1,4 @@ -File: specialCallsWithCallableReferencesDontRewriteAtSlice.kt - df9f891762109c550d54d3f4e5a721c5 +File: specialCallsWithCallableReferencesDontRewriteAtSlice.kt - 6f8b59d75750afb0ba76379b17a76568 NL("\n") NL("\n") NL("\n") @@ -706,15 +706,6 @@ File: specialCallsWithCallableReferencesDontRewriteAtSlice.kt - df9f891762109c55 functionValueParameters LPAREN("(") functionValueParameter - parameterModifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("BuilderInference") parameter simpleIdentifier Identifier("block") diff --git a/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesErrorType.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesErrorType.antlrtree.txt index 0ecf38319..04c1f38b8 100644 --- a/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesErrorType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesErrorType.antlrtree.txt @@ -1,4 +1,4 @@ -File: specialCallsWithCallableReferencesErrorType.kt - ae744e2ecd22ed7a827935cb555e0e70 +File: specialCallsWithCallableReferencesErrorType.kt - bcf9f86600f59bf5ab93dde85b7cec46 NL("\n") NL("\n") NL("\n") @@ -706,15 +706,6 @@ File: specialCallsWithCallableReferencesErrorType.kt - ae744e2ecd22ed7a827935cb5 functionValueParameters LPAREN("(") functionValueParameter - parameterModifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("BuilderInference") parameter simpleIdentifier Identifier("block") diff --git a/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesErrorTypeUnrestricted.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesErrorTypeUnrestricted.antlrtree.txt new file mode 100644 index 000000000..4dcb5f255 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesErrorTypeUnrestricted.antlrtree.txt @@ -0,0 +1,1840 @@ +File: specialCallsWithCallableReferencesErrorTypeUnrestricted.kt - 5e5694442a84aabc0e2a62aee71ce972 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("experimental") + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + DOT(".") + simpleIdentifier + Identifier("bar3") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + DOT(".") + simpleIdentifier + Identifier("foo3") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("foo4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("bar5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("foo5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo6") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo7") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo7") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo7") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("FlowCollector") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("L") + RANGLE(">") + simpleIdentifier + Identifier("flow") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Flow") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("block") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Flow") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("R") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + simpleIdentifier + Identifier("block") + COLON(":") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll7") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll71") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar2") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll72") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar3") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll73") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar4") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll74") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar5") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll75") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll76") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo7") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesNonStrictOnlyInputTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesNonStrictOnlyInputTypes.antlrtree.txt index 7f3fd5401..fb4d92b4c 100644 --- a/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesNonStrictOnlyInputTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesNonStrictOnlyInputTypes.antlrtree.txt @@ -1,4 +1,4 @@ -File: specialCallsWithCallableReferencesNonStrictOnlyInputTypes.kt - 81bbfdf4d341f69bf01c1e55a957a6be +File: specialCallsWithCallableReferencesNonStrictOnlyInputTypes.kt - 94c3091fc6f2b6fd081b398036a7ae85 NL("\n") NL("\n") NL("\n") @@ -232,15 +232,6 @@ File: specialCallsWithCallableReferencesNonStrictOnlyInputTypes.kt - 81bbfdf4d34 functionValueParameters LPAREN("(") functionValueParameter - parameterModifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("BuilderInference") parameter simpleIdentifier Identifier("block") diff --git a/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesUnrestricted.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesUnrestricted.antlrtree.txt new file mode 100644 index 000000000..66e46e92f --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/specialCallsWithCallableReferencesUnrestricted.antlrtree.txt @@ -0,0 +1,13838 @@ +File: specialCallsWithCallableReferencesUnrestricted.kt - 6e9f0f34bec18b5419ee00f0fe727b36 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("experimental") + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + DOT(".") + simpleIdentifier + Identifier("bar3") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + DOT(".") + simpleIdentifier + Identifier("foo3") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("foo4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + NL("\n") + setter + SET("set") + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + VALUE("value") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("bar5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("foo5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo6") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo7") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo7") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo7") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("FlowCollector") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("L") + RANGLE(">") + simpleIdentifier + Identifier("flow") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Flow") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("block") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Flow") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("R") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + simpleIdentifier + Identifier("block") + COLON(":") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FlowCollector") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll0") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll01") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo2") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll02") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar3") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo3") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll03") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar4") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo4") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll04") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar5") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo5") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll05") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll06") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo7") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo7") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar2") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo2") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll11") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar2") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo2") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll12") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar3") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo3") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll13") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar2") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo3") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll14") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar4") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo4") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll15") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar5") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo5") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll16") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll17") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo7") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo7") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll21") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar2") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo2") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll22") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar3") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo3") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll23") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar4") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo4") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll24") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar5") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo5") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll25") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll26") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo7") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo7") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo7") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll31") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar2") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo2") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll32") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar3") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo3") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll33") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar4") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo4") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll34") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar5") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo5") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll35") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll36") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + LCURL("{") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo7") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo7") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll4") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll41") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar2") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo2") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll42") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar3") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo3") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll43") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar4") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo4") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll44") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar5") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo5") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll45") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll46") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo7") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo7") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll5") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll51") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar2") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo2") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo2") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll52") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar3") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo3") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo3") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll53") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar4") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo4") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo4") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll54") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar5") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo5") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo5") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll55") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll56") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo7") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo7") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo7") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll6") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll61") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar2") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll62") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar3") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll63") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar4") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll64") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar5") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll65") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll66") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo7") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll7") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll71") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar2") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll72") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar3") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll73") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar4") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll74") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar5") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll75") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll76") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo7") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll8") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("setOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll81") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar2") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("setOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo2") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll82") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar3") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("setOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo3") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll83") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar4") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("setOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo4") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll84") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar5") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("setOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo5") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll85") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("setOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo6") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll86") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo7") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("setOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo7") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll87") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo7") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("setOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo7") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll88") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Flow") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flow") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo7") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("setOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("Foo7") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/specialCallsWithLambdas.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/specialCallsWithLambdas.antlrtree.txt index dc2c7fa29..b8140b010 100644 --- a/grammar/testData/diagnostics/inference/builderInference/specialCallsWithLambdas.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/builderInference/specialCallsWithLambdas.antlrtree.txt @@ -1,4 +1,4 @@ -File: specialCallsWithLambdas.kt - 28ce75d64754ec0e81702b9100de270e +File: specialCallsWithLambdas.kt - 35a24a0f2d7420354cd8494e7da24ad5 NL("\n") NL("\n") NL("\n") @@ -57,15 +57,6 @@ File: specialCallsWithLambdas.kt - 28ce75d64754ec0e81702b9100de270e functionValueParameters LPAREN("(") functionValueParameter - parameterModifiers - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("BuilderInference") parameter simpleIdentifier Identifier("block") diff --git a/grammar/testData/diagnostics/inference/builderInference/stubTypes/capturedTypes.main.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/stubTypes/capturedTypes.main.antlrtree.txt new file mode 100644 index 000000000..7421f59df --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/stubTypes/capturedTypes.main.antlrtree.txt @@ -0,0 +1,1099 @@ +File: capturedTypes.main.kt - 13d6e41ac2026f18044ac9db7bb214cb + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("experimental") + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + semi + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("build") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("build2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("TestInterface") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("emit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("r") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getInv") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getOut") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getIn") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("captureOut") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("captureIn") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("capture") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("captureOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("captureIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("capture") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("capture") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/stubTypes/commonSuperType.main.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/stubTypes/commonSuperType.main.antlrtree.txt new file mode 100644 index 000000000..b00cd890d --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/stubTypes/commonSuperType.main.antlrtree.txt @@ -0,0 +1,2442 @@ +File: commonSuperType.main.kt - 5831c376570e3f76d11dbddd4da1e8fe + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("experimental") + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + semi + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("build") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("build2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("TestInterface") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("emit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("r") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getInv") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("U") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build2") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/stubTypes/commonSuperTypeContravariant.main.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/stubTypes/commonSuperTypeContravariant.main.antlrtree.txt new file mode 100644 index 000000000..2be98c2c8 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/stubTypes/commonSuperTypeContravariant.main.antlrtree.txt @@ -0,0 +1,4957 @@ +File: commonSuperTypeContravariant.main.kt - 40b39a12bc6865e0917ff2bf82a407d8 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("experimental") + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + semi + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R1") + RANGLE(">") + simpleIdentifier + Identifier("build") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R2") + RANGLE(">") + simpleIdentifier + Identifier("build2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R2") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R2") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("In") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("TestInterface") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("emit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("r") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getIn") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("U") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("select1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("select2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_NO_WS("?") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("select3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_NO_WS("?") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("select4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build2") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/stubTypes/commonSuperTypeCovariant.main.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/stubTypes/commonSuperTypeCovariant.main.antlrtree.txt new file mode 100644 index 000000000..cbb0267ac --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/stubTypes/commonSuperTypeCovariant.main.antlrtree.txt @@ -0,0 +1,4790 @@ +File: commonSuperTypeCovariant.main.kt - 1ac851be45c445a462e01564f09e5ff7 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("experimental") + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + semi + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R1") + RANGLE(">") + simpleIdentifier + Identifier("build") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R2") + RANGLE(">") + simpleIdentifier + Identifier("build2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R2") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R2") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("TestInterface") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("emit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("r") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getOut") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("U") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("select1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("select2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_NO_WS("?") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("select3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_NO_WS("?") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("select4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build2") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/stubTypes/commonSuperTypeInvariant.main.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/stubTypes/commonSuperTypeInvariant.main.antlrtree.txt new file mode 100644 index 000000000..ab0bfa206 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/stubTypes/commonSuperTypeInvariant.main.antlrtree.txt @@ -0,0 +1,5192 @@ +File: commonSuperTypeInvariant.main.kt - 3f2d4d6845888cc9db82ffc7d66f96b1 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("experimental") + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + semi + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R1") + RANGLE(">") + simpleIdentifier + Identifier("build") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R2") + RANGLE(">") + simpleIdentifier + Identifier("build2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R2") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R2") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("TestInterface") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("emit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("r") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getInv") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("U") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("select1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("select2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_NO_WS("?") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("select3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_NO_WS("?") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("select4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build2") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build2") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/stubTypes/commonSuperTypeNullable.main.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/stubTypes/commonSuperTypeNullable.main.antlrtree.txt new file mode 100644 index 000000000..d9939323f --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/stubTypes/commonSuperTypeNullable.main.antlrtree.txt @@ -0,0 +1,4319 @@ +File: commonSuperTypeNullable.main.kt - 71eed57ded19488db0195b32e534e1f8 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("experimental") + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + semi + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("build") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("build2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("TestInterface") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("emit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("r") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getInv") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("U") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build2") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build2") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/stubTypes/intersect.main.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/stubTypes/intersect.main.antlrtree.txt new file mode 100644 index 000000000..004d62f89 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/stubTypes/intersect.main.antlrtree.txt @@ -0,0 +1,1600 @@ +File: intersect.main.kt - 48f8ebfed946345275a9175a2e81838d + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("experimental") + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + semi + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R1") + RANGLE(">") + simpleIdentifier + Identifier("build") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R2") + RANGLE(">") + simpleIdentifier + Identifier("build2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R2") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R2") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("In") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("TestInterface") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("emit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("r") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getIn") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("U") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("intersect") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intersect") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intersect") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intersect") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intersect") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build2") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intersect") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intersect") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intersect") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intersect") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + label + simpleIdentifier + Identifier("this") + AT_NO_WS("@") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/stubTypes/memberScope.main.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/stubTypes/memberScope.main.antlrtree.txt new file mode 100644 index 000000000..9d8f338c3 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/stubTypes/memberScope.main.antlrtree.txt @@ -0,0 +1,9423 @@ +File: memberScope.main.kt - 76d61b92565cf2a3879d6ba66a90764e + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("experimental") + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("TestInterface") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("emit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("r") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R1") + RANGLE(">") + simpleIdentifier + Identifier("build") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + DOT(".") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret401") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret402") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret403") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret404") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret405") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret406") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret407") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret408") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret41") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret501") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret502") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret503") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret504") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret505") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret506") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret507") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret508") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret51") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/stubTypes/nullability.main.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/stubTypes/nullability.main.antlrtree.txt new file mode 100644 index 000000000..9a342d5d2 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/stubTypes/nullability.main.antlrtree.txt @@ -0,0 +1,1914 @@ +File: nullability.main.kt - 23bf7c65a7237d41397afbb5b3fd8166 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("experimental") + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("TestInterface") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("emit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("r") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R1") + RANGLE(">") + simpleIdentifier + Identifier("build") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + simpleIdentifier + Identifier("build2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R2") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + simpleIdentifier + Identifier("build3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R2") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R2") + RANGLE(">") + simpleIdentifier + Identifier("build4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R1") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build2") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build3") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/stubTypes/renderingStubTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/stubTypes/renderingStubTypes.antlrtree.txt new file mode 100644 index 000000000..18688fb90 --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/stubTypes/renderingStubTypes.antlrtree.txt @@ -0,0 +1,472 @@ +File: renderingStubTypes.kt - ecfb41609d541f307b302a0aa9ef757e + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("experimental") + DOT(".") + simpleIdentifier + Identifier("ExperimentalTypeInference") + semi + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("OptIn") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ExperimentalTypeInference") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("class") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("build") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TestInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("TestInterface") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("emit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("r") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getInv") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("U") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ret") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("emit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/builderInference/withoutAnnotationDisabledFeature.antlrtree.txt b/grammar/testData/diagnostics/inference/builderInference/withoutAnnotationDisabledFeature.antlrtree.txt new file mode 100644 index 000000000..44d1565be --- /dev/null +++ b/grammar/testData/diagnostics/inference/builderInference/withoutAnnotationDisabledFeature.antlrtree.txt @@ -0,0 +1,292 @@ +File: withoutAnnotationDisabledFeature.kt - b6d041dd16004d8a4e0cacf4798bb0fa + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("buildMap") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builderAction") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Map") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mapOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("buildMap") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("put") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/cannotCompleteResolveAmbiguity.antlrtree.txt b/grammar/testData/diagnostics/inference/cannotCompleteResolveAmbiguity.antlrtree.txt index 236b12136..f69e4d7ee 100644 --- a/grammar/testData/diagnostics/inference/cannotCompleteResolveAmbiguity.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/cannotCompleteResolveAmbiguity.antlrtree.txt @@ -1,4 +1,4 @@ -File: cannotCompleteResolveAmbiguity.kt - 7374dbbedf7433687df39c5e3b8d3091 +File: cannotCompleteResolveAmbiguity.kt - 2600acada6b13df33a0f7a46b28513ce NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inference/cannotCompleteResolveFunctionLiteralsNoUse.antlrtree.txt b/grammar/testData/diagnostics/inference/cannotCompleteResolveFunctionLiteralsNoUse.antlrtree.txt index e42ce0c00..4457834a2 100644 --- a/grammar/testData/diagnostics/inference/cannotCompleteResolveFunctionLiteralsNoUse.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/cannotCompleteResolveFunctionLiteralsNoUse.antlrtree.txt @@ -1,5 +1,4 @@ -File: cannotCompleteResolveFunctionLiteralsNoUse.kt - 6dabc3dd1f759226ba10f57a3f8394a6 - NL("\n") +File: cannotCompleteResolveFunctionLiteralsNoUse.kt - f80f6d2f6400019aa3f95eeb15dc03a1 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/inference/cannotCompleteResolveNoInfoForParameter.antlrtree.txt b/grammar/testData/diagnostics/inference/cannotCompleteResolveNoInfoForParameter.antlrtree.txt index c9e94905c..4c22b8055 100644 --- a/grammar/testData/diagnostics/inference/cannotCompleteResolveNoInfoForParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/cannotCompleteResolveNoInfoForParameter.antlrtree.txt @@ -1,4 +1,4 @@ -File: cannotCompleteResolveNoInfoForParameter.kt - 472ef8f46eb3e2736bd9afbc428ad0fb +File: cannotCompleteResolveNoInfoForParameter.kt - 9ba577a1f55f7bb422e87d5fc04691f1 NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inference/cannotCompleteResolveNoneApplicable.antlrtree.txt b/grammar/testData/diagnostics/inference/cannotCompleteResolveNoneApplicable.antlrtree.txt index d8c75876d..7711319a9 100644 --- a/grammar/testData/diagnostics/inference/cannotCompleteResolveNoneApplicable.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/cannotCompleteResolveNoneApplicable.antlrtree.txt @@ -1,4 +1,5 @@ -File: cannotCompleteResolveNoneApplicable.kt - 0105db6e433fbf8d50fd2a02905918b0 +File: cannotCompleteResolveNoneApplicable.kt - f1d5e494d4a78df3f12fbb96af1b4e83 + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/inference/cannotCompleteResolveWithFunctionLiterals.antlrtree.txt b/grammar/testData/diagnostics/inference/cannotCompleteResolveWithFunctionLiterals.antlrtree.txt index 40471c7a8..64b7c8279 100644 --- a/grammar/testData/diagnostics/inference/cannotCompleteResolveWithFunctionLiterals.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/cannotCompleteResolveWithFunctionLiterals.antlrtree.txt @@ -1,5 +1,4 @@ -File: cannotCompleteResolveWithFunctionLiterals.kt - 3da57fe27a387cde3bacfa9166f9541e - NL("\n") +File: cannotCompleteResolveWithFunctionLiterals.kt - c0097a59e92af551c4cf4ca758c15836 NL("\n") packageHeader PACKAGE("package") @@ -231,5 +230,4 @@ File: cannotCompleteResolveWithFunctionLiterals.kt - 3da57fe27a387cde3bacfa9166f IntegerLiteral("42") semis NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedInProjectedFlexibleType.main.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedInProjectedFlexibleType.main.antlrtree.txt index 3c9624ca8..5c8b1648f 100644 --- a/grammar/testData/diagnostics/inference/capturedInProjectedFlexibleType.main.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedInProjectedFlexibleType.main.antlrtree.txt @@ -178,6 +178,4 @@ File: capturedInProjectedFlexibleType.main.kt - d03e762322791f74ba67f41b35b66121 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/approximateBeforeFixation.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/approximateBeforeFixation.antlrtree.txt index f14d0594c..b8934aae3 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/approximateBeforeFixation.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/approximateBeforeFixation.antlrtree.txt @@ -1,5 +1,4 @@ -File: approximateBeforeFixation.kt - 369ca0c0f32974be41e21350b62d2615 - NL("\n") +File: approximateBeforeFixation.kt - 8af4cd6bbdb279e50349d3346f9c5337 packageHeader importList topLevelObject @@ -295,5 +294,5 @@ File: approximateBeforeFixation.kt - 369ca0c0f32974be41e21350b62d2615 statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/approximateContravariantCapturedTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/approximateContravariantCapturedTypes.antlrtree.txt index 88055c8d6..78aa7a160 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/approximateContravariantCapturedTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/approximateContravariantCapturedTypes.antlrtree.txt @@ -1,4 +1,4 @@ -File: approximateContravariantCapturedTypes.kt - 6356eedc85f80c18d03afc2de34fb419 +File: approximateContravariantCapturedTypes.kt - cfe18cdab360b18f1f9b6fbe631bbd94 packageHeader importList topLevelObject @@ -555,6 +555,55 @@ File: approximateContravariantCapturedTypes.kt - 6356eedc85f80c18d03afc2de34fb41 semis NL("\n") NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + NL("\n") topLevelObject declaration functionDeclaration @@ -607,6 +656,71 @@ File: approximateContravariantCapturedTypes.kt - 6356eedc85f80c18d03afc2de34fb41 COLONCOLON("::") simpleIdentifier Identifier("setX") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fooSetRef2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("setX") + RPAREN(")") semis NL("\n") statement @@ -742,6 +856,77 @@ File: approximateContravariantCapturedTypes.kt - 6356eedc85f80c18d03afc2de34fb41 literalConstant IntegerLiteral("1") RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("fooSetRef2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") semis NL("\n") NL("\n") @@ -841,6 +1026,70 @@ File: approximateContravariantCapturedTypes.kt - 6356eedc85f80c18d03afc2de34fb41 Identifier("setX1") semis NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fooSetRef2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("setX1") + RPAREN(")") + semis + NL("\n") statement declaration propertyDeclaration @@ -974,6 +1223,77 @@ File: approximateContravariantCapturedTypes.kt - 6356eedc85f80c18d03afc2de34fb41 literalConstant IntegerLiteral("1") RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("fooSetRef2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") semis NL("\n") NL("\n") @@ -1073,6 +1393,70 @@ File: approximateContravariantCapturedTypes.kt - 6356eedc85f80c18d03afc2de34fb41 Identifier("setX") semis NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fooSetRef2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo2") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("setX") + RPAREN(")") + semis + NL("\n") statement declaration propertyDeclaration @@ -1208,6 +1592,79 @@ File: approximateContravariantCapturedTypes.kt - 6356eedc85f80c18d03afc2de34fb41 QUOTE_OPEN(""") QUOTE_CLOSE(""") RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("fooSetRef2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") semis NL("\n") NL("\n") @@ -1307,6 +1764,70 @@ File: approximateContravariantCapturedTypes.kt - 6356eedc85f80c18d03afc2de34fb41 Identifier("setX1") semis NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fooSetRef2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo2") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("setX1") + RPAREN(")") + semis + NL("\n") statement declaration propertyDeclaration @@ -1442,6 +1963,79 @@ File: approximateContravariantCapturedTypes.kt - 6356eedc85f80c18d03afc2de34fb41 QUOTE_OPEN(""") QUOTE_CLOSE(""") RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("fooSetRef2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") semis NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/avoidCreatingUselessCapturedTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/avoidCreatingUselessCapturedTypes.antlrtree.txt index 89b7eb1da..2c9dbb0cf 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/avoidCreatingUselessCapturedTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/avoidCreatingUselessCapturedTypes.antlrtree.txt @@ -1,4 +1,4 @@ -File: avoidCreatingUselessCapturedTypes.kt - d8dab02cf1a7430283e199c711ea0e37 +File: avoidCreatingUselessCapturedTypes.kt - 8a49c3647525c83d28dd386c93f0ba6d NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/cannotCaptureInProjection.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/cannotCaptureInProjection.antlrtree.txt index 1f4fa088c..de6dae980 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/cannotCaptureInProjection.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/cannotCaptureInProjection.antlrtree.txt @@ -1,5 +1,4 @@ -File: cannotCaptureInProjection.kt - 8a8bd4c4a919659413995b34b3f15be2 - NL("\n") +File: cannotCaptureInProjection.kt - 5439412b34545537b4146592505cc13c NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/captureForNullableTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/captureForNullableTypes.antlrtree.txt index 003048ae2..a62076cb4 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/captureForNullableTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/captureForNullableTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: captureForNullableTypes.kt - d14928cbf6f08986263d5ebaf10914d9 - NL("\n") +File: captureForNullableTypes.kt - a348baba257acd314456b3698c89293b NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/captureForPlatformTypes.b.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/captureForPlatformTypes.b.antlrtree.txt index f9aef6ad0..ef8c3c48a 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/captureForPlatformTypes.b.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/captureForPlatformTypes.b.antlrtree.txt @@ -742,6 +742,4 @@ File: captureForPlatformTypes.b.kt - 4e8da263811486e50b294cb54171087f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/captureFromNullableTypeVariable.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/captureFromNullableTypeVariable.antlrtree.txt index 38004e11e..cb073771a 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/captureFromNullableTypeVariable.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/captureFromNullableTypeVariable.antlrtree.txt @@ -1,5 +1,4 @@ -File: captureFromNullableTypeVariable.kt - 48e7261f8d117d2c416a1d69fbd192a0 - NL("\n") +File: captureFromNullableTypeVariable.kt - e79b2682a9e3805f8a042c49be2d7a01 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/capturedTypes/captureFromSubtyping.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/captureFromSubtyping.antlrtree.txt index 663d45eae..45e089390 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/captureFromSubtyping.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/captureFromSubtyping.antlrtree.txt @@ -1,4 +1,5 @@ -File: captureFromSubtyping.kt - a315282a8bb78a9f0cd5e17d3003d8ec +File: captureFromSubtyping.kt - 0f322a1077e088155d0fd6da895fbaf6 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/capturedTypes/captureTypeOnlyOnTopLevel.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/captureTypeOnlyOnTopLevel.antlrtree.txt index aa93af088..65f59602e 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/captureTypeOnlyOnTopLevel.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/captureTypeOnlyOnTopLevel.antlrtree.txt @@ -1,5 +1,4 @@ -File: captureTypeOnlyOnTopLevel.kt - bdccf6f6e439062c695f9f85e65ac79c - NL("\n") +File: captureTypeOnlyOnTopLevel.kt - 88a0884955f575cceeadf78406ebe2de NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/capturedTypes/capturedTypeAndApproximation.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/capturedTypeAndApproximation.antlrtree.txt index 4de5f1071..e753f073b 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/capturedTypeAndApproximation.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/capturedTypeAndApproximation.antlrtree.txt @@ -671,6 +671,4 @@ File: capturedTypeAndApproximation.kt - a621bfbc4b54df2236041455cc456d84 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/capturedTypeSubstitutedIntoOppositeProjection.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/capturedTypeSubstitutedIntoOppositeProjection.antlrtree.txt index 1978b5531..45f8f5a5f 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/capturedTypeSubstitutedIntoOppositeProjection.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/capturedTypeSubstitutedIntoOppositeProjection.antlrtree.txt @@ -557,6 +557,4 @@ File: capturedTypeSubstitutedIntoOppositeProjection.kt - 317f0b275cde3cd03a0d2b5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/capturedTypeWithTypeVariableSubtyping.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/capturedTypeWithTypeVariableSubtyping.antlrtree.txt index 6c69f106e..3938a6ed3 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/capturedTypeWithTypeVariableSubtyping.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/capturedTypeWithTypeVariableSubtyping.antlrtree.txt @@ -849,6 +849,4 @@ File: capturedTypeWithTypeVariableSubtyping.kt - 5a07b10cba362bed0ddb702ee17a8cb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/dontCheckNewCapturedTypeSpecificChecksForOldOnes.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/dontCheckNewCapturedTypeSpecificChecksForOldOnes.antlrtree.txt new file mode 100644 index 000000000..d2130b5c3 --- /dev/null +++ b/grammar/testData/diagnostics/inference/capturedTypes/dontCheckNewCapturedTypeSpecificChecksForOldOnes.antlrtree.txt @@ -0,0 +1,319 @@ +File: dontCheckNewCapturedTypeSpecificChecksForOldOnes.kt - 927a52e372c8e3bc466a29f7f8d05602 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Container") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("PARAM") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ContainerType") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("PARAM") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("CONT") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Container") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("PARAM") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + simpleIdentifier + Identifier("doGet") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("ep") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ContainerType") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JvmName") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("name") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("PARAM") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("CONT") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Container") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("PARAM") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("doGet") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("ep") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ContainerType") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("PARAM") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CONT") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/expectedTypeMismatchWithInVariance.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/expectedTypeMismatchWithInVariance.antlrtree.txt index b9d202b14..02f349a14 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/expectedTypeMismatchWithInVariance.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/expectedTypeMismatchWithInVariance.antlrtree.txt @@ -1,5 +1,4 @@ -File: expectedTypeMismatchWithInVariance.kt - a0acf8cf6e866a041fc1df277693e7d3 - NL("\n") +File: expectedTypeMismatchWithInVariance.kt - b6b86f18695c88da9ffa3aea488fcc0f NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/capturedTypes/kt25302.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/kt25302.antlrtree.txt index dc07b2d7e..31015bc7f 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/kt25302.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/kt25302.antlrtree.txt @@ -390,6 +390,4 @@ File: kt25302.kt - 9da3d9b41a2ac436b6250c37dd5d6499 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/kt2570.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/kt2570.antlrtree.txt index b07516a37..5de0ac2ca 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/kt2570.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/kt2570.antlrtree.txt @@ -329,6 +329,4 @@ File: kt2570.kt - 20e1dce7159f9e10193b5cf276c7aaf8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/kt2872.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/kt2872.antlrtree.txt index 104dc8704..5a17466c1 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/kt2872.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/kt2872.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt2872.kt - 3d21c1e26eb701f83914b1052199b6f2 - NL("\n") +File: kt2872.kt - 61a67f11f568bb5734d6adb85ca218f4 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/capturedTypes/kt46727.main.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/kt46727.main.antlrtree.txt new file mode 100644 index 000000000..0d0b3c79d --- /dev/null +++ b/grammar/testData/diagnostics/inference/capturedTypes/kt46727.main.antlrtree.txt @@ -0,0 +1,2029 @@ +File: kt46727.main.kt - 36a32d6040eeacd33af59f9b9816351d + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeStarFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeStarFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeStarBar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeStarBar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeStarFoo2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo2") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo2") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeStarFoo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + CLASS("class") + simpleIdentifier + Identifier("Bar2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + VALUE("value") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeStarBar2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar2") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar2") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeStarBar2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeStarFoo3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo3") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo3") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeStarFoo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar3") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmField") + NL("\n") + VAR("var") + variableDeclaration + simpleIdentifier + VALUE("value") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeStarBar3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar3") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main6") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar3") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeStarBar3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/kt46727Warnings.main.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/kt46727Warnings.main.antlrtree.txt new file mode 100644 index 000000000..85500c8c3 --- /dev/null +++ b/grammar/testData/diagnostics/inference/capturedTypes/kt46727Warnings.main.antlrtree.txt @@ -0,0 +1,2029 @@ +File: kt46727Warnings.main.kt - 36a32d6040eeacd33af59f9b9816351d + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeStarFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeStarFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeStarBar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeStarBar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeStarFoo2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo2") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo2") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeStarFoo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + CLASS("class") + simpleIdentifier + Identifier("Bar2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + VALUE("value") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeStarBar2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar2") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar2") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeStarBar2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeStarFoo3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo3") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo3") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeStarFoo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar3") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmField") + NL("\n") + VAR("var") + variableDeclaration + simpleIdentifier + VALUE("value") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeStarBar3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar3") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("test") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main6") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bar") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar3") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeStarBar3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/kt49101.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/kt49101.antlrtree.txt new file mode 100644 index 000000000..3ce1f6f97 --- /dev/null +++ b/grammar/testData/diagnostics/inference/capturedTypes/kt49101.antlrtree.txt @@ -0,0 +1,244 @@ +File: kt49101.kt - e5eea595e8735add4602ce55a49f884e + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("m") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T1") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T1") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("m") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/kt52782.main.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/kt52782.main.antlrtree.txt new file mode 100644 index 000000000..8e2b3c4d2 --- /dev/null +++ b/grammar/testData/diagnostics/inference/capturedTypes/kt52782.main.antlrtree.txt @@ -0,0 +1,64 @@ +File: kt52782.main.kt - ffd783cce442a8df86700c212609627e + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/noCaptureTypeErrorForNonTopLevel.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/noCaptureTypeErrorForNonTopLevel.antlrtree.txt index 0e995d10f..94b62c609 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/noCaptureTypeErrorForNonTopLevel.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/noCaptureTypeErrorForNonTopLevel.antlrtree.txt @@ -1,5 +1,4 @@ -File: noCaptureTypeErrorForNonTopLevel.kt - 4d6eb0e4646da520486e34d256b176b2 - NL("\n") +File: noCaptureTypeErrorForNonTopLevel.kt - aa47f1afffccb43c0cdd1852d69c2eb1 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/capturedTypes/notApproximateWhenCopyDescriptors.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/notApproximateWhenCopyDescriptors.antlrtree.txt index 37761a3b8..8edac9418 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/notApproximateWhenCopyDescriptors.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/notApproximateWhenCopyDescriptors.antlrtree.txt @@ -114,6 +114,4 @@ File: notApproximateWhenCopyDescriptors.kt - b64d11c1c72b4044178c88942e7ceb21 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/propagateNullailityOnSupertypesWhenCaptureTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/propagateNullailityOnSupertypesWhenCaptureTypes.antlrtree.txt index e567f0c3f..5391fbf7a 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/propagateNullailityOnSupertypesWhenCaptureTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/propagateNullailityOnSupertypesWhenCaptureTypes.antlrtree.txt @@ -678,6 +678,4 @@ File: propagateNullailityOnSupertypesWhenCaptureTypes.kt - ce4f829ba3107760eb98e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/substituteCapturedTypesWithTypeVariables.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/substituteCapturedTypesWithTypeVariables.antlrtree.txt index 73bfdc5a7..075138dc7 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/substituteCapturedTypesWithTypeVariables.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/substituteCapturedTypesWithTypeVariables.antlrtree.txt @@ -1,4 +1,4 @@ -File: substituteCapturedTypesWithTypeVariables.kt - f18e8bd800e0f178e6c22c0ae2a7c914 +File: substituteCapturedTypesWithTypeVariables.kt - c0416fd194e29e47bfffb867691d791a NL("\n") NL("\n") NL("\n") @@ -240,5 +240,5 @@ File: substituteCapturedTypesWithTypeVariables.kt - f18e8bd800e0f178e6c22c0ae2a7 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypes/topLevelCapturingInsideReturnType.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypes/topLevelCapturingInsideReturnType.antlrtree.txt index 2f9445123..8c659d374 100644 --- a/grammar/testData/diagnostics/inference/capturedTypes/topLevelCapturingInsideReturnType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/capturedTypes/topLevelCapturingInsideReturnType.antlrtree.txt @@ -203,6 +203,4 @@ File: topLevelCapturingInsideReturnType.kt - ed1ffc68354ccf68753d85fe70320fa0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/capturedTypesInSelfType.antlrtree.txt b/grammar/testData/diagnostics/inference/capturedTypesInSelfType.antlrtree.txt new file mode 100644 index 000000000..ae653ac0c --- /dev/null +++ b/grammar/testData/diagnostics/inference/capturedTypesInSelfType.antlrtree.txt @@ -0,0 +1,163 @@ +File: capturedTypesInSelfType.kt - 9460c542607d13e958edd5d5773fd263 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Enum") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Enum") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/coerceFunctionLiteralToSuspend.antlrtree.txt b/grammar/testData/diagnostics/inference/coerceFunctionLiteralToSuspend.antlrtree.txt index 4e5a60c32..389822bde 100644 --- a/grammar/testData/diagnostics/inference/coerceFunctionLiteralToSuspend.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coerceFunctionLiteralToSuspend.antlrtree.txt @@ -730,6 +730,4 @@ File: coerceFunctionLiteralToSuspend.kt - d311517bff42472fb35770cf14ef8cf5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitForIfAsLastExpressionInLambda.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitForIfAsLastExpressionInLambda.antlrtree.txt index 8ff2418ca..705bb4285 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitForIfAsLastExpressionInLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitForIfAsLastExpressionInLambda.antlrtree.txt @@ -1,4 +1,4 @@ -File: coercionToUnitForIfAsLastExpressionInLambda.kt - 110924eca534b71c64dfe88e1b1ff7cd +File: coercionToUnitForIfAsLastExpressionInLambda.kt - 1f65e354d4af2c6fa4825882670981aa NL("\n") NL("\n") packageHeader @@ -968,5 +968,5 @@ File: coercionToUnitForIfAsLastExpressionInLambda.kt - 110924eca534b71c64dfe88e1 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitForLastLambdaInLambda.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitForLastLambdaInLambda.antlrtree.txt index 678560725..126d21303 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitForLastLambdaInLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitForLastLambdaInLambda.antlrtree.txt @@ -209,6 +209,4 @@ File: coercionToUnitForLastLambdaInLambda.kt - c3425802e4c381b5d8e42231053481d0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitReference.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitReference.antlrtree.txt index 0173b53f2..67b1cb3e8 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitReference.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/coercionToUnitReference.antlrtree.txt @@ -1,4 +1,5 @@ -File: coercionToUnitReference.kt - 69dbe709f3ae665446d3d7d0e41e5f6b +File: coercionToUnitReference.kt - 8423bd9cdc1a1ee62dbbb28d932f8656 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExpectedType.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExpectedType.antlrtree.txt index f20a57244..8081f53d4 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExpectedType.antlrtree.txt @@ -1,5 +1,4 @@ -File: coercionWithExpectedType.kt - 30fce24454b58f2e0409ccbead974d14 - NL("\n") +File: coercionWithExpectedType.kt - dcd11769f3bcac52acdb56b01cb93203 NL("\n") packageHeader importList @@ -485,6 +484,4 @@ File: coercionWithExpectedType.kt - 30fce24454b58f2e0409ccbead974d14 NL("\n") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExpectedTypeAndBound.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExpectedTypeAndBound.antlrtree.txt index 0fc987992..fe0fa8ce2 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExpectedTypeAndBound.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExpectedTypeAndBound.antlrtree.txt @@ -1,6 +1,4 @@ -File: coercionWithExpectedTypeAndBound.kt - 51429b53873382c1e92beb5908ad727d - NL("\n") - NL("\n") +File: coercionWithExpectedTypeAndBound.kt - f2ee7208bdf5d6c525fe034e161bd996 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExplicitTypeArgument.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExplicitTypeArgument.antlrtree.txt index 7e00f5999..cb6031daf 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExplicitTypeArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithExplicitTypeArgument.antlrtree.txt @@ -154,6 +154,4 @@ File: coercionWithExplicitTypeArgument.kt - faa36e46e1715fcfd5c54c4c43e24ea9 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithoutExpectedType.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithoutExpectedType.antlrtree.txt index 6bf50e29f..b09de8841 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithoutExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/coercionWithoutExpectedType.antlrtree.txt @@ -1,6 +1,4 @@ -File: coercionWithoutExpectedType.kt - a19ea18cb1742517a4af0838712baa66 - NL("\n") - NL("\n") +File: coercionWithoutExpectedType.kt - c6a756aea3dcb0188bee694847394dd2 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/coerctionToUnitForATypeWithUpperBound.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/coerctionToUnitForATypeWithUpperBound.antlrtree.txt index 142a142a3..ae6bbf146 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/coerctionToUnitForATypeWithUpperBound.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/coerctionToUnitForATypeWithUpperBound.antlrtree.txt @@ -1,4 +1,4 @@ -File: coerctionToUnitForATypeWithUpperBound.kt - ff751340e66a892820dfab6a0dcae2ca +File: coerctionToUnitForATypeWithUpperBound.kt - 3e90f5b73e9732313f1bb34bfd3a6e8d NL("\n") NL("\n") NL("\n") @@ -248,5 +248,5 @@ File: coerctionToUnitForATypeWithUpperBound.kt - ff751340e66a892820dfab6a0dcae2c NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/coersionWithAnonymousFunctionsAndUnresolved.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/coersionWithAnonymousFunctionsAndUnresolved.antlrtree.txt index 12370daff..fe29d2229 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/coersionWithAnonymousFunctionsAndUnresolved.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/coersionWithAnonymousFunctionsAndUnresolved.antlrtree.txt @@ -1,5 +1,4 @@ -File: coersionWithAnonymousFunctionsAndUnresolved.kt - 6ee511e79d01dd3c844aed521980c464 - NL("\n") +File: coersionWithAnonymousFunctionsAndUnresolved.kt - 6de45a7a97c4284ff2813ce645c32ef8 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/indirectCoercionWithExpectedType.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/indirectCoercionWithExpectedType.antlrtree.txt index c24787bc8..17b0831a5 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/indirectCoercionWithExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/indirectCoercionWithExpectedType.antlrtree.txt @@ -1,6 +1,4 @@ -File: indirectCoercionWithExpectedType.kt - 8a8dcda5e1eb41ff5d429419b354bb98 - NL("\n") - NL("\n") +File: indirectCoercionWithExpectedType.kt - 0cbca07619560e38eb5329a83e8a6e32 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/kt30242.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/kt30242.antlrtree.txt index d3745cd40..2ce790c74 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/kt30242.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/kt30242.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt30242.kt - ae611f27474f9f817f00e7710a2dc906 - NL("\n") +File: kt30242.kt - a59540249fcc7a130f814340616ee126 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/lambdaWithNullableUnitInElvis.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/lambdaWithNullableUnitInElvis.antlrtree.txt new file mode 100644 index 000000000..c0219ab04 --- /dev/null +++ b/grammar/testData/diagnostics/inference/coercionToUnit/lambdaWithNullableUnitInElvis.antlrtree.txt @@ -0,0 +1,194 @@ +File: lambdaWithNullableUnitInElvis.kt - afaf1c1bdc160e90c97b61571ba8a785 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("nullableF") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + parenthesizedType + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + quest + QUEST_NO_WS("?") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("unit") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nullableF") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("unit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/noCoercion.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/noCoercion.antlrtree.txt index 0a420a470..be0829c08 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/noCoercion.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/noCoercion.antlrtree.txt @@ -1,5 +1,4 @@ -File: noCoercion.kt - 60b9ea230a7d1772e2ad4486c4d4015c - NL("\n") +File: noCoercion.kt - 6904550601538e0abcd7dc143fafcd0e NL("\n") NL("\n") packageHeader @@ -511,5 +510,5 @@ File: noCoercion.kt - 60b9ea230a7d1772e2ad4486c4d4015c LineStrText("hello") QUOTE_CLOSE(""") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/coercionToUnit/nonPropagationOfCoercionToUnitInsideNestedLambda.antlrtree.txt b/grammar/testData/diagnostics/inference/coercionToUnit/nonPropagationOfCoercionToUnitInsideNestedLambda.antlrtree.txt index 38f42e7fa..86128514d 100644 --- a/grammar/testData/diagnostics/inference/coercionToUnit/nonPropagationOfCoercionToUnitInsideNestedLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/coercionToUnit/nonPropagationOfCoercionToUnitInsideNestedLambda.antlrtree.txt @@ -1274,6 +1274,4 @@ File: nonPropagationOfCoercionToUnitInsideNestedLambda.kt - fa165b61b87ae23d3bb5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/commonSystem/castToSubtype.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/castToSubtype.antlrtree.txt index 01b5c5964..feef39001 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/castToSubtype.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/castToSubtype.antlrtree.txt @@ -752,6 +752,4 @@ File: castToSubtype.kt - 144f7c69ae6b00b26868aa524872df7a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/commonSystem/exactOnElvis.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/exactOnElvis.antlrtree.txt new file mode 100644 index 000000000..4fdd5a683 --- /dev/null +++ b/grammar/testData/diagnostics/inference/commonSystem/exactOnElvis.antlrtree.txt @@ -0,0 +1,848 @@ +File: exactOnElvis.kt - d1abd5c3a70d67d6b5f1677177f67203 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("SelectBuilder") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("X") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("select1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builder") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SelectBuilder") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("select2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builder") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SelectBuilder") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Q") + RANGLE(">") + simpleIdentifier + Identifier("myRun") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builder") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Q") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Q") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("H") + RANGLE(">") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("w1") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("H") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("w2") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("H") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("h1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("H") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w1") + RCURL("}") + semis + NL("\n") + RCURL("}") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w2") + RCURL("}") + semis + NL("\n") + RCURL("}") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + THROW("throw") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("RuntimeException") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("h2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("H") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select1") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w1") + RCURL("}") + semis + NL("\n") + RCURL("}") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select2") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w2") + RCURL("}") + semis + NL("\n") + RCURL("}") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + THROW("throw") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("RuntimeException") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Throwable") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + THROW("throw") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("RuntimeException") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/commonSystem/genericCandidateInGenericClass.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/genericCandidateInGenericClass.antlrtree.txt index fcb298b3c..89d2acb3e 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/genericCandidateInGenericClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/genericCandidateInGenericClass.antlrtree.txt @@ -217,6 +217,4 @@ File: genericCandidateInGenericClass.kt - 4190513c3b945cb2f3bd4e53f02a2d49 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/commonSystem/kt31969.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/kt31969.antlrtree.txt index e7273f36d..8fadabf35 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/kt31969.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/kt31969.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt31969.kt - 67caa67161e233b866367c75b43b391e - NL("\n") +File: kt31969.kt - 3f9c60de03ba51644ce6bf959598c67c NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/commonSystem/kt32818.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/kt32818.antlrtree.txt index f8b3e4f6c..066683f86 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/kt32818.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/kt32818.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt32818.kt - 119a68ea207ea03838366c8edc121512 +File: kt32818.kt - 146be27c2b93d2adc4fcd0ddb7ee303f NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/commonSystem/kt33197.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/kt33197.antlrtree.txt index 5806b5a2b..36eda9c3d 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/kt33197.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/kt33197.antlrtree.txt @@ -418,6 +418,4 @@ File: kt33197.kt - 665d164f3ebb3b6913672de5ab630ceb valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/commonSystem/kt3372toCollection.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/kt3372toCollection.antlrtree.txt index 59f3b0aa3..93c50f210 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/kt3372toCollection.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/kt3372toCollection.antlrtree.txt @@ -316,6 +316,4 @@ File: kt3372toCollection.kt - 0fd1cda117c6a721fd3a3a1fa24d98e7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/commonSystem/lessSpecificTypeForArgumentCallWithExactAnnotation.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/lessSpecificTypeForArgumentCallWithExactAnnotation.antlrtree.txt index 574e841d2..b040286f3 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/lessSpecificTypeForArgumentCallWithExactAnnotation.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/lessSpecificTypeForArgumentCallWithExactAnnotation.antlrtree.txt @@ -1,4 +1,4 @@ -File: lessSpecificTypeForArgumentCallWithExactAnnotation.kt - 92d3345e5252c71500279ba033b2631c +File: lessSpecificTypeForArgumentCallWithExactAnnotation.kt - d8d5c50f239215b1df7fd4f64b86e96d NL("\n") NL("\n") NL("\n") @@ -82,6 +82,54 @@ File: lessSpecificTypeForArgumentCallWithExactAnnotation.kt - 92d3345e5252c71500 lineStringContent LineStrText("INVISIBLE_REFERENCE") QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("INVISIBLE_MEMBER") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("HIDDEN") + QUOTE_CLOSE(""") RPAREN(")") NL("\n") FUN("fun") diff --git a/grammar/testData/diagnostics/inference/commonSystem/lessSpecificTypeForArgumentCallWithExactAnnotation_ni.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/lessSpecificTypeForArgumentCallWithExactAnnotation_ni.antlrtree.txt index b19509ee2..f98d1e4de 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/lessSpecificTypeForArgumentCallWithExactAnnotation_ni.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/lessSpecificTypeForArgumentCallWithExactAnnotation_ni.antlrtree.txt @@ -1,4 +1,4 @@ -File: lessSpecificTypeForArgumentCallWithExactAnnotation_ni.kt - 175c74a4a0f1ba775fb32a5b4475d4da +File: lessSpecificTypeForArgumentCallWithExactAnnotation_ni.kt - 9ae4295011790df2a09fadff5a621463 NL("\n") NL("\n") NL("\n") @@ -82,6 +82,54 @@ File: lessSpecificTypeForArgumentCallWithExactAnnotation_ni.kt - 175c74a4a0f1ba7 lineStringContent LineStrText("INVISIBLE_REFERENCE") QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("INVISIBLE_MEMBER") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("HIDDEN") + QUOTE_CLOSE(""") RPAREN(")") NL("\n") FUN("fun") diff --git a/grammar/testData/diagnostics/inference/commonSystem/manyArgumentsForVararg.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/manyArgumentsForVararg.antlrtree.txt index 3552dcebb..da16fae96 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/manyArgumentsForVararg.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/manyArgumentsForVararg.antlrtree.txt @@ -12355,6 +12355,4 @@ File: manyArgumentsForVararg.kt - a1242ecc9e3fc93dcdd184487837fa7a simpleIdentifier Identifier("B") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/commonSystem/nonFixedVariableFromBothBranches.test.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/nonFixedVariableFromBothBranches.test.antlrtree.txt index 0148a0842..eb6f1459b 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/nonFixedVariableFromBothBranches.test.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/nonFixedVariableFromBothBranches.test.antlrtree.txt @@ -298,6 +298,4 @@ File: nonFixedVariableFromBothBranches.test.kt - 685f474f9053f85482a1c7454e26670 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/commonSystem/nonFixedVariableInsideFlexibleType.test.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/nonFixedVariableInsideFlexibleType.test.antlrtree.txt index b6bbe40ae..97d2bee8c 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/nonFixedVariableInsideFlexibleType.test.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/nonFixedVariableInsideFlexibleType.test.antlrtree.txt @@ -364,6 +364,4 @@ File: nonFixedVariableInsideFlexibleType.test.kt - d9a289ce5a406d4ad9ba49e6bf50c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/commonSystem/postponedCompletionWithExactAnnotation.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/postponedCompletionWithExactAnnotation.antlrtree.txt index b6c70283d..2531dc7cb 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/postponedCompletionWithExactAnnotation.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/postponedCompletionWithExactAnnotation.antlrtree.txt @@ -1,4 +1,4 @@ -File: postponedCompletionWithExactAnnotation.kt - 52cfcada9667978f4792ea613cf3cad7 +File: postponedCompletionWithExactAnnotation.kt - ac56d906f152f0d5b4821955b4b0062a NL("\n") NL("\n") NL("\n") @@ -121,6 +121,54 @@ File: postponedCompletionWithExactAnnotation.kt - 52cfcada9667978f4792ea613cf3ca lineStringContent LineStrText("INVISIBLE_REFERENCE") QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("INVISIBLE_MEMBER") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("HIDDEN") + QUOTE_CLOSE(""") RPAREN(")") NL("\n") FUN("fun") diff --git a/grammar/testData/diagnostics/inference/commonSystem/postponedCompletionWithExactAnnotation_ni.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/postponedCompletionWithExactAnnotation_ni.antlrtree.txt index aafdc11fa..682a89ccb 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/postponedCompletionWithExactAnnotation_ni.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/postponedCompletionWithExactAnnotation_ni.antlrtree.txt @@ -1,4 +1,4 @@ -File: postponedCompletionWithExactAnnotation_ni.kt - cdedd78e72fba9c3ff3827c146a1b240 +File: postponedCompletionWithExactAnnotation_ni.kt - 26b289c295fb3db8ce503448242fa54f NL("\n") NL("\n") NL("\n") @@ -121,6 +121,54 @@ File: postponedCompletionWithExactAnnotation_ni.kt - cdedd78e72fba9c3ff3827c146a lineStringContent LineStrText("INVISIBLE_REFERENCE") QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("INVISIBLE_MEMBER") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("HIDDEN") + QUOTE_CLOSE(""") RPAREN(")") NL("\n") FUN("fun") diff --git a/grammar/testData/diagnostics/inference/commonSystem/selectIntegerValueTypeFromIf.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/selectIntegerValueTypeFromIf.antlrtree.txt index c90171d46..0a3b6016d 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/selectIntegerValueTypeFromIf.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/selectIntegerValueTypeFromIf.antlrtree.txt @@ -154,6 +154,4 @@ File: selectIntegerValueTypeFromIf.kt - 6f2f386df2c7d7d6268354a374e36d9f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/commonSystem/theSameFunctionInArgs.antlrtree.txt b/grammar/testData/diagnostics/inference/commonSystem/theSameFunctionInArgs.antlrtree.txt index 81b22df60..942c52126 100644 --- a/grammar/testData/diagnostics/inference/commonSystem/theSameFunctionInArgs.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/commonSystem/theSameFunctionInArgs.antlrtree.txt @@ -185,6 +185,4 @@ File: theSameFunctionInArgs.kt - e16f7372683bafd7ae1e84e4b8e4224d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/completeInferenceIfManyFailed.antlrtree.txt b/grammar/testData/diagnostics/inference/completeInferenceIfManyFailed.antlrtree.txt index e15072443..06a22ef93 100644 --- a/grammar/testData/diagnostics/inference/completeInferenceIfManyFailed.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completeInferenceIfManyFailed.antlrtree.txt @@ -1,5 +1,4 @@ -File: completeInferenceIfManyFailed.kt - f01c8c5978c2311f8c5d619a52768ed4 - NL("\n") +File: completeInferenceIfManyFailed.kt - ffd4ca48642f8ab46ec43246c0cf7c86 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/completion/definitelyNotNullType.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/definitelyNotNullType.antlrtree.txt index a29075a18..cc72c99e7 100644 --- a/grammar/testData/diagnostics/inference/completion/definitelyNotNullType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/definitelyNotNullType.antlrtree.txt @@ -1,4 +1,4 @@ -File: definitelyNotNullType.kt - b5c5552ca598eb94d1ae47129f1c494d (WITH_ERRORS) +File: definitelyNotNullType.kt - 490dc5b2a482cb9191afba2ec1ace0ce NL("\n") NL("\n") NL("\n") @@ -40,35 +40,481 @@ File: definitelyNotNullType.kt - b5c5552ca598eb94d1ae47129f1c494d (WITH_ERRORS) simpleIdentifier Identifier("T") RPAREN(")") - LCURL("{") - NL("\n") - Identifier("id") - LANGLE("<") - Identifier("Out") - LANGLE("<") - Identifier("Base") - RANGLE(">") - RANGLE(">") - LPAREN("(") - QUOTE_OPEN(""") - LineStrText(")!>makeOut(\n makeDnn(derived)\n )\n )\n id>(\n makeIn(\n makeDnn(derived)\n )\n )\n id>(\n makeInv(\n makeDnn(derived)\n )\n )\n id>>(\n >") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("makeInIn") - LPAREN("(") - Identifier("makeDnn") - LPAREN("(") - Identifier("derived") - RPAREN(")") - RPAREN(")") - NL("\n") - RPAREN(")") - NL("\n") - RCURL("}") - NL("\n") - NL("\n") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("makeOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("makeDnn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("derived") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("makeIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("makeDnn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("derived") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("makeInv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("makeDnn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("derived") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("id") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RANGLE(">") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("makeInIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("makeDnn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("derived") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") topLevelObject declaration classDeclaration diff --git a/grammar/testData/diagnostics/inference/completion/equalityConstraintUpstairs.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/equalityConstraintUpstairs.antlrtree.txt index 3ce6ba18f..c7e2b0b11 100644 --- a/grammar/testData/diagnostics/inference/completion/equalityConstraintUpstairs.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/equalityConstraintUpstairs.antlrtree.txt @@ -477,6 +477,4 @@ File: equalityConstraintUpstairs.kt - cb4b2376a7fcc2660c520b9ce68933d8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/completion/errorAfterCompletion.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/errorAfterCompletion.antlrtree.txt new file mode 100644 index 000000000..9aa113cc7 --- /dev/null +++ b/grammar/testData/diagnostics/inference/completion/errorAfterCompletion.antlrtree.txt @@ -0,0 +1,289 @@ +File: errorAfterCompletion.kt - 5201395b74ebfa7011b04aa0df6df8e5 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("myRun") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + RCURL("}") + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/completion/inferLabeledElementTypeForLambdaInReturnInCatch.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/inferLabeledElementTypeForLambdaInReturnInCatch.antlrtree.txt new file mode 100644 index 000000000..c4ffc3cad --- /dev/null +++ b/grammar/testData/diagnostics/inference/completion/inferLabeledElementTypeForLambdaInReturnInCatch.antlrtree.txt @@ -0,0 +1,510 @@ +File: inferLabeledElementTypeForLambdaInReturnInCatch.kt - 24fb538cb863b3b0370b1acce1908a35 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + semis + NL("\n") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("2") + QUOTE_CLOSE(""") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("run") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + semis + NL("\n") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RCURL("}") + semis + NL("\n") + RCURL("}") + postfixUnarySuffix + callSuffix + annotatedLambda + NL("\n") + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("2") + QUOTE_CLOSE(""") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/completion/kt33166.test.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/kt33166.test.antlrtree.txt index b9323e918..15d7b504a 100644 --- a/grammar/testData/diagnostics/inference/completion/kt33166.test.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/kt33166.test.antlrtree.txt @@ -641,6 +641,4 @@ File: kt33166.test.kt - ff9649cd1f641ba8abf929826031ba45 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/completion/partialForIlt.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/partialForIlt.antlrtree.txt index 846dc4727..7c0afc5b7 100644 --- a/grammar/testData/diagnostics/inference/completion/partialForIlt.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/partialForIlt.antlrtree.txt @@ -460,6 +460,4 @@ File: partialForIlt.kt - fba733d2974fe0990627805b5854d3dd semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/callableReferences.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/callableReferences.antlrtree.txt index 7ed2c8e51..51f0a7705 100644 --- a/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/callableReferences.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/callableReferences.antlrtree.txt @@ -376,6 +376,4 @@ File: callableReferences.kt - edc4ba6c9ffef802a2269be6d7acf553 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/fixingVariableDuringAddingConstraintForFirstPosponedArgument.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/fixingVariableDuringAddingConstraintForFirstPosponedArgument.antlrtree.txt index 6b0f7d4bc..0ffb6a942 100644 --- a/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/fixingVariableDuringAddingConstraintForFirstPosponedArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/fixingVariableDuringAddingConstraintForFirstPosponedArgument.antlrtree.txt @@ -250,6 +250,4 @@ File: fixingVariableDuringAddingConstraintForFirstPosponedArgument.kt - 55b9622f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/lambdasInTryCatch.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/lambdasInTryCatch.antlrtree.txt index 668252ef2..04d3bb75d 100644 --- a/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/lambdasInTryCatch.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/lambdasInTryCatch.antlrtree.txt @@ -2694,6 +2694,4 @@ File: lambdasInTryCatch.kt - 9914621b56ef649334b0336c72e2049a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/takingExtensibilityFromDeclarationOfAnonymousFunction.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/takingExtensibilityFromDeclarationOfAnonymousFunction.antlrtree.txt index b9a91bb03..538d6ffc3 100644 --- a/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/takingExtensibilityFromDeclarationOfAnonymousFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/takingExtensibilityFromDeclarationOfAnonymousFunction.antlrtree.txt @@ -578,6 +578,4 @@ File: takingExtensibilityFromDeclarationOfAnonymousFunction.kt - 25ca55b54b157ab Identifier("length") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/wrongVariableFixationOrder2.antlrtree.txt b/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/wrongVariableFixationOrder2.antlrtree.txt index a1f98613f..d53913178 100644 --- a/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/wrongVariableFixationOrder2.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/completion/postponedArgumentsAnalysis/wrongVariableFixationOrder2.antlrtree.txt @@ -412,6 +412,4 @@ File: wrongVariableFixationOrder2.kt - 70536e26178bffb2eb295f15ceb579df semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/conflictingSubstitutions.antlrtree.txt b/grammar/testData/diagnostics/inference/conflictingSubstitutions.antlrtree.txt index 1af610325..0250fcbd7 100644 --- a/grammar/testData/diagnostics/inference/conflictingSubstitutions.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/conflictingSubstitutions.antlrtree.txt @@ -1,4 +1,4 @@ -File: conflictingSubstitutions.kt - a3fe965a019695c6588d6b98f2bb5635 +File: conflictingSubstitutions.kt - b68095fd0904f57e9a278c0651b9a89b NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inference/constraints/complexDependencyWihtoutProperConstraints.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/complexDependencyWihtoutProperConstraints.antlrtree.txt index a124225f2..9dad5a83d 100644 --- a/grammar/testData/diagnostics/inference/constraints/complexDependencyWihtoutProperConstraints.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/complexDependencyWihtoutProperConstraints.antlrtree.txt @@ -2281,6 +2281,4 @@ File: complexDependencyWihtoutProperConstraints.kt - bd482b5353e65d7fdd59979afe4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/constraints/constraintFromVariantTypeWithNestedProjection.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/constraintFromVariantTypeWithNestedProjection.antlrtree.txt index c99036d80..9ee0f2638 100644 --- a/grammar/testData/diagnostics/inference/constraints/constraintFromVariantTypeWithNestedProjection.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/constraintFromVariantTypeWithNestedProjection.antlrtree.txt @@ -1,5 +1,4 @@ -File: constraintFromVariantTypeWithNestedProjection.kt - 2ba9843c898250fad902469c704c8a54 - NL("\n") +File: constraintFromVariantTypeWithNestedProjection.kt - b1535cc12a6b4a003fb8e00190476894 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/constraints/constraintOnFunctionLiteral.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/constraintOnFunctionLiteral.antlrtree.txt index 9613a06b7..ae12f503c 100644 --- a/grammar/testData/diagnostics/inference/constraints/constraintOnFunctionLiteral.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/constraintOnFunctionLiteral.antlrtree.txt @@ -1,5 +1,4 @@ -File: constraintOnFunctionLiteral.kt - 7303789e860f81c1c761c13378ddc429 - NL("\n") +File: constraintOnFunctionLiteral.kt - a49233b7720251a94d9d574237b62640 packageHeader PACKAGE("package") identifier @@ -532,5 +531,4 @@ File: constraintOnFunctionLiteral.kt - 7303789e860f81c1c761c13378ddc429 RPAREN(")") semis NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/constraints/definitelyNotNullTypeInArguments.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/definitelyNotNullTypeInArguments.antlrtree.txt index 454b2d60e..04b41a845 100644 --- a/grammar/testData/diagnostics/inference/constraints/definitelyNotNullTypeInArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/definitelyNotNullTypeInArguments.antlrtree.txt @@ -1,4 +1,4 @@ -File: definitelyNotNullTypeInArguments.kt - 67fceef45e7035463976af6c1128edb9 (WITH_ERRORS) +File: definitelyNotNullTypeInArguments.kt - 5cc32c851d069bba024cf3b400f20a91 NL("\n") NL("\n") packageHeader @@ -1994,661 +1994,5737 @@ File: definitelyNotNullTypeInArguments.kt - 67fceef45e7035463976af6c1128edb9 (WI simpleIdentifier Identifier("L") RPAREN(")") - LCURL("{") - NL("\n") - Identifier("foo0") - LPAREN("(") - Identifier("x") - COMMA(",") - QUOTE_OPEN(""") - LineStrText(")!>Bar())\n foo0(y, ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - Identifier("foo1") - LPAREN("(") - Identifier("x") - COMMA(",") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>Foo(Bar()))\n foo1(y, >") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Foo") - LPAREN("(") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - IF("if") - LPAREN("(") - Identifier("x") - EXCL_EQ("!=") - NullLiteral("null") - CONJ("&&") - Identifier("y") - EXCL_EQ("!=") - NullLiteral("null") - RPAREN(")") - LCURL("{") - NL("\n") - Identifier("foo1") - LPAREN("(") - Identifier("x") - COMMA(",") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>Foo(Bar()))\n foo1(y, >") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Foo") - LPAREN("(") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - RPAREN(")") - NL("\n") - RCURL("}") - NL("\n") - NL("\n") - Identifier("foo2") - LPAREN("(") - Identifier("x") - COMMA(",") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>Foo(Bar()))\n foo2(y, >") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Foo") - LPAREN("(") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - Identifier("foo3") - LPAREN("(") - Identifier("x") - COMMA(",") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>Foo(Bar()))\n foo3(y, >") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Foo") - LPAREN("(") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - Identifier("foo4") - LPAREN("(") - Identifier("x") - COMMA(",") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>Foo(Bar()))\n foo4(y, >") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Foo") - LPAREN("(") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - Identifier("foo5") - LPAREN("(") - Identifier("x") - COMMA(",") - QUOTE_OPEN(""") - LineStrText(")!>Bar())\n foo5(y, ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - Identifier("foo6") - LPAREN("(") - Identifier("x") - COMMA(",") - QUOTE_OPEN(""") - LineStrText(")!>OutBar())\n foo6(y, ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("OutBar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - Identifier("foo7") - LPAREN("(") - Identifier("x") - COMMA(",") - QUOTE_OPEN(""") - LineStrText(")!>InBar())\n foo7(y, ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("InBar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - Identifier("foo8") - LPAREN("(") - Identifier("x") - COMMA(",") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>Foo(Bar()))\n foo8(y, >") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Foo") - LPAREN("(") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - Identifier("foo9") - LPAREN("(") - Identifier("x") - COMMA(",") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>Foo(Bar()))\n foo9(y, >") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Foo") - LPAREN("(") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - Identifier("foo10") - LPAREN("(") - Identifier("x") - COMMA(",") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>Foo(Bar()), ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - Identifier("foo10") - LPAREN("(") - Identifier("y") - COMMA(",") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>Foo(Bar()), ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - Identifier("foo11") - LPAREN("(") - Identifier("x") - COMMA(",") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>Foo(Bar()), ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - Identifier("foo11") - LPAREN("(") - Identifier("y") - COMMA(",") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>Foo(Bar()), ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - IF("if") - LPAREN("(") - Identifier("x") - EXCL_EQ("!=") - NullLiteral("null") - CONJ("&&") - Identifier("y") - EXCL_EQ("!=") - NullLiteral("null") - RPAREN(")") - LCURL("{") - NL("\n") - Identifier("foo12") - LPAREN("(") - Identifier("x") - COMMA(",") - QUOTE_OPEN(""") - LineStrText(")!>Bar())\n foo12(y, ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - RCURL("}") - NL("\n") - NL("\n") - Identifier("foo12") - LPAREN("(") - Identifier("x") - COMMA(",") - QUOTE_OPEN(""") - LineStrText(")!>Bar())\n foo12(y, ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - Identifier("Foo13") - LPAREN("(") - Identifier("x") - RPAREN(")") - DOT(".") - Identifier("foo1") - LPAREN("(") - Identifier("x") - COMMA(",") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - Identifier("Foo13") - LPAREN("(") - Identifier("x") - RPAREN(")") - DOT(".") - Identifier("foo2") - LPAREN("(") - Identifier("y") - COMMA(",") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - Identifier("Foo13") - LPAREN("(") - Identifier("y") - RPAREN(")") - DOT(".") - Identifier("foo1") - LPAREN("(") - Identifier("x") - COMMA(",") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - Identifier("Foo13") - LPAREN("(") - Identifier("y") - RPAREN(")") - DOT(".") - Identifier("foo2") - LPAREN("(") - Identifier("y") - COMMA(",") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - IF("if") - LPAREN("(") - Identifier("x") - EXCL_EQ("!=") - NullLiteral("null") - RPAREN(")") - LCURL("{") - NL("\n") - Identifier("Foo13") - LPAREN("(") - Identifier("x") - RPAREN(")") - DOT(".") - Identifier("foo2") - LPAREN("(") - Identifier("y") - COMMA(",") - QUOTE_OPEN(""") - LineStrText(")!>Bar())\n Foo13(y).foo2(x, Bar())\n }\n if (y != null) {\n Foo13(x).foo2(y, Bar())\n Foo13(y).foo2(x, ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - RCURL("}") - NL("\n") - NL("\n") - Identifier("foo14") - LPAREN("(") - QUOTE_OPEN(""") - LineStrText("y") - QUOTE_CLOSE(""") - COMMA(",") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - Identifier("foo14") - LPAREN("(") - QUOTE_OPEN(""") - LineStrText("x") - QUOTE_CLOSE(""") - COMMA(",") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - Identifier("foo15") - LPAREN("(") - Identifier("x") - COMMA(",") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - Identifier("foo15") - LPAREN("(") - Identifier("y") - COMMA(",") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - IF("if") - LPAREN("(") - Identifier("x") - EXCL_EQ("!=") - NullLiteral("null") - CONJ("&&") - Identifier("y") - EXCL_EQ("!=") - NullLiteral("null") - RPAREN(")") - LCURL("{") - NL("\n") - Identifier("foo15") - LPAREN("(") - Identifier("x") - COMMA(",") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - Identifier("foo15") - LPAREN("(") - Identifier("y") - COMMA(",") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - RCURL("}") - NL("\n") - NL("\n") - Identifier("foo16") - LPAREN("(") - Identifier("x") - COMMA(",") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - Identifier("foo16") - LPAREN("(") - Identifier("y") - COMMA(",") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - IF("if") - LPAREN("(") - Identifier("x") - EXCL_EQ("!=") - NullLiteral("null") - CONJ("&&") - Identifier("y") - EXCL_EQ("!=") - NullLiteral("null") - RPAREN(")") - LCURL("{") - NL("\n") - Identifier("foo16") - LPAREN("(") - Identifier("x") - COMMA(",") - QUOTE_OPEN(""") - LineStrText(")!>Bar())\n foo16(y, ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - NL("\n") - RCURL("}") - NL("\n") - NL("\n") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - DOT(".") - Identifier("foo18") - LPAREN("(") - Identifier("x") - RPAREN(")") - NL("\n") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - DOT(".") - Identifier("foo18") - LPAREN("(") - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - Identifier("foo21") - LPAREN("(") - Identifier("x") - COMMA(",") - RANGLE(">") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>Foo(Foo(OutBar())))\n foo21(y, >>") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Foo") - LPAREN("(") - Identifier("Foo") - LPAREN("(") - Identifier("OutBar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - Identifier("foo22") - LPAREN("(") - Identifier("x") - COMMA(",") - RANGLE(">") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>Foo(Foo(InBar())))\n foo22(y, >>") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Foo") - LPAREN("(") - Identifier("Foo") - LPAREN("(") - Identifier("InBar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - Identifier("foo23") - LPAREN("(") - Identifier("x") - COMMA(",") - RANGLE(">") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>Foo(Foo(Bar())))\n foo23(y, >>") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Foo") - LPAREN("(") - Identifier("Foo") - LPAREN("(") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - Identifier("foo24") - LPAREN("(") - Identifier("x") - COMMA(",") - RANGLE(">") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>Foo(Foo(Bar())))\n foo24(y, >>") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("Foo") - LPAREN("(") - Identifier("Foo") - LPAREN("(") - Identifier("Bar") - LPAREN("(") - RPAREN(")") - RPAREN(")") - RPAREN(")") - RPAREN(")") - NL("\n") - RCURL("}") - NL("\n") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo0") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo0") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo5") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo5") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo6") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("OutBar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo6") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("OutBar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo7") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InBar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo7") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InBar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo8") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo8") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo9") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo9") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo10") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo10") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo11") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo11") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo12") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo12") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo12") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo12") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo13") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo13") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo13") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo13") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo13") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo13") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo13") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo13") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo14") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("y") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo14") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("x") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo15") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo15") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo15") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo15") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo16") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo16") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo16") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo16") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo18") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo18") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo21") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("OutBar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo21") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("OutBar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo22") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InBar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo22") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InBar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo23") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo23") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo24") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo24") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/constraints/definitelyNotNullTypeInReturnPosition.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/definitelyNotNullTypeInReturnPosition.antlrtree.txt index f67f92613..1a95ccff9 100644 --- a/grammar/testData/diagnostics/inference/constraints/definitelyNotNullTypeInReturnPosition.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/definitelyNotNullTypeInReturnPosition.antlrtree.txt @@ -1,4 +1,4 @@ -File: definitelyNotNullTypeInReturnPosition.kt - f697c21fe49f55e62425a34319bb4946 (WITH_ERRORS) +File: definitelyNotNullTypeInReturnPosition.kt - 20e1d46df1d446034c0418c3b1c2eb99 NL("\n") NL("\n") packageHeader @@ -5151,5898 +5151,7357 @@ File: definitelyNotNullTypeInReturnPosition.kt - f697c21fe49f55e62425a34319bb494 simpleIdentifier Identifier("L") RPAREN(")") - LCURL("{") - NL("\n") - INIT("init") - LCURL("{") - NL("\n") - IF("if") - LPAREN("(") - Identifier("x") - EXCL_EQ("!=") - NullLiteral("null") - CONJ("&&") - Identifier("y") - EXCL_EQ("!=") - NullLiteral("null") - RPAREN(")") - LCURL("{") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x12") - ASSIGNMENT("=") - RANGLE(">") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText(")!>foo1(x)\n val x13 = >") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("foo1") - LPAREN("(") - Identifier("y") - RPAREN(")") - semis - NL("\n") - RCURL("}") - NL("\n") - IF("if") - LPAREN("(") - Identifier("x") - EXCL_EQ("!=") - NullLiteral("null") - CONJ("&&") - Identifier("y") - EXCL_EQ("!=") - NullLiteral("null") - RPAREN(")") - LCURL("{") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x120") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText(")!>foo12(x)\n val x121 = ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("foo12") - LPAREN("(") - Identifier("y") - RPAREN(")") - semis - NL("\n") - RCURL("}") - NL("\n") - IF("if") - LPAREN("(") - Identifier("x") - EXCL_EQ("!=") - NullLiteral("null") - RPAREN(")") - LCURL("{") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x137") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Foo13") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo1") - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - semis - NL("\n") - RCURL("}") - NL("\n") - IF("if") - LPAREN("(") - Identifier("y") - EXCL_EQ("!=") - NullLiteral("null") - RPAREN(")") - LCURL("{") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x138") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Foo13") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo1") - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - semis - NL("\n") - RCURL("}") - NL("\n") - IF("if") - LPAREN("(") - Identifier("x") - EXCL_EQ("!=") - NullLiteral("null") - CONJ("&&") - Identifier("y") - EXCL_EQ("!=") - NullLiteral("null") - RPAREN(")") - LCURL("{") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x153") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo15") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x154") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo15") - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - semis - NL("\n") - RCURL("}") - NL("\n") - IF("if") - LPAREN("(") - Identifier("x") - EXCL_EQ("!=") - NullLiteral("null") - CONJ("&&") - Identifier("y") - EXCL_EQ("!=") - NullLiteral("null") - RPAREN(")") - LCURL("{") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x163") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText(")!>foo16(x)\n val x164 = ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("foo16") - LPAREN("(") - Identifier("y") - RPAREN(")") - semis - NL("\n") - RCURL("}") - NL("\n") - RCURL("}") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x00") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo0") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x01") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo0") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x10") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo1") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x11") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo1") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x12") - ASSIGNMENT("=") - RANGLE(">") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText(")!>foo1(x!!)\n val x13 = >") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("foo1") - LPAREN("(") - Identifier("y") - EXCL_NO_WS("!") - EXCL_NO_WS("!") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x20") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo2") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x21") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo2") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x30") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo3") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x31") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo3") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x40") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo4") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x41") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo4") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x50") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo5") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x51") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo5") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x60") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText(")!>foo6(x)\n val x61 = ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("foo6") - LPAREN("(") - Identifier("y") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x70") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo7") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x71") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo7") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x80") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo8") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x81") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo8") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x90") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo9") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x91") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo9") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x100") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo10") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - COMMA(",") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Bar") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - RPAREN(")") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x101") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo10") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - COMMA(",") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Bar") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x110") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo11") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - COMMA(",") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Bar") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - RPAREN(")") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x111") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo11") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - COMMA(",") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Bar") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - RPAREN(")") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x120") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText(")!>foo12(x!!)\n val x121 = ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("foo12") - LPAREN("(") - Identifier("y") - EXCL_NO_WS("!") - EXCL_NO_WS("!") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x122") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo12") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x123") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo12") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x133") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Foo13") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo1") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x135") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Foo13") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo1") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x137") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Foo13") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo1") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x138") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Foo13") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo1") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x140") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo14") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("y") - QUOTE_CLOSE(""") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x141") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo14") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText("x") - QUOTE_CLOSE(""") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x151") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo15") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x152") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo15") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x153") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo15") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x154") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo15") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x161") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo16") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x162") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo16") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x163") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText(")!>foo16(x!!)\n val x164 = ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("foo16") - LPAREN("(") - Identifier("y") - EXCL_NO_WS("!") - EXCL_NO_WS("!") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x170") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo17") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x171") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo17") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x180") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Bar") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo18") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x181") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Bar") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo18") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x200") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("L") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Bar") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo19") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x201") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("L") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("Bar") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo19") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x210") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo21") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x211") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo21") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x220") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo22") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x221") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo22") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x230") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo23") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x231") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo23") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x240") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo24") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x241") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo24") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x250") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText(")!>foo25(x)\n val x251 = ") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("foo25") - LPAREN("(") - Identifier("y") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x260") - ASSIGNMENT("=") - RANGLE(">") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>foo26(x)\n val x261 = >>") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("foo26") - LPAREN("(") - Identifier("y") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x270") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo27") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x271") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo27") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x280") - ASSIGNMENT("=") - RANGLE(">") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>foo28(x)\n val x281 = >>") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("foo28") - LPAREN("(") - Identifier("y") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x290") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo29") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x291") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo29") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x300") - ASSIGNMENT("=") - RANGLE(">") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>foo30(x)\n val x301 = >>") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("foo30") - LPAREN("(") - Identifier("y") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x310") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText(")!>foo31(x)\n val x311 = /* = Bar */") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("foo31") - LPAREN("(") - Identifier("y") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x320") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - stringLiteral - lineStringLiteral - QUOTE_OPEN(""") - lineStringContent - LineStrText(")!>foo32(x)\n val x321 = /* = OutBar */") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("foo32") - LPAREN("(") - Identifier("y") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x330") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo33") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x331") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo33") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x340") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo34") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x341") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo34") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x350") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo35") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x351") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo35") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x360") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo36") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x361") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo36") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("vx01") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("vfoo0") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("vx02") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("vfoo0") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("vx11") - ASSIGNMENT("=") - RANGLE(">") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>x.vfoo1\n val vx12 = >>") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("y") - DOT(".") - Identifier("vfoo1") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("vx21") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("vfoo2") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("vx22") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("vfoo2") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x370") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo37") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x371") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo37") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x380") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo38") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x381") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo38") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x390") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo39") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x391") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo39") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x400") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo40") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x401") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo40") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x410") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo41") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x411") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo41") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x420") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo42") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x421") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo42") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x430") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo43") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x431") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo43") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x440") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo44") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x441") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo44") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x450") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo45") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x451") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo45") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x460") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo46") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RPAREN(")") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x461") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo46") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - NL("\n") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x470") - ASSIGNMENT("=") - RANGLE(">") - RANGLE(">") - QUOTE_OPEN(""") - LineStrText(")!>foo47(x)\n val x471 = >>") - QUOTE_CLOSE(""") - RPAREN(")") - EXCL_NO_WS("!") - RANGLE(">") - Identifier("foo47") - LPAREN("(") - Identifier("y") - RPAREN(")") - semis - NL("\n") - NL("\n") - topLevelObject - declaration - functionDeclaration - FUN("fun") - typeParameters - LANGLE("<") - typeParameter - simpleIdentifier - Identifier("R") - RANGLE(">") - simpleIdentifier - Identifier("takeLambda") - functionValueParameters - LPAREN("(") - functionValueParameter - parameter - simpleIdentifier - Identifier("block") - COLON(":") - type - functionType - functionTypeParameters + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x13") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x120") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo12") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x121") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo12") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x137") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo13") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x138") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo13") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x153") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo15") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x154") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo15") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x163") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo16") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x164") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo16") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x00") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo0") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x01") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo0") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x13") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x20") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x21") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x30") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x31") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x40") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x41") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x50") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo5") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x51") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo5") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x60") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo6") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x61") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo6") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x70") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo7") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x71") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo7") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x80") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo8") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x81") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo8") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x90") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo9") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x91") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo9") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x100") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo10") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x101") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo10") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x110") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo11") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x111") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo11") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x120") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo12") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x121") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo12") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x122") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo12") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x123") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo12") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x133") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo13") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x135") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo13") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x137") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo13") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x138") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo13") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x140") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo14") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("y") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x141") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo14") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("x") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x151") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo15") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x152") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo15") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x153") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo15") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x154") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo15") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x161") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo16") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x162") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo16") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x163") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo16") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x164") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo16") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x170") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo17") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x171") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo17") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x180") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo18") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x181") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo18") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x200") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo19") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x201") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo19") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x210") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo21") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x211") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo21") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x220") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo22") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x221") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo22") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x230") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo23") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x231") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo23") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x240") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo24") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x241") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo24") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x250") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo25") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x251") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo25") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x260") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo26") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x261") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo26") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x270") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo27") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x271") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo27") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x280") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo28") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x281") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo28") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x290") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo29") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x291") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo29") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x300") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo30") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x301") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo30") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x310") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo31") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x311") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo31") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x320") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo32") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x321") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo32") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x330") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo33") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x331") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo33") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x340") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo34") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x341") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo34") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x350") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo35") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x351") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo35") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x360") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo36") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x361") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo36") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("vx01") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("vfoo0") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("vx02") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("vfoo0") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("vx11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("vfoo1") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("vx12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("vfoo1") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("vx21") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("vfoo2") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("vx22") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("vfoo2") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x370") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo37") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x371") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo37") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x380") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo38") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x381") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo38") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x390") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo39") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x391") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo39") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x400") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo40") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x401") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo40") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x410") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo41") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x411") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo41") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x420") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo42") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x421") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo42") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x430") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo43") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x431") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo43") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x440") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo44") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x441") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo44") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x450") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo45") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x451") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo45") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x460") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo46") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x461") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo46") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x470") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo47") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x471") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo47") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("takeLambda") + functionValueParameters LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") RPAREN(")") - ARROW("->") + COLON(":") type typeReference userType simpleUserType simpleIdentifier Identifier("R") - RPAREN(")") - COLON(":") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("R") - functionBody - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("materialize") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("materialize") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x480") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLambda") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo48") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RCURL("}") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x481") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLambda") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo48") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RCURL("}") + RCURL("}") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x482") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLambda") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo48") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RCURL("}") + RCURL("}") + NL("\n") + RCURL("}") semis NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x480") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("takeLambda") - postfixUnarySuffix - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - statements - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo48") - postfixUnarySuffix - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - statements - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - RCURL("}") - RCURL("}") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x481") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("takeLambda") - postfixUnarySuffix - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - statements - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo48") - postfixUnarySuffix - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - statements - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RCURL("}") - RCURL("}") - NL("\n") - topLevelObject - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x482") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("takeLambda") - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - statements - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("foo48") - postfixUnarySuffix - callSuffix - annotatedLambda - lambdaLiteral - LCURL("{") - statements - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - RCURL("}") - RCURL("}") - semis NL("\n") - RCURL("}") - NL("\n") - NL("\n") topLevelObject declaration functionDeclaration diff --git a/grammar/testData/diagnostics/inference/constraints/earlyCompletionForCalls.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/earlyCompletionForCalls.antlrtree.txt index 48d7e18e9..2f6cdfe84 100644 --- a/grammar/testData/diagnostics/inference/constraints/earlyCompletionForCalls.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/earlyCompletionForCalls.antlrtree.txt @@ -396,6 +396,4 @@ File: earlyCompletionForCalls.kt - 7d0ccb040f5a245cfdf1fea4b28bf3b5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/constraints/errorUpperBoundConstraint.test.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/errorUpperBoundConstraint.test.antlrtree.txt index a0f29f45b..71a4fdc66 100644 --- a/grammar/testData/diagnostics/inference/constraints/errorUpperBoundConstraint.test.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/errorUpperBoundConstraint.test.antlrtree.txt @@ -119,6 +119,4 @@ File: errorUpperBoundConstraint.test.kt - eeb1f6e60faa201400a8337982ebd468 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/constraints/ignoreConstraintFromImplicitInNothing.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/ignoreConstraintFromImplicitInNothing.antlrtree.txt index cfd717072..ac88243f6 100644 --- a/grammar/testData/diagnostics/inference/constraints/ignoreConstraintFromImplicitInNothing.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/ignoreConstraintFromImplicitInNothing.antlrtree.txt @@ -1,5 +1,4 @@ -File: ignoreConstraintFromImplicitInNothing.kt - 3ed386c662b3ec797199fe0edc4caa2a - NL("\n") +File: ignoreConstraintFromImplicitInNothing.kt - 47d8339c20d81ea56e36e6dee47795df NL("\n") NL("\n") NL("\n") @@ -704,6 +703,4 @@ File: ignoreConstraintFromImplicitInNothing.kt - 3ed386c662b3ec797199fe0edc4caa2 RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/constraints/kt6320.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/kt6320.antlrtree.txt index bc8934fc4..8bb949832 100644 --- a/grammar/testData/diagnostics/inference/constraints/kt6320.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/kt6320.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt6320.kt - 83517171ec06def2ce979897adaf12dd - NL("\n") +File: kt6320.kt - 20ab8623f23f2fdf3632762d2c6fb07f NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/constraints/kt7351ConstraintFromUnitExpectedType.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/kt7351ConstraintFromUnitExpectedType.antlrtree.txt index 1d9bd7b36..5a15f6e6e 100644 --- a/grammar/testData/diagnostics/inference/constraints/kt7351ConstraintFromUnitExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/kt7351ConstraintFromUnitExpectedType.antlrtree.txt @@ -287,6 +287,4 @@ File: kt7351ConstraintFromUnitExpectedType.kt - 9378910c4f9cefbc02f87432f87f7793 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/constraints/kt7433.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/kt7433.antlrtree.txt index 5a5b87c9f..5c13f334c 100644 --- a/grammar/testData/diagnostics/inference/constraints/kt7433.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/kt7433.antlrtree.txt @@ -290,6 +290,4 @@ File: kt7433.kt - e2531848885a17f38d3a0d6b1828cfc4 RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/constraints/kt8879.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/kt8879.antlrtree.txt index b58ab5d41..b7b8fd960 100644 --- a/grammar/testData/diagnostics/inference/constraints/kt8879.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/kt8879.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt8879.kt - 0e21c864118897a0ae9c0e458959228e - NL("\n") +File: kt8879.kt - fcbcf5c9cc66492b253edee45c704a84 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/constraints/notNullConstraintOnNullableType.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/notNullConstraintOnNullableType.antlrtree.txt index 912b73f57..8676637b8 100644 --- a/grammar/testData/diagnostics/inference/constraints/notNullConstraintOnNullableType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/notNullConstraintOnNullableType.antlrtree.txt @@ -1,5 +1,4 @@ -File: notNullConstraintOnNullableType.kt - 9929d2e75264311d727d46292de07865 - NL("\n") +File: notNullConstraintOnNullableType.kt - 57b6aaf3a4235b6f3127a6053ea0e26b NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/constraints/operationsOnIntegerValueTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/operationsOnIntegerValueTypes.antlrtree.txt index 4c1ed6a5b..995668138 100644 --- a/grammar/testData/diagnostics/inference/constraints/operationsOnIntegerValueTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/operationsOnIntegerValueTypes.antlrtree.txt @@ -261,6 +261,4 @@ File: operationsOnIntegerValueTypes.kt - b2c640a958c96a6712a64e3726e7b0b4 simpleIdentifier Identifier("K") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/constraints/recursiveJavaTypeWithStarProjection.test.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/recursiveJavaTypeWithStarProjection.test.antlrtree.txt index 9785edf6e..672204385 100644 --- a/grammar/testData/diagnostics/inference/constraints/recursiveJavaTypeWithStarProjection.test.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/recursiveJavaTypeWithStarProjection.test.antlrtree.txt @@ -65,6 +65,4 @@ File: recursiveJavaTypeWithStarProjection.test.kt - a1224dacf8b66b7395b3ecfc5c1d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/constraints/remainConstraintContainingTypeWithoutProjection.main.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/remainConstraintContainingTypeWithoutProjection.main.antlrtree.txt index 84be0521b..cea26c404 100644 --- a/grammar/testData/diagnostics/inference/constraints/remainConstraintContainingTypeWithoutProjection.main.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/remainConstraintContainingTypeWithoutProjection.main.antlrtree.txt @@ -227,6 +227,4 @@ File: remainConstraintContainingTypeWithoutProjection.main.kt - 4f134705c03e0876 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/constraints/returnLambdaFromLambda.antlrtree.txt b/grammar/testData/diagnostics/inference/constraints/returnLambdaFromLambda.antlrtree.txt index 5247e3f57..1fa0efd8c 100644 --- a/grammar/testData/diagnostics/inference/constraints/returnLambdaFromLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/constraints/returnLambdaFromLambda.antlrtree.txt @@ -660,6 +660,4 @@ File: returnLambdaFromLambda.kt - 64d3b42be8f788c5eafbd09451eb5e09 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/dependOnExpectedType.antlrtree.txt b/grammar/testData/diagnostics/inference/dependOnExpectedType.antlrtree.txt index 1dc583891..7b419a6d9 100644 --- a/grammar/testData/diagnostics/inference/dependOnExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/dependOnExpectedType.antlrtree.txt @@ -1,4 +1,5 @@ -File: dependOnExpectedType.kt - 62a05080cd1fc7d4dc157df623119038 +File: dependOnExpectedType.kt - d874b3564e6518526e9eb2f93e32dcd2 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/dependantOnVariance.antlrtree.txt b/grammar/testData/diagnostics/inference/dependantOnVariance.antlrtree.txt index b5b5612a8..d79497573 100644 --- a/grammar/testData/diagnostics/inference/dependantOnVariance.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/dependantOnVariance.antlrtree.txt @@ -1,5 +1,4 @@ -File: dependantOnVariance.kt - b9cb0d698a1eaf26aacc0c93b0b3e504 - NL("\n") +File: dependantOnVariance.kt - 46d9c34dfeb0388bce401bf7fed3bd56 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/inference/dependantOnVarianceNullable.antlrtree.txt b/grammar/testData/diagnostics/inference/dependantOnVarianceNullable.antlrtree.txt index 01eca2876..7fd5e3fc7 100644 --- a/grammar/testData/diagnostics/inference/dependantOnVarianceNullable.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/dependantOnVarianceNullable.antlrtree.txt @@ -1,4 +1,5 @@ -File: dependantOnVarianceNullable.kt - e95f645f8cd5e0220f8f4ce493aad374 +File: dependantOnVarianceNullable.kt - 0c79b42d9701d610f02f48397973167b + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/inference/discardInapplicableCandidateWithNotSatisfyingSelfType.antlrtree.txt b/grammar/testData/diagnostics/inference/discardInapplicableCandidateWithNotSatisfyingSelfType.antlrtree.txt new file mode 100644 index 000000000..c12154689 --- /dev/null +++ b/grammar/testData/diagnostics/inference/discardInapplicableCandidateWithNotSatisfyingSelfType.antlrtree.txt @@ -0,0 +1,219 @@ +File: discardInapplicableCandidateWithNotSatisfyingSelfType.kt - a48c364676b5dbc333f4a761a0339938 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("WithChildren") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WithChildren") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WithChildren") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WithChildren") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("withDescendants") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WithChildren") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + DOT(".") + simpleIdentifier + Identifier("withDescendants") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JvmName") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("foo") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("WithChildren") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("withDescendants") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/compatibilityResolveWhenVariableHasComplexIntersectionType.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/compatibilityResolveWhenVariableHasComplexIntersectionType.antlrtree.txt new file mode 100644 index 000000000..0037f9600 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/compatibilityResolveWhenVariableHasComplexIntersectionType.antlrtree.txt @@ -0,0 +1,927 @@ +File: compatibilityResolveWhenVariableHasComplexIntersectionType.kt - 063f2b6068ffdc50cc29dcd2d2719702 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Scope") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("greater") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Nested") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("greater") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("greater") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("OnlyOne") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("greater") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("greater") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("GoodOldCandidate") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("greater") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Nested") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("greater") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("greater") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/contravariance.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/contravariance.antlrtree.txt new file mode 100644 index 000000000..e88b9bdd2 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/contravariance.antlrtree.txt @@ -0,0 +1,199 @@ +File: contravariance.kt - dfa93c9b477dd80a04bb7fb9a8b7a522 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("expandMaskConditionsAndUpdateVariableNodes") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("validOffsets") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("expandMaskConditionsAndUpdateVariableNodes") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mapTo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mutableSetOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/covariance.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/covariance.antlrtree.txt new file mode 100644 index 000000000..3ffa32e30 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/covariance.antlrtree.txt @@ -0,0 +1,373 @@ +File: covariance.kt - 6f747ec0729d1133f83caf88d22495d4 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("KotlinSharedNativeCompilation") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KotlinMetadataCompilation") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KotlinCommonOptions") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("AbstractKotlinCompilation") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KotlinCommonOptions") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("KotlinCommonOptions") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("KotlinMetadataCompilation") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KotlinCommonOptions") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KotlinCompilation") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("KotlinCompilation") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KotlinCommonOptions") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("KotlinCommonCompilation") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KotlinMetadataCompilation") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KotlinMultiplatformCommonOptions") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("AbstractKotlinCompilation") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KotlinMultiplatformCommonOptions") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("KotlinMultiplatformCommonOptions") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KotlinCommonOptions") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("AbstractKotlinCompilation") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KotlinCommonOptions") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("KotlinCompilation") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("compilation") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KotlinSharedNativeCompilation") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("KotlinCommonCompilation") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461.antlrtree.txt new file mode 100644 index 000000000..35a182c87 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461.antlrtree.txt @@ -0,0 +1,220 @@ +File: kt45461.kt - 6b6e0139e9e391e907939efec3c6a972 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_10.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_10.antlrtree.txt new file mode 100644 index 000000000..4fae9cf33 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_10.antlrtree.txt @@ -0,0 +1,307 @@ +File: kt45461_10.kt - 9c17d71e513f3a8c09fba9df586974ca + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("L") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("N") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("N") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_11.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_11.antlrtree.txt new file mode 100644 index 000000000..ca4460f8a --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_11.antlrtree.txt @@ -0,0 +1,316 @@ +File: kt45461_11.kt - 661044acba2b42b283f689dbe4e05dc3 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("L") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("N") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("N") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_12.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_12.antlrtree.txt new file mode 100644 index 000000000..40a63755d --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_12.antlrtree.txt @@ -0,0 +1,282 @@ +File: kt45461_12.kt - d3a15721753a49748d6fd3cae965774e + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("L") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("N") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("N") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("N") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("N") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_13.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_13.antlrtree.txt new file mode 100644 index 000000000..6c97608f7 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_13.antlrtree.txt @@ -0,0 +1,312 @@ +File: kt45461_13.kt - d983461f4c43cf925848144f9ecaa861 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("L") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("N") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("N") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("N") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_14.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_14.antlrtree.txt new file mode 100644 index 000000000..4afe7a5db --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_14.antlrtree.txt @@ -0,0 +1,291 @@ +File: kt45461_14.kt - ccbec23ed4349d36ba306b9c7954fbb8 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_15.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_15.antlrtree.txt new file mode 100644 index 000000000..105215ecb --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_15.antlrtree.txt @@ -0,0 +1,306 @@ +File: kt45461_15.kt - 20290c9e0cea9cb9d95485fb444ca651 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_16.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_16.antlrtree.txt new file mode 100644 index 000000000..d636b3d9a --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_16.antlrtree.txt @@ -0,0 +1,310 @@ +File: kt45461_16.kt - bcdc97844ac069dc15dae8937a627a9f + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_17.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_17.antlrtree.txt new file mode 100644 index 000000000..40f76eb0e --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_17.antlrtree.txt @@ -0,0 +1,299 @@ +File: kt45461_17.kt - d2dfad297c7ab816d3bbd9b0661a1b28 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_18.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_18.antlrtree.txt new file mode 100644 index 000000000..a1d05c124 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_18.antlrtree.txt @@ -0,0 +1,296 @@ +File: kt45461_18.kt - d0ef8aad30de3a4dc67179e9ceb4510c + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("L") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("N") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("N") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_19.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_19.antlrtree.txt new file mode 100644 index 000000000..cb9328576 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_19.antlrtree.txt @@ -0,0 +1,330 @@ +File: kt45461_19.kt - 21e07d98e6d31dcb88e35ba4a0387ec3 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("O") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("L") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("N") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("N") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_2.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_2.antlrtree.txt new file mode 100644 index 000000000..c6cf473f6 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_2.antlrtree.txt @@ -0,0 +1,233 @@ +File: kt45461_2.kt - 2f3e5345027414cd9f4f99141c9a10cb + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_20.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_20.antlrtree.txt new file mode 100644 index 000000000..349b52325 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_20.antlrtree.txt @@ -0,0 +1,330 @@ +File: kt45461_20.kt - 80feb83561327f4b7527ec48bdc67876 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("In") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("O") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("L") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("N") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("N") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_21.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_21.antlrtree.txt new file mode 100644 index 000000000..9e4aa94bc --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_21.antlrtree.txt @@ -0,0 +1,308 @@ +File: kt45461_21.kt - 25e4d39efb2ff0198e2028b45e92be39 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("In") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("O") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_22.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_22.antlrtree.txt new file mode 100644 index 000000000..ebfef2840 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_22.antlrtree.txt @@ -0,0 +1,298 @@ +File: kt45461_22.kt - 6b4849bdf0f1f9103ccc7a55e16c50e5 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("O") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_23.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_23.antlrtree.txt new file mode 100644 index 000000000..4299e4c28 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_23.antlrtree.txt @@ -0,0 +1,306 @@ +File: kt45461_23.kt - 5187791b33f3d17d957bce22f4ca3fd8 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("O") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_24.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_24.antlrtree.txt new file mode 100644 index 000000000..f3fd9e1fd --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_24.antlrtree.txt @@ -0,0 +1,306 @@ +File: kt45461_24.kt - 58db8da683cfc279d426cdbc69f1f1da + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("O") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_25.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_25.antlrtree.txt new file mode 100644 index 000000000..d67fea7d2 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_25.antlrtree.txt @@ -0,0 +1,301 @@ +File: kt45461_25.kt - d3856959e176e327c35985c49e0abcb5 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("L") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("N") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("N") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_26.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_26.antlrtree.txt new file mode 100644 index 000000000..674cbc287 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_26.antlrtree.txt @@ -0,0 +1,350 @@ +File: kt45461_26.kt - 543704e37fc0d821e16c6e5c9fb1a101 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("L") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("N") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("N") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_27.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_27.antlrtree.txt new file mode 100644 index 000000000..9c357341c --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_27.antlrtree.txt @@ -0,0 +1,298 @@ +File: kt45461_27.kt - c6d55d69de705d7eb54080eb79707457 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("O") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_28.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_28.antlrtree.txt new file mode 100644 index 000000000..9149b4665 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_28.antlrtree.txt @@ -0,0 +1,293 @@ +File: kt45461_28.kt - 7b046897e569cf2f232bce10f09e287f + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("O") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_29.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_29.antlrtree.txt new file mode 100644 index 000000000..b45ba5dc2 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_29.antlrtree.txt @@ -0,0 +1,286 @@ +File: kt45461_29.kt - c3cca17c038be0815a2e99b4e727d0e1 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_3.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_3.antlrtree.txt new file mode 100644 index 000000000..9a72901d9 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_3.antlrtree.txt @@ -0,0 +1,233 @@ +File: kt45461_3.kt - 98e484f4f72de6df8cbf89f3ddbc4e40 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_30.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_30.antlrtree.txt new file mode 100644 index 000000000..444e7725e --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_30.antlrtree.txt @@ -0,0 +1,340 @@ +File: kt45461_30.kt - f6386789ff28940e97ebf06078e87542 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_31.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_31.antlrtree.txt new file mode 100644 index 000000000..924ece4e2 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_31.antlrtree.txt @@ -0,0 +1,324 @@ +File: kt45461_31.kt - 59a624d045c5da6530121a832e1534c9 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_32.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_32.antlrtree.txt new file mode 100644 index 000000000..e3ed892ee --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_32.antlrtree.txt @@ -0,0 +1,340 @@ +File: kt45461_32.kt - 9686856b753f24c75d62a456213b686a + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_33.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_33.antlrtree.txt new file mode 100644 index 000000000..8bb03511b --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_33.antlrtree.txt @@ -0,0 +1,340 @@ +File: kt45461_33.kt - 486135c8a574d04461b5fd04025dceed + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_34.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_34.antlrtree.txt new file mode 100644 index 000000000..0e9490c7e --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_34.antlrtree.txt @@ -0,0 +1,324 @@ +File: kt45461_34.kt - 93a4cec6d739cd2d9598c5d0c871a570 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_35.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_35.antlrtree.txt new file mode 100644 index 000000000..34146ada2 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_35.antlrtree.txt @@ -0,0 +1,438 @@ +File: kt45461_35.kt - ce1823ebf3a735da3fade741548e243b + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("O") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_35_Enabled.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_35_Enabled.antlrtree.txt new file mode 100644 index 000000000..9ad990a17 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_35_Enabled.antlrtree.txt @@ -0,0 +1,439 @@ +File: kt45461_35_Enabled.kt - 2fa776d2fe88fc45a51446071fe12ebd + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("O") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_4.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_4.antlrtree.txt new file mode 100644 index 000000000..4106c1761 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_4.antlrtree.txt @@ -0,0 +1,233 @@ +File: kt45461_4.kt - bf218c680c8001fbe7b86eda7acc65eb + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_5.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_5.antlrtree.txt new file mode 100644 index 000000000..6bc1a4764 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_5.antlrtree.txt @@ -0,0 +1,257 @@ +File: kt45461_5.kt - c7b0aa0658069ec277b9049fffe79f5d + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("L") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("N") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("N") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_6.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_6.antlrtree.txt new file mode 100644 index 000000000..91505eedc --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_6.antlrtree.txt @@ -0,0 +1,257 @@ +File: kt45461_6.kt - 08a1f93c5a87b9948a9caaa213a46efc + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("L") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("N") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("N") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_7.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_7.antlrtree.txt new file mode 100644 index 000000000..47b6440f4 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_7.antlrtree.txt @@ -0,0 +1,257 @@ +File: kt45461_7.kt - 14b34a9951802ca62fd3bba28f9ea2ef + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("L") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("N") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("N") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_8.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_8.antlrtree.txt new file mode 100644 index 000000000..ef35130bc --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_8.antlrtree.txt @@ -0,0 +1,292 @@ +File: kt45461_8.kt - 4c98eb8808f9314038d3e5eebfeff9d2 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("L") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("N") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("N") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_9.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_9.antlrtree.txt new file mode 100644 index 000000000..490c05b76 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt45461_9.antlrtree.txt @@ -0,0 +1,302 @@ +File: kt45461_9.kt - 36a93184920bc15509e3beef0aa786c4 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("L") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("N") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("N") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48765.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48765.antlrtree.txt new file mode 100644 index 000000000..01c4ce3cc --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48765.antlrtree.txt @@ -0,0 +1,504 @@ +File: kt48765.kt - c7d84e098598be84ef2e97173b1f478c + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T1") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T2") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T1") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T2") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("x2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T1") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T2") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T2") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("D") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("D") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("10.5") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935.antlrtree.txt new file mode 100644 index 000000000..4fecea273 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935.antlrtree.txt @@ -0,0 +1,209 @@ +File: kt48935.kt - bb1d70878264162e69df730c4702a035 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Base") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DoesNotImplementBase") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("exampleGenericFunction") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("func") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("V") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("func") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DoesNotImplementBase") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("exampleGenericFunction") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("func") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_2.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_2.antlrtree.txt new file mode 100644 index 000000000..d90590c23 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_2.antlrtree.txt @@ -0,0 +1,208 @@ +File: kt48935_2.kt - 8f4e920e8e1e14f4e2a67d5db8b45c7a + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Base") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("DoesNotImplementBase") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("exampleGenericFunction") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("func") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("V") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("func") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DoesNotImplementBase") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("exampleGenericFunction") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("func") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_3.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_3.antlrtree.txt new file mode 100644 index 000000000..78bb13c81 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_3.antlrtree.txt @@ -0,0 +1,214 @@ +File: kt48935_3.kt - b78163af9656863b84f90b21e5b22dec + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("DoesNotImplementBase") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("exampleGenericFunction") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("func") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("V") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("func") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DoesNotImplementBase") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("exampleGenericFunction") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("func") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_4.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_4.antlrtree.txt new file mode 100644 index 000000000..20163606f --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_4.antlrtree.txt @@ -0,0 +1,210 @@ +File: kt48935_4.kt - 771df9ade4d86816cb0f5d4e5d6db41e + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DoesNotImplementBase") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("exampleGenericFunction") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("func") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("V") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("func") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DoesNotImplementBase") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("exampleGenericFunction") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("func") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_5.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_5.antlrtree.txt new file mode 100644 index 000000000..b5fc74a29 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_5.antlrtree.txt @@ -0,0 +1,208 @@ +File: kt48935_5.kt - 7777e817b7f4060f1c1026e5533dc4b4 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Base") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DoesNotImplementBase") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("exampleGenericFunction") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("func") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("V") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("func") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DoesNotImplementBase") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("exampleGenericFunction") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("func") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_6.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_6.antlrtree.txt new file mode 100644 index 000000000..e50d8e79e --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48935_6.antlrtree.txt @@ -0,0 +1,212 @@ +File: kt48935_6.kt - bd7f24fc30a636ea6418255f809a5d8e + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Base") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("DoesNotImplementBase") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("exampleGenericFunction") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("func") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("V") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("func") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DoesNotImplementBase") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("exampleGenericFunction") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("func") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48987.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48987.antlrtree.txt new file mode 100644 index 000000000..1079198a9 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt48987.antlrtree.txt @@ -0,0 +1,257 @@ +File: kt48987.kt - 202fda47164faac15694f361d8c0087f + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("range1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("range1") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RANGLE(">") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("range1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("joinToString") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RCURL("}") + semis + NL("\n") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("ClassCastException") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt49661.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt49661.antlrtree.txt new file mode 100644 index 000000000..3a20a1ba2 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt49661.antlrtree.txt @@ -0,0 +1,260 @@ +File: kt49661.kt - b05948d9c19ac524fc22c4658f08bcbd + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Foo") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + RANGLE(">") + simpleIdentifier + Identifier("g") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + quest + QUEST_WS("? ") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("block") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("g") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt51016.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt51016.antlrtree.txt new file mode 100644 index 000000000..240f843a9 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt51016.antlrtree.txt @@ -0,0 +1,384 @@ +File: kt51016.kt - 44a99cdb04468540c18409f9a7fe229f + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + quest + QUEST_NO_WS("?") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt52364.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt52364.antlrtree.txt new file mode 100644 index 000000000..c47f325ac --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt52364.antlrtree.txt @@ -0,0 +1,290 @@ +File: kt52364.kt - 74ae307561448bc7a767555bc8270736 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KProperty") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("FieldStyle2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("index") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Type") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("getProperty") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Type") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("thisRef") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + PROPERTY("property") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KProperty") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FieldStyle2") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("FieldStyle2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("thisRef") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getProperty") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt52393.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt52393.antlrtree.txt new file mode 100644 index 000000000..1b38aa0b7 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt52393.antlrtree.txt @@ -0,0 +1,454 @@ +File: kt52393.kt - 8cd8410d6096b7a409a2f75c4782484d + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Wrapper") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("WrapperFunctions") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Wrapper") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("greaterEq") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Wrapper") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("greaterEq") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Wrapper") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("wrapper") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Wrapper") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("number") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + NL("\n") + NL("\n") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("WrapperFunctions") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("wrapper") + simpleIdentifier + Identifier("greaterEq") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("number") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt52431.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt52431.antlrtree.txt new file mode 100644 index 000000000..b8e276264 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/kt52431.antlrtree.txt @@ -0,0 +1,364 @@ +File: kt52431.kt - ed0641724b555f34dde6eb680673ea40 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Expression") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ExpressionWithColumnType") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Expression") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Column") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ExpressionWithColumnType") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ExpressionWithColumnType") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("less") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Expression") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("less") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Expression") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Column") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + quest + QUEST_NO_WS("?") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + simpleIdentifier + Identifier("less") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/nullableEmptyIntersection.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/nullableEmptyIntersection.antlrtree.txt new file mode 100644 index 000000000..952a7832f --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/nullableEmptyIntersection.antlrtree.txt @@ -0,0 +1,210 @@ +File: nullableEmptyIntersection.kt - 51b71313383726bc344959bb732d8cd5 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + simpleIdentifier + Identifier("g") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("block") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("g") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/recursiveTypeParameters.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/recursiveTypeParameters.antlrtree.txt new file mode 100644 index 000000000..67109c1d9 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/recursiveTypeParameters.antlrtree.txt @@ -0,0 +1,185 @@ +File: recursiveTypeParameters.kt - 82cb3005a6253cbb2bfff797fd58cb66 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("java") + DOT(".") + simpleIdentifier + Identifier("util") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Enum") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("enumMapOf") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("pairs") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("EnumMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("EnumMap") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mapOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + MULT("*") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("pairs") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/selectFromCovariantAndContravariantTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/selectFromCovariantAndContravariantTypes.antlrtree.txt new file mode 100644 index 000000000..d72baeaae --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/selectFromCovariantAndContravariantTypes.antlrtree.txt @@ -0,0 +1,515 @@ +File: selectFromCovariantAndContravariantTypes.kt - 022b0741e98002517efcf9bbc7882a85 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("In") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("genericIn") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("genericOut") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("genericIn") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("genericOut") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/substitutingSuperTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/substitutingSuperTypes.antlrtree.txt new file mode 100644 index 000000000..4743297b4 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/substitutingSuperTypes.antlrtree.txt @@ -0,0 +1,352 @@ +File: substitutingSuperTypes.kt - 1335ced8842b868ca55881b8759f73cd + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/emptyIntersectionTypes/substitutingSuperTypes2.antlrtree.txt b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/substitutingSuperTypes2.antlrtree.txt new file mode 100644 index 000000000..baf531758 --- /dev/null +++ b/grammar/testData/diagnostics/inference/emptyIntersectionTypes/substitutingSuperTypes2.antlrtree.txt @@ -0,0 +1,416 @@ +File: substitutingSuperTypes2.kt - 6a99cd91b0e36746a0ccc66385e6a4e3 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("takeFoo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("foo") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Out") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("P") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("B2") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("C2") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("foo") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("takeFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/equalitySubstitutionInsideNonInvariantType.antlrtree.txt b/grammar/testData/diagnostics/inference/equalitySubstitutionInsideNonInvariantType.antlrtree.txt index befc421cf..665fef84c 100644 --- a/grammar/testData/diagnostics/inference/equalitySubstitutionInsideNonInvariantType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/equalitySubstitutionInsideNonInvariantType.antlrtree.txt @@ -413,6 +413,4 @@ File: equalitySubstitutionInsideNonInvariantType.kt - 8cb05a1bc1238dc44097eaad70 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/errorsOnImplicitInvokeInSimpleCall.antlrtree.txt b/grammar/testData/diagnostics/inference/errorsOnImplicitInvokeInSimpleCall.antlrtree.txt index 346be6569..e7d25357c 100644 --- a/grammar/testData/diagnostics/inference/errorsOnImplicitInvokeInSimpleCall.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/errorsOnImplicitInvokeInSimpleCall.antlrtree.txt @@ -127,6 +127,4 @@ File: errorsOnImplicitInvokeInSimpleCall.kt - da2d334887bdebce1db2a5772f3772b6 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/expectedTypeAdditionalTest.antlrtree.txt b/grammar/testData/diagnostics/inference/expectedTypeAdditionalTest.antlrtree.txt index aa5b3c5de..fce2179e8 100644 --- a/grammar/testData/diagnostics/inference/expectedTypeAdditionalTest.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/expectedTypeAdditionalTest.antlrtree.txt @@ -1,5 +1,4 @@ -File: expectedTypeAdditionalTest.kt - c04930abcc5810c2ed47f8fab9efaf5d - NL("\n") +File: expectedTypeAdditionalTest.kt - 15838b1bebe3fd729370c7b75e8b2386 NL("\n") NL("\n") packageHeader @@ -302,6 +301,4 @@ File: expectedTypeAdditionalTest.kt - c04930abcc5810c2ed47f8fab9efaf5d simpleIdentifier Identifier("Number") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/expectedTypeDoubleReceiver.antlrtree.txt b/grammar/testData/diagnostics/inference/expectedTypeDoubleReceiver.antlrtree.txt index 17eea268d..655265b67 100644 --- a/grammar/testData/diagnostics/inference/expectedTypeDoubleReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/expectedTypeDoubleReceiver.antlrtree.txt @@ -1,5 +1,4 @@ -File: expectedTypeDoubleReceiver.kt - f0bb7de555a6950aa9c854459428417e - NL("\n") +File: expectedTypeDoubleReceiver.kt - 0a1de5647521fd187a650f39d636ef94 NL("\n") NL("\n") packageHeader @@ -537,7 +536,4 @@ File: expectedTypeDoubleReceiver.kt - f0bb7de555a6950aa9c854459428417e simpleIdentifier Identifier("A") NL("\n") - NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/expectedTypeFromCast.antlrtree.txt b/grammar/testData/diagnostics/inference/expectedTypeFromCast.antlrtree.txt index ebd810d58..5e89db1b5 100644 --- a/grammar/testData/diagnostics/inference/expectedTypeFromCast.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/expectedTypeFromCast.antlrtree.txt @@ -1,5 +1,4 @@ -File: expectedTypeFromCast.kt - 869fcbb1fc70787635c8cb542fb2c449 - NL("\n") +File: expectedTypeFromCast.kt - 780694c6b2d0b2a68b53009e33c86634 NL("\n") NL("\n") packageHeader @@ -492,6 +491,4 @@ File: expectedTypeFromCast.kt - 869fcbb1fc70787635c8cb542fb2c449 simpleIdentifier Identifier("String") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/expectedTypeFromCastComplexExpression.antlrtree.txt b/grammar/testData/diagnostics/inference/expectedTypeFromCastComplexExpression.antlrtree.txt index add14ec9a..e3d6ca33e 100644 --- a/grammar/testData/diagnostics/inference/expectedTypeFromCastComplexExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/expectedTypeFromCastComplexExpression.antlrtree.txt @@ -1,4 +1,4 @@ -File: expectedTypeFromCastComplexExpression.kt - e28eb79dc30bc780c37a60652c4c3120 +File: expectedTypeFromCastComplexExpression.kt - 54c382103bcdd1c4ae00988a7eeb0882 NL("\n") NL("\n") NL("\n") @@ -284,7 +284,4 @@ File: expectedTypeFromCastComplexExpression.kt - e28eb79dc30bc780c37a60652c4c312 simpleIdentifier Identifier("String") NL("\n") - NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/expectedTypeFromCastParenthesized.antlrtree.txt b/grammar/testData/diagnostics/inference/expectedTypeFromCastParenthesized.antlrtree.txt index 544500f44..76227633b 100644 --- a/grammar/testData/diagnostics/inference/expectedTypeFromCastParenthesized.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/expectedTypeFromCastParenthesized.antlrtree.txt @@ -643,6 +643,4 @@ File: expectedTypeFromCastParenthesized.kt - 9469a00a02c38618bb590255174e929f simpleUserType simpleIdentifier Identifier("String") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/expectedTypeWithGenerics.antlrtree.txt b/grammar/testData/diagnostics/inference/expectedTypeWithGenerics.antlrtree.txt index 481d8340d..369442c11 100644 --- a/grammar/testData/diagnostics/inference/expectedTypeWithGenerics.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/expectedTypeWithGenerics.antlrtree.txt @@ -1,5 +1,4 @@ -File: expectedTypeWithGenerics.kt - 2a838824a41e74a516d353340f5b1bf8 - NL("\n") +File: expectedTypeWithGenerics.kt - bec2a7b30090a3ded4f9c55a315e0939 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/expectedTypeWithGenericsSafeCalls.antlrtree.txt b/grammar/testData/diagnostics/inference/expectedTypeWithGenericsSafeCalls.antlrtree.txt new file mode 100644 index 000000000..e64731d4b --- /dev/null +++ b/grammar/testData/diagnostics/inference/expectedTypeWithGenericsSafeCalls.antlrtree.txt @@ -0,0 +1,150 @@ +File: expectedTypeWithGenericsSafeCalls.kt - 7c791605b817ea5b756f77f90f204995 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("X") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/fixVariableToNothing.antlrtree.txt b/grammar/testData/diagnostics/inference/fixVariableToNothing.antlrtree.txt index d602d5b87..5b4edf62b 100644 --- a/grammar/testData/diagnostics/inference/fixVariableToNothing.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/fixVariableToNothing.antlrtree.txt @@ -1,5 +1,4 @@ -File: fixVariableToNothing.kt - 1a56299162183b590b9a7480faad0878 - NL("\n") +File: fixVariableToNothing.kt - 5e1c0e20d611eab44a6ab099519695a9 NL("\n") packageHeader importList @@ -506,5 +505,5 @@ File: fixVariableToNothing.kt - 1a56299162183b590b9a7480faad0878 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/fixationOrderForProperConstraints.antlrtree.txt b/grammar/testData/diagnostics/inference/fixationOrderForProperConstraints.antlrtree.txt index fa1b013fb..d800d79d8 100644 --- a/grammar/testData/diagnostics/inference/fixationOrderForProperConstraints.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/fixationOrderForProperConstraints.antlrtree.txt @@ -1,4 +1,4 @@ -File: fixationOrderForProperConstraints.kt - 6d97b9e66be5e89217a85e82346ef81a +File: fixationOrderForProperConstraints.kt - e72d3e1c0d678b9d63879ba01fa269b6 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/functionPlaceholderError.antlrtree.txt b/grammar/testData/diagnostics/inference/functionPlaceholderError.antlrtree.txt index 59631174b..a3569857d 100644 --- a/grammar/testData/diagnostics/inference/functionPlaceholderError.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/functionPlaceholderError.antlrtree.txt @@ -1,5 +1,4 @@ -File: functionPlaceholderError.kt - 3e7677bbc6c0ec894fca92a5da2edc42 - NL("\n") +File: functionPlaceholderError.kt - bbd00514d33e9c4ad02836ad34d2d146 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/genericAssignmentOperator.antlrtree.txt b/grammar/testData/diagnostics/inference/genericAssignmentOperator.antlrtree.txt index 827718590..54389498e 100644 --- a/grammar/testData/diagnostics/inference/genericAssignmentOperator.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/genericAssignmentOperator.antlrtree.txt @@ -1,4 +1,5 @@ -File: genericAssignmentOperator.kt - 91dc3ba2cd0659701ddca60a8cfac6c6 +File: genericAssignmentOperator.kt - cb859210c796aba6988ecf35b2adce17 + NL("\n") packageHeader importList topLevelObject @@ -187,5 +188,5 @@ File: genericAssignmentOperator.kt - 91dc3ba2cd0659701ddca60a8cfac6c6 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/hasErrorInConstrainingTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/hasErrorInConstrainingTypes.antlrtree.txt index 489f9fdf5..26f25fd2a 100644 --- a/grammar/testData/diagnostics/inference/hasErrorInConstrainingTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/hasErrorInConstrainingTypes.antlrtree.txt @@ -1,4 +1,4 @@ -File: hasErrorInConstrainingTypes.kt - 89d3b3a94e733f2c6cbf436172de33ad +File: hasErrorInConstrainingTypes.kt - 319cbb608bce1a2694b3c75f2a902b24 packageHeader PACKAGE("package") identifier @@ -136,5 +136,5 @@ File: hasErrorInConstrainingTypes.kt - 89d3b3a94e733f2c6cbf436172de33ad NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/illegalUnderscoredTypeArgument.antlrtree.txt b/grammar/testData/diagnostics/inference/illegalUnderscoredTypeArgument.antlrtree.txt new file mode 100644 index 000000000..7712b3842 --- /dev/null +++ b/grammar/testData/diagnostics/inference/illegalUnderscoredTypeArgument.antlrtree.txt @@ -0,0 +1,227 @@ +File: illegalUnderscoredTypeArgument.kt - f26f6b562c77a3a710ba0c1c45880938 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/immutableArrayList.k.antlrtree.txt b/grammar/testData/diagnostics/inference/immutableArrayList.k.antlrtree.txt index df55bb7c7..2d395cac2 100644 --- a/grammar/testData/diagnostics/inference/immutableArrayList.k.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/immutableArrayList.k.antlrtree.txt @@ -127,6 +127,4 @@ File: immutableArrayList.k.kt - 7d073cf6362b2a02db902f862a569651 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/implicitInvokeExtensionWithFunctionalArgument.antlrtree.txt b/grammar/testData/diagnostics/inference/implicitInvokeExtensionWithFunctionalArgument.antlrtree.txt index 1c631c1a3..0b52d94ee 100644 --- a/grammar/testData/diagnostics/inference/implicitInvokeExtensionWithFunctionalArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/implicitInvokeExtensionWithFunctionalArgument.antlrtree.txt @@ -1,4 +1,4 @@ -File: implicitInvokeExtensionWithFunctionalArgument.kt - 989a92135bc8245881b152c816400a3b +File: implicitInvokeExtensionWithFunctionalArgument.kt - c555f580f259748ba5cc67ed123770cf NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/implicitInvokeInCompanionObjectWithFunctionalArgument.antlrtree.txt b/grammar/testData/diagnostics/inference/implicitInvokeInCompanionObjectWithFunctionalArgument.antlrtree.txt index 4b1446462..20ce92615 100644 --- a/grammar/testData/diagnostics/inference/implicitInvokeInCompanionObjectWithFunctionalArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/implicitInvokeInCompanionObjectWithFunctionalArgument.antlrtree.txt @@ -1,5 +1,4 @@ -File: implicitInvokeInCompanionObjectWithFunctionalArgument.kt - 2ef7291e4956e57d3e92fcc7b39fa726 - NL("\n") +File: implicitInvokeInCompanionObjectWithFunctionalArgument.kt - 3c61beb9c20d16f9e6c05f327b7c88af NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/implicitInvokeInObjectWithFunctionalArgument.antlrtree.txt b/grammar/testData/diagnostics/inference/implicitInvokeInObjectWithFunctionalArgument.antlrtree.txt index 5b680d4af..0ae40d6e8 100644 --- a/grammar/testData/diagnostics/inference/implicitInvokeInObjectWithFunctionalArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/implicitInvokeInObjectWithFunctionalArgument.antlrtree.txt @@ -1,5 +1,4 @@ -File: implicitInvokeInObjectWithFunctionalArgument.kt - 3c515342fe52dc661b587cd795d9ef60 - NL("\n") +File: implicitInvokeInObjectWithFunctionalArgument.kt - b106c682f931a2f02d59fb5f64e9af89 NL("\n") NL("\n") NL("\n") @@ -411,6 +410,4 @@ File: implicitInvokeInObjectWithFunctionalArgument.kt - 3c515342fe52dc661b587cd7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/implicitInvokeWithFunctionLiteralArgument.antlrtree.txt b/grammar/testData/diagnostics/inference/implicitInvokeWithFunctionLiteralArgument.antlrtree.txt index ffec53545..7b0c2c5ac 100644 --- a/grammar/testData/diagnostics/inference/implicitInvokeWithFunctionLiteralArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/implicitInvokeWithFunctionLiteralArgument.antlrtree.txt @@ -1,5 +1,4 @@ -File: implicitInvokeWithFunctionLiteralArgument.kt - 56cb86ef8ef2f64964f955b32ff4dd86 - NL("\n") +File: implicitInvokeWithFunctionLiteralArgument.kt - 8d99b4061f95ac5e9f326faa0675b3e8 NL("\n") NL("\n") NL("\n") @@ -1044,6 +1043,4 @@ File: implicitInvokeWithFunctionLiteralArgument.kt - 56cb86ef8ef2f64964f955b32ff semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/inferInFunctionLiterals.antlrtree.txt b/grammar/testData/diagnostics/inference/inferInFunctionLiterals.antlrtree.txt index 466bffc0e..d2ea8aa69 100644 --- a/grammar/testData/diagnostics/inference/inferInFunctionLiterals.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/inferInFunctionLiterals.antlrtree.txt @@ -1,4 +1,5 @@ -File: inferInFunctionLiterals.kt - 27984b9540a2de7ec15e14fcc34e757a +File: inferInFunctionLiterals.kt - a9b8dd8e19fc9e8b392f813874d49c6c + NL("\n") packageHeader PACKAGE("package") identifier @@ -331,5 +332,5 @@ File: inferInFunctionLiterals.kt - 27984b9540a2de7ec15e14fcc34e757a thisExpression THIS("this") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/inferInFunctionLiteralsWithReturn.antlrtree.txt b/grammar/testData/diagnostics/inference/inferInFunctionLiteralsWithReturn.antlrtree.txt index c39afe15a..1855d9b46 100644 --- a/grammar/testData/diagnostics/inference/inferInFunctionLiteralsWithReturn.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/inferInFunctionLiteralsWithReturn.antlrtree.txt @@ -1,4 +1,5 @@ -File: inferInFunctionLiteralsWithReturn.kt - 3c9bff351f88c5ae6b5feda62f1945b5 +File: inferInFunctionLiteralsWithReturn.kt - c46fe84fa9b80bce101467c6b5cd348b + NL("\n") packageHeader PACKAGE("package") identifier @@ -354,5 +355,5 @@ File: inferInFunctionLiteralsWithReturn.kt - 3c9bff351f88c5ae6b5feda62f1945b5 thisExpression THIS("this") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/intersectionTypeMultipleBoundsAsReceiver.antlrtree.txt b/grammar/testData/diagnostics/inference/intersectionTypeMultipleBoundsAsReceiver.antlrtree.txt index 360876e66..0125e372c 100644 --- a/grammar/testData/diagnostics/inference/intersectionTypeMultipleBoundsAsReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/intersectionTypeMultipleBoundsAsReceiver.antlrtree.txt @@ -325,6 +325,4 @@ File: intersectionTypeMultipleBoundsAsReceiver.kt - 0632f6e41e94317750d47e7ea58e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/intersectionTypesWithContravariantTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/intersectionTypesWithContravariantTypes.antlrtree.txt index a3a2e796c..bab585a83 100644 --- a/grammar/testData/diagnostics/inference/intersectionTypesWithContravariantTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/intersectionTypesWithContravariantTypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: intersectionTypesWithContravariantTypes.kt - 70ce5351863ecac8c0ce57cb16d03d48 +File: intersectionTypesWithContravariantTypes.kt - 06dc965ca0baf12e23d8068a07dc5ceb + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/intersectionWithEnum.antlrtree.txt b/grammar/testData/diagnostics/inference/intersectionWithEnum.antlrtree.txt index 2c8d0bc51..b843fc7b5 100644 --- a/grammar/testData/diagnostics/inference/intersectionWithEnum.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/intersectionWithEnum.antlrtree.txt @@ -632,6 +632,4 @@ File: intersectionWithEnum.kt - 6dd84f4da835411cb21462a92e749566 Identifier("B") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/invokeLambdaAsFunction.antlrtree.txt b/grammar/testData/diagnostics/inference/invokeLambdaAsFunction.antlrtree.txt index f2c118498..38e0fa860 100644 --- a/grammar/testData/diagnostics/inference/invokeLambdaAsFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/invokeLambdaAsFunction.antlrtree.txt @@ -245,6 +245,4 @@ File: invokeLambdaAsFunction.kt - 127f7f106d376e563c3a331831e946bd literalConstant IntegerLiteral("1") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/kt11963.antlrtree.txt b/grammar/testData/diagnostics/inference/kt11963.antlrtree.txt index 838795249..e06d93ecf 100644 --- a/grammar/testData/diagnostics/inference/kt11963.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt11963.antlrtree.txt @@ -35,6 +35,4 @@ File: kt11963.kt - 72af35845d2e92ecaf7133748f71b6c8 variableDeclaration simpleIdentifier Identifier("abc") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/kt12399.antlrtree.txt b/grammar/testData/diagnostics/inference/kt12399.antlrtree.txt index 223b5f132..c6925794a 100644 --- a/grammar/testData/diagnostics/inference/kt12399.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt12399.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt12399.kt - 04a84662aaefba195d53cc1d323a4da7 +File: kt12399.kt - 048aa4a0e11d0878882d56eb031caff5 packageHeader importList topLevelObject @@ -89,5 +89,5 @@ File: kt12399.kt - 04a84662aaefba195d53cc1d323a4da7 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/kt1293.antlrtree.txt b/grammar/testData/diagnostics/inference/kt1293.antlrtree.txt index 99d366d65..c56bccb41 100644 --- a/grammar/testData/diagnostics/inference/kt1293.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt1293.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt1293.kt - afdd4cd68274cbd08844531173e47a89 - NL("\n") +File: kt1293.kt - d8f46178dddaf5f496e6d8ac143fab68 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/kt28598.antlrtree.txt b/grammar/testData/diagnostics/inference/kt28598.antlrtree.txt index 0700e5906..8ec22ff37 100644 --- a/grammar/testData/diagnostics/inference/kt28598.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt28598.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt28598.kt - dfa479ed315f34be5324afb6501cadc1 - NL("\n") +File: kt28598.kt - 079d97aa0205a936c3a87942f3757df4 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/kt28654.antlrtree.txt b/grammar/testData/diagnostics/inference/kt28654.antlrtree.txt index 1c47f3f16..7e90081a5 100644 --- a/grammar/testData/diagnostics/inference/kt28654.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt28654.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt28654.kt - 030d39cc5c69dd389f452d2be6936af1 - NL("\n") +File: kt28654.kt - 71a52cbb45d72d01fa9dd1c70f13aef8 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/kt30405.antlrtree.txt b/grammar/testData/diagnostics/inference/kt30405.antlrtree.txt index 243f1c269..bf8d9d209 100644 --- a/grammar/testData/diagnostics/inference/kt30405.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt30405.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt30405.kt - 61ea77057369cd552d467b0f206aa868 - NL("\n") +File: kt30405.kt - b38cb561454b69fe5c90219928fd2ba4 NL("\n") NL("\n") NL("\n") @@ -314,5 +313,5 @@ File: kt30405.kt - 61ea77057369cd552d467b0f206aa868 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/kt3184.antlrtree.txt b/grammar/testData/diagnostics/inference/kt3184.antlrtree.txt index 3bbe95bde..06e786862 100644 --- a/grammar/testData/diagnostics/inference/kt3184.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt3184.antlrtree.txt @@ -1036,6 +1036,4 @@ File: kt3184.kt - 6175c5f8412cd3ea70cfc27f6490cff0 simpleIdentifier Identifier("message") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/kt32196.antlrtree.txt b/grammar/testData/diagnostics/inference/kt32196.antlrtree.txt index af6de1c3b..171deea99 100644 --- a/grammar/testData/diagnostics/inference/kt32196.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt32196.antlrtree.txt @@ -217,6 +217,4 @@ File: kt32196.kt - bb7038df6806b471a197e39b68b12ee8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/kt35702.antlrtree.txt b/grammar/testData/diagnostics/inference/kt35702.antlrtree.txt index 6b3b7aad2..cde9902a0 100644 --- a/grammar/testData/diagnostics/inference/kt35702.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt35702.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt35702.kt - ed2dbe78e3e85988274747dcb7bc525e - NL("\n") +File: kt35702.kt - b75b85e53cf4040a234c549666601a4b NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/kt36819.antlrtree.txt b/grammar/testData/diagnostics/inference/kt36819.antlrtree.txt index 75083074d..aa728c505 100644 --- a/grammar/testData/diagnostics/inference/kt36819.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt36819.antlrtree.txt @@ -1200,6 +1200,4 @@ File: kt36819.kt - b06a4334a5d5039f0c76ed2a8a6437f7 RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/kt40396.antlrtree.txt b/grammar/testData/diagnostics/inference/kt40396.antlrtree.txt index ecc5e1d66..7b27a0d43 100644 --- a/grammar/testData/diagnostics/inference/kt40396.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt40396.antlrtree.txt @@ -220,6 +220,4 @@ File: kt40396.kt - f16f9bb2d93002798e585923a188b589 RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/kt46515.antlrtree.txt b/grammar/testData/diagnostics/inference/kt46515.antlrtree.txt new file mode 100644 index 000000000..b8a79e0a8 --- /dev/null +++ b/grammar/testData/diagnostics/inference/kt46515.antlrtree.txt @@ -0,0 +1,139 @@ +File: kt46515.kt - 02f773103364206bf64839259ccb5dcf + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("maxOf") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/kt47316.main.antlrtree.txt b/grammar/testData/diagnostics/inference/kt47316.main.antlrtree.txt new file mode 100644 index 000000000..d93e07123 --- /dev/null +++ b/grammar/testData/diagnostics/inference/kt47316.main.antlrtree.txt @@ -0,0 +1,281 @@ +File: kt47316.main.kt - 856c5296d9a86a6b5b9b349a7e0f389c + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("asFsdAddress") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("state") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("state") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("state") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("GoBuildingRunningState") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("state") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("buildingWorkingDirectory") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("asFsdAddress") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/kt49658.antlrtree.txt b/grammar/testData/diagnostics/inference/kt49658.antlrtree.txt new file mode 100644 index 000000000..30be5f619 --- /dev/null +++ b/grammar/testData/diagnostics/inference/kt49658.antlrtree.txt @@ -0,0 +1,473 @@ +File: kt49658.kt - 0c75c5a07e4e301f17288ec21e351a3d + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("doTheMapThing1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("elements") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("flatMap") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Yeah") + QUOTE_CLOSE(""") + RPAREN(")") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("doTheMapThing2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("elements") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("flatMap") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Yeah") + QUOTE_CLOSE(""") + RPAREN(")") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/kt49658Strict.antlrtree.txt b/grammar/testData/diagnostics/inference/kt49658Strict.antlrtree.txt new file mode 100644 index 000000000..db847d6d1 --- /dev/null +++ b/grammar/testData/diagnostics/inference/kt49658Strict.antlrtree.txt @@ -0,0 +1,474 @@ +File: kt49658Strict.kt - 9e7d19fc506f752fd236dc9fcbaca842 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("doTheMapThing1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("elements") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("flatMap") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Yeah") + QUOTE_CLOSE(""") + RPAREN(")") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("doTheMapThing2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("elements") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("elements") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("flatMap") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Yeah") + QUOTE_CLOSE(""") + RPAREN(")") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/kt49961.antlrtree.txt b/grammar/testData/diagnostics/inference/kt49961.antlrtree.txt new file mode 100644 index 000000000..536df910e --- /dev/null +++ b/grammar/testData/diagnostics/inference/kt49961.antlrtree.txt @@ -0,0 +1,179 @@ +File: kt49961.kt - d284ee993cee7fe9beb51345e63a2a8f + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Xyz") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("x") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + collectionLiteral + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RSQUARE("]") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("XYZ") + semis + NL("\n") + RCURL("}") + NL("\n") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/kt6175.antlrtree.txt b/grammar/testData/diagnostics/inference/kt6175.antlrtree.txt index 0b6675fc4..cfa96ecbb 100644 --- a/grammar/testData/diagnostics/inference/kt6175.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/kt6175.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt6175.kt - 11068d75daf7024a164694e6ab865e60 - NL("\n") +File: kt6175.kt - 85ce45a8f2d192e6194b5c63d30d35d7 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/lambdaInValInitializerWithAnonymousFunctions.antlrtree.txt b/grammar/testData/diagnostics/inference/lambdaInValInitializerWithAnonymousFunctions.antlrtree.txt index 4521062d7..192583fff 100644 --- a/grammar/testData/diagnostics/inference/lambdaInValInitializerWithAnonymousFunctions.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/lambdaInValInitializerWithAnonymousFunctions.antlrtree.txt @@ -296,6 +296,4 @@ File: lambdaInValInitializerWithAnonymousFunctions.kt - 789464f63ecd76d99661872d LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/listConstructor.antlrtree.txt b/grammar/testData/diagnostics/inference/listConstructor.antlrtree.txt index 61390ec9c..9fcb2e63b 100644 --- a/grammar/testData/diagnostics/inference/listConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/listConstructor.antlrtree.txt @@ -1,4 +1,5 @@ -File: listConstructor.kt - 563a434c9e7a884b0117385e60c55d20 +File: listConstructor.kt - 252459040bd210730876c01aaddd5e34 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/mostSpecificAfterInference.antlrtree.txt b/grammar/testData/diagnostics/inference/mostSpecificAfterInference.antlrtree.txt index 08f52f064..25e3bbe7e 100644 --- a/grammar/testData/diagnostics/inference/mostSpecificAfterInference.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/mostSpecificAfterInference.antlrtree.txt @@ -1,4 +1,5 @@ -File: mostSpecificAfterInference.kt - 59c0f9947cded44cf7ddd4c4f6701775 +File: mostSpecificAfterInference.kt - 977b090818e273873156da573b641f81 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/nestedCalls/binaryExpressions.antlrtree.txt b/grammar/testData/diagnostics/inference/nestedCalls/binaryExpressions.antlrtree.txt index 301a4df9b..3d938d9a4 100644 --- a/grammar/testData/diagnostics/inference/nestedCalls/binaryExpressions.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nestedCalls/binaryExpressions.antlrtree.txt @@ -1,5 +1,4 @@ -File: binaryExpressions.kt - 219135bd9dc58f2254eee045be18add9 - NL("\n") +File: binaryExpressions.kt - 8b5fad2353ae53ac5bf758fb27ed0093 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/inference/nestedCalls/checkTypesForQualifiedProperties.antlrtree.txt b/grammar/testData/diagnostics/inference/nestedCalls/checkTypesForQualifiedProperties.antlrtree.txt index deabb8446..0d08ae331 100644 --- a/grammar/testData/diagnostics/inference/nestedCalls/checkTypesForQualifiedProperties.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nestedCalls/checkTypesForQualifiedProperties.antlrtree.txt @@ -156,6 +156,4 @@ File: checkTypesForQualifiedProperties.kt - 389288b398f8dc59095c175fe65e1702 LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/nestedCalls/completeNestedCallsForArraySetExpression.antlrtree.txt b/grammar/testData/diagnostics/inference/nestedCalls/completeNestedCallsForArraySetExpression.antlrtree.txt index a61b97816..2a5e5b7cd 100644 --- a/grammar/testData/diagnostics/inference/nestedCalls/completeNestedCallsForArraySetExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nestedCalls/completeNestedCallsForArraySetExpression.antlrtree.txt @@ -336,6 +336,4 @@ File: completeNestedCallsForArraySetExpression.kt - f5df6ede68b18bfdf8ba0bc2b353 simpleIdentifier VALUE("value") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/nestedCalls/completeNestedCallsInference.antlrtree.txt b/grammar/testData/diagnostics/inference/nestedCalls/completeNestedCallsInference.antlrtree.txt index 6ecb0a49c..7014ec2ae 100644 --- a/grammar/testData/diagnostics/inference/nestedCalls/completeNestedCallsInference.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nestedCalls/completeNestedCallsInference.antlrtree.txt @@ -451,6 +451,4 @@ File: completeNestedCallsInference.kt - 638305b78306b0a86a9c31d1a0058682 simpleIdentifier Identifier("B") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/nestedCalls/completeNestedForVariableAsFunctionCall.antlrtree.txt b/grammar/testData/diagnostics/inference/nestedCalls/completeNestedForVariableAsFunctionCall.antlrtree.txt index d70b796f9..7d41a566e 100644 --- a/grammar/testData/diagnostics/inference/nestedCalls/completeNestedForVariableAsFunctionCall.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nestedCalls/completeNestedForVariableAsFunctionCall.antlrtree.txt @@ -1,4 +1,5 @@ -File: completeNestedForVariableAsFunctionCall.kt - be86f47f9510bc63066aecea03a7c4ca +File: completeNestedForVariableAsFunctionCall.kt - 6c051697b50a60e10a8830d7cde51b06 + NL("\n") packageHeader PACKAGE("package") identifier @@ -365,5 +366,5 @@ File: completeNestedForVariableAsFunctionCall.kt - be86f47f9510bc63066aecea03a7c NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/nestedCalls/externalTypeParameter.antlrtree.txt b/grammar/testData/diagnostics/inference/nestedCalls/externalTypeParameter.antlrtree.txt index 034d01cb3..d21b880da 100644 --- a/grammar/testData/diagnostics/inference/nestedCalls/externalTypeParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nestedCalls/externalTypeParameter.antlrtree.txt @@ -1,4 +1,5 @@ -File: externalTypeParameter.kt - e9d199b844d4387ca0f97581f4780149 +File: externalTypeParameter.kt - f3f131b612959166498db291859c9127 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/nestedCalls/kt3395.antlrtree.txt b/grammar/testData/diagnostics/inference/nestedCalls/kt3395.antlrtree.txt index 11c6ae099..fe71c21ca 100644 --- a/grammar/testData/diagnostics/inference/nestedCalls/kt3395.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nestedCalls/kt3395.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt3395.kt - 970b4dc6e90eca37bbb53d3a2a75adf8 +File: kt3395.kt - e9fcc43646d38484a92b9419897ed4f6 + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -1021,5 +1022,4 @@ File: kt3395.kt - 970b4dc6e90eca37bbb53d3a2a75adf8 RCURL("}") semis NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/nestedCalls/kt3461checkTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/nestedCalls/kt3461checkTypes.antlrtree.txt index dbdea4152..072b1eef0 100644 --- a/grammar/testData/diagnostics/inference/nestedCalls/kt3461checkTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nestedCalls/kt3461checkTypes.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt3461checkTypes.kt - 54d525f557e3b1dd790662f9306d4cbd +File: kt3461checkTypes.kt - db9d0a92c4fee475f91d08f0207b0237 NL("\n") packageHeader PACKAGE("package") @@ -261,5 +261,5 @@ File: kt3461checkTypes.kt - 54d525f557e3b1dd790662f9306d4cbd NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/nestedCalls/makeNullableIfSafeCall.antlrtree.txt b/grammar/testData/diagnostics/inference/nestedCalls/makeNullableIfSafeCall.antlrtree.txt index 5e9afc390..cd2093d3b 100644 --- a/grammar/testData/diagnostics/inference/nestedCalls/makeNullableIfSafeCall.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nestedCalls/makeNullableIfSafeCall.antlrtree.txt @@ -1,4 +1,4 @@ -File: makeNullableIfSafeCall.kt - 5808aef421cbad41b1ad1c055f698378 +File: makeNullableIfSafeCall.kt - 3efa395d59617fe6df97427ab510e522 packageHeader PACKAGE("package") identifier @@ -1141,5 +1141,5 @@ File: makeNullableIfSafeCall.kt - 5808aef421cbad41b1ad1c055f698378 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/nestedCalls/nontrivialCallExpression.antlrtree.txt b/grammar/testData/diagnostics/inference/nestedCalls/nontrivialCallExpression.antlrtree.txt index 20551663c..ab64c44e8 100644 --- a/grammar/testData/diagnostics/inference/nestedCalls/nontrivialCallExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nestedCalls/nontrivialCallExpression.antlrtree.txt @@ -1,4 +1,5 @@ -File: nontrivialCallExpression.kt - 84e766cf413c2134d3b70e54d87414d5 +File: nontrivialCallExpression.kt - 3ac95b4fe8a55df348c125d82d063625 + NL("\n") packageHeader PACKAGE("package") identifier @@ -691,5 +692,5 @@ File: nontrivialCallExpression.kt - 84e766cf413c2134d3b70e54d87414d5 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/nestedCalls/preferNothingToBound.antlrtree.txt b/grammar/testData/diagnostics/inference/nestedCalls/preferNothingToBound.antlrtree.txt index ace499aee..b5aaadb3c 100644 --- a/grammar/testData/diagnostics/inference/nestedCalls/preferNothingToBound.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nestedCalls/preferNothingToBound.antlrtree.txt @@ -108,6 +108,4 @@ File: preferNothingToBound.kt - 12b2c6c80643ca75e4ffc4d82d3f9c0b NullLiteral("null") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/noInformationForParameter.antlrtree.txt b/grammar/testData/diagnostics/inference/noInformationForParameter.antlrtree.txt index 5be34d0b9..64180645b 100644 --- a/grammar/testData/diagnostics/inference/noInformationForParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/noInformationForParameter.antlrtree.txt @@ -1,4 +1,4 @@ -File: noInformationForParameter.kt - 31d46790807439ce1c23fd764f6d4be6 +File: noInformationForParameter.kt - be9500eadee2b48e65abc88351e1ded7 NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inference/nonFunctionalExpectedTypeForLambdaArgument.antlrtree.txt b/grammar/testData/diagnostics/inference/nonFunctionalExpectedTypeForLambdaArgument.antlrtree.txt index d74555c4a..fb33d04ec 100644 --- a/grammar/testData/diagnostics/inference/nonFunctionalExpectedTypeForLambdaArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nonFunctionalExpectedTypeForLambdaArgument.antlrtree.txt @@ -1,5 +1,4 @@ -File: nonFunctionalExpectedTypeForLambdaArgument.kt - 3074ede4dc2fb4b9e7572bc61dabcbe9 - NL("\n") +File: nonFunctionalExpectedTypeForLambdaArgument.kt - 6a1e6bd1f41252e3bc9018e131c872a7 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/nothingType/complexDependancyOnVariableWithTrivialConstraint.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/complexDependancyOnVariableWithTrivialConstraint.antlrtree.txt index 144517e6a..531d76f95 100644 --- a/grammar/testData/diagnostics/inference/nothingType/complexDependancyOnVariableWithTrivialConstraint.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/complexDependancyOnVariableWithTrivialConstraint.antlrtree.txt @@ -236,6 +236,4 @@ File: complexDependancyOnVariableWithTrivialConstraint.kt - 6e7cb6f860e7b6c5575e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/nothingType/genericOverride.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/genericOverride.antlrtree.txt new file mode 100644 index 000000000..a5d2457c0 --- /dev/null +++ b/grammar/testData/diagnostics/inference/nothingType/genericOverride.antlrtree.txt @@ -0,0 +1,294 @@ +File: genericOverride.kt - f2fe85f995d65dcb5a557cec5a767cf0 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("a") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("error") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("a") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("error") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Suppress") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("UNCHECKED_CAST") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("V") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + asOperator + AS_SAFE("as?") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/nothingType/implicitNothingConstraintFromReturn.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/implicitNothingConstraintFromReturn.antlrtree.txt index 831d42db4..2b23c751b 100644 --- a/grammar/testData/diagnostics/inference/nothingType/implicitNothingConstraintFromReturn.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/implicitNothingConstraintFromReturn.antlrtree.txt @@ -353,6 +353,4 @@ File: implicitNothingConstraintFromReturn.kt - 106866cc583392efe74d27011cdbd6e7 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/nothingType/inferArgumentToNothingFromNullConstant.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/inferArgumentToNothingFromNullConstant.antlrtree.txt index 3ee2b0964..1ebc044ec 100644 --- a/grammar/testData/diagnostics/inference/nothingType/inferArgumentToNothingFromNullConstant.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/inferArgumentToNothingFromNullConstant.antlrtree.txt @@ -210,6 +210,4 @@ File: inferArgumentToNothingFromNullConstant.kt - 16e23d99a08ae32c8281ed929b41d3 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/nothingType/inferenceWithRecursiveGenericsAndNothing.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/inferenceWithRecursiveGenericsAndNothing.antlrtree.txt index 2aaf7ab5a..27ad4c25c 100644 --- a/grammar/testData/diagnostics/inference/nothingType/inferenceWithRecursiveGenericsAndNothing.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/inferenceWithRecursiveGenericsAndNothing.antlrtree.txt @@ -306,6 +306,4 @@ File: inferenceWithRecursiveGenericsAndNothing.kt - 3e19fd36611a9be3bcd965f5a38b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/nothingType/kt24490.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/kt24490.antlrtree.txt index 81a5eea91..8cd9d5040 100644 --- a/grammar/testData/diagnostics/inference/nothingType/kt24490.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/kt24490.antlrtree.txt @@ -312,6 +312,4 @@ File: kt24490.kt - 8b7b04637eb2a26a6c05d80f2b056edc semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/nothingType/kt32051.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/kt32051.antlrtree.txt index 686704c4b..44636cb8f 100644 --- a/grammar/testData/diagnostics/inference/nothingType/kt32051.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/kt32051.antlrtree.txt @@ -1238,6 +1238,4 @@ File: kt32051.kt - 8113e83f4644cbae50d6cff7af0344df semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/nothingType/kt32081.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/kt32081.antlrtree.txt index 37788202b..8af40de4b 100644 --- a/grammar/testData/diagnostics/inference/nothingType/kt32081.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/kt32081.antlrtree.txt @@ -325,6 +325,4 @@ File: kt32081.kt - b8ddfdf27b5d5544a8f5fa37f1100018 simpleIdentifier Identifier("V") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/nothingType/kt32388.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/kt32388.antlrtree.txt index 09dc3ad74..4f9dbc222 100644 --- a/grammar/testData/diagnostics/inference/nothingType/kt32388.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/kt32388.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt32388.kt - d670b31511c8320d94d86bb8bf9e58ff - NL("\n") +File: kt32388.kt - 5234ff79c68cd74f470f7a28fe6e9045 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/nothingType/kt34335.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/kt34335.antlrtree.txt index 0a746b26e..dd570319a 100644 --- a/grammar/testData/diagnostics/inference/nothingType/kt34335.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/kt34335.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt34335.kt - 38c29889725ba56df3bb3c303b88e9d6 - NL("\n") +File: kt34335.kt - 8d3ad71febdde9cbfc8d9879c96d3c37 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/nothingType/lambdaNothingAndExpectedType.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/lambdaNothingAndExpectedType.antlrtree.txt index e9614f479..7bd59622f 100644 --- a/grammar/testData/diagnostics/inference/nothingType/lambdaNothingAndExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/lambdaNothingAndExpectedType.antlrtree.txt @@ -1,4 +1,4 @@ -File: lambdaNothingAndExpectedType.kt - b3efadd6ba6ead08fbdb7c62ae5ad180 +File: lambdaNothingAndExpectedType.kt - 856f7136b04b9cf0432daae4d7f1ade1 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/nothingType/notEnoughInformationFromNullabilityConstraint.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/notEnoughInformationFromNullabilityConstraint.antlrtree.txt index 32f83f86f..3b0e5ed43 100644 --- a/grammar/testData/diagnostics/inference/nothingType/notEnoughInformationFromNullabilityConstraint.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/notEnoughInformationFromNullabilityConstraint.antlrtree.txt @@ -1,5 +1,4 @@ -File: notEnoughInformationFromNullabilityConstraint.kt - 809c0a45880ba675f6f4e9210a43eac4 - NL("\n") +File: notEnoughInformationFromNullabilityConstraint.kt - b1df531326cb32123934528d4b9c3559 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/nothingType/nullableExpectedTypeFromVariable.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/nullableExpectedTypeFromVariable.antlrtree.txt index bb7f23f6b..f617b6f39 100644 --- a/grammar/testData/diagnostics/inference/nothingType/nullableExpectedTypeFromVariable.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/nullableExpectedTypeFromVariable.antlrtree.txt @@ -1,4 +1,4 @@ -File: nullableExpectedTypeFromVariable.kt - 277fbf2526ccc6f4e22df7ee93e58ee2 +File: nullableExpectedTypeFromVariable.kt - 37a52bad4c959b162cada221324c2b36 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/nothingType/platformNothingAsUsefulConstraint.test.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/platformNothingAsUsefulConstraint.test.antlrtree.txt index 68d07cc9d..68f0ca485 100644 --- a/grammar/testData/diagnostics/inference/nothingType/platformNothingAsUsefulConstraint.test.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nothingType/platformNothingAsUsefulConstraint.test.antlrtree.txt @@ -403,6 +403,4 @@ File: platformNothingAsUsefulConstraint.test.kt - c08884b6c0ed77dd832f76ab3a081c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/nothingType/reportImplicitNothingOnlyForOwnTypeParameters.antlrtree.txt b/grammar/testData/diagnostics/inference/nothingType/reportImplicitNothingOnlyForOwnTypeParameters.antlrtree.txt new file mode 100644 index 000000000..a447ac68d --- /dev/null +++ b/grammar/testData/diagnostics/inference/nothingType/reportImplicitNothingOnlyForOwnTypeParameters.antlrtree.txt @@ -0,0 +1,221 @@ +File: reportImplicitNothingOnlyForOwnTypeParameters.kt - a149e092d0cfeb51e3784406fa0c8e3e + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("runCatching") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Result") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Result") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getOrNull") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("runCatching") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getOrNull") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/nullableUpperBound.antlrtree.txt b/grammar/testData/diagnostics/inference/nullableUpperBound.antlrtree.txt index f4b60b07b..0db214124 100644 --- a/grammar/testData/diagnostics/inference/nullableUpperBound.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/nullableUpperBound.antlrtree.txt @@ -1,4 +1,5 @@ -File: nullableUpperBound.kt - 17e0553b21583bb0380643b2623ee771 +File: nullableUpperBound.kt - 61d3e8d28f2f5fcc2ac2b2120f576a59 + NL("\n") packageHeader PACKAGE("package") identifier @@ -235,5 +236,5 @@ File: nullableUpperBound.kt - 17e0553b21583bb0380643b2623ee771 LPAREN("(") RPAREN(")") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/onlyInputTypesWithMultilevelIncorporation.antlrtree.txt b/grammar/testData/diagnostics/inference/onlyInputTypesWithMultilevelIncorporation.antlrtree.txt new file mode 100644 index 000000000..cba3a640e --- /dev/null +++ b/grammar/testData/diagnostics/inference/onlyInputTypesWithMultilevelIncorporation.antlrtree.txt @@ -0,0 +1,469 @@ +File: onlyInputTypesWithMultilevelIncorporation.kt - e7a01a3b974b8d7b0d086e9e4eb4ee0b + NL("\n") + NL("\n") + NL("\n") + fileAnnotation + AT_PRE_WS("\n@") + FILE("file") + COLON(":") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Suppress") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("INVISIBLE_MEMBER") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("INVISIBLE_REFERENCE") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + INTERNAL("internal") + DOT(".") + simpleIdentifier + Identifier("OnlyInputTypes") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("OnlyInputTypes") + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("assertEquals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("expected") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + ACTUAL("actual") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("message") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("assertEquals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mapOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("2") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("3") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intArrayOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("associateWith") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/possibleCycleOnConstraints.antlrtree.txt b/grammar/testData/diagnostics/inference/possibleCycleOnConstraints.antlrtree.txt index 75f0b5191..c9babc64d 100644 --- a/grammar/testData/diagnostics/inference/possibleCycleOnConstraints.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/possibleCycleOnConstraints.antlrtree.txt @@ -1,5 +1,4 @@ -File: possibleCycleOnConstraints.kt - 96bcc97a41b51dd6425d35d64f1b6499 - NL("\n") +File: possibleCycleOnConstraints.kt - 31a686f7f84ccc9e29df1d9e98374ce2 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/inference/publicApproximation/chainedLambdas.antlrtree.txt b/grammar/testData/diagnostics/inference/publicApproximation/chainedLambdas.antlrtree.txt index ba013a7f8..69950ef5f 100644 --- a/grammar/testData/diagnostics/inference/publicApproximation/chainedLambdas.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/publicApproximation/chainedLambdas.antlrtree.txt @@ -1,4 +1,4 @@ -File: chainedLambdas.kt - fadd19d1f0e55c3172ea378000075f68 +File: chainedLambdas.kt - b9d3da79cd1cb122f50fbdc766f708e4 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/publicApproximation/intersectionAfterSmartCastInLambdaReturn.antlrtree.txt b/grammar/testData/diagnostics/inference/publicApproximation/intersectionAfterSmartCastInLambdaReturn.antlrtree.txt index d9e0da703..c6d103fbd 100644 --- a/grammar/testData/diagnostics/inference/publicApproximation/intersectionAfterSmartCastInLambdaReturn.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/publicApproximation/intersectionAfterSmartCastInLambdaReturn.antlrtree.txt @@ -1,5 +1,4 @@ -File: intersectionAfterSmartCastInLambdaReturn.kt - be31735dffaab659b2be1da5fc8dda0f - NL("\n") +File: intersectionAfterSmartCastInLambdaReturn.kt - 81e7600586988461667fb96ad3cecdc8 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.antlrtree.txt b/grammar/testData/diagnostics/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.antlrtree.txt index 44fc2c8aa..7f25a31db 100644 --- a/grammar/testData/diagnostics/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/publicApproximation/smartCastInLambdaReturnAfterIntersection.antlrtree.txt @@ -1,4 +1,4 @@ -File: smartCastInLambdaReturnAfterIntersection.kt - 69dcfb593671be9b84c9aaad9195e7ac +File: smartCastInLambdaReturnAfterIntersection.kt - faf9d52143d4d210dbc1875e36b4e723 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/publicApproximation/twoIntersections.antlrtree.txt b/grammar/testData/diagnostics/inference/publicApproximation/twoIntersections.antlrtree.txt index 12af6ed1d..0aca3e408 100644 --- a/grammar/testData/diagnostics/inference/publicApproximation/twoIntersections.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/publicApproximation/twoIntersections.antlrtree.txt @@ -1,4 +1,4 @@ -File: twoIntersections.kt - b7dfb94a50abcfcb6206abfdc3b38722 +File: twoIntersections.kt - 90840134351e42eb48c5480913f6d9ad NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/recursiveCalls/kt23531.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveCalls/kt23531.antlrtree.txt index c647245d9..6830577af 100644 --- a/grammar/testData/diagnostics/inference/recursiveCalls/kt23531.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveCalls/kt23531.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt23531.kt - c250fc0ee7a7cd65fab4111394e90818 - NL("\n") +File: kt23531.kt - 5af934b8918e3f8e62e430b342ff1b7d NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/recursiveLocalFuns/localFactorial.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveLocalFuns/localFactorial.antlrtree.txt index c29c012e8..8fd08adf2 100644 --- a/grammar/testData/diagnostics/inference/recursiveLocalFuns/localFactorial.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveLocalFuns/localFactorial.antlrtree.txt @@ -1,4 +1,4 @@ -File: localFactorial.kt - 33da4a4d5332d7482572f7eb6fe0b37d +File: localFactorial.kt - 08a650fe6457dea127da5fbab1e49bc2 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/recursiveLocalFuns/recursiveFun.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveLocalFuns/recursiveFun.antlrtree.txt index b771f201f..56e2a4883 100644 --- a/grammar/testData/diagnostics/inference/recursiveLocalFuns/recursiveFun.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveLocalFuns/recursiveFun.antlrtree.txt @@ -1,4 +1,4 @@ -File: recursiveFun.kt - 2a110472c3a37308ef21207938a8a452 +File: recursiveFun.kt - ad49a194a35c757403567bf3f6b061e5 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/recursiveLocalFuns/recursiveLambda.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveLocalFuns/recursiveLambda.antlrtree.txt index 56acf39f8..c62095610 100644 --- a/grammar/testData/diagnostics/inference/recursiveLocalFuns/recursiveLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveLocalFuns/recursiveLambda.antlrtree.txt @@ -1,4 +1,4 @@ -File: recursiveLambda.kt - 0f4e56d60312b5eac37cc670cdc8dbb6 +File: recursiveLambda.kt - 77736b0d41115af9dbab1345caf28d60 NL("\n") packageHeader importList @@ -78,6 +78,4 @@ File: recursiveLambda.kt - 0f4e56d60312b5eac37cc670cdc8dbb6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/recursiveLocalFuns/selfCall.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveLocalFuns/selfCall.antlrtree.txt index 879931e52..0dbbb18f5 100644 --- a/grammar/testData/diagnostics/inference/recursiveLocalFuns/selfCall.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveLocalFuns/selfCall.antlrtree.txt @@ -1,4 +1,4 @@ -File: selfCall.kt - 1c8c84e7f9c57da7c0bc146ff1eda426 +File: selfCall.kt - c2c131ab753dd5d88a87ce010496c01f NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inference/recursiveTypes/recursiveTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveTypes/recursiveTypes.antlrtree.txt index b91c2deb5..401485d4d 100644 --- a/grammar/testData/diagnostics/inference/recursiveTypes/recursiveTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveTypes/recursiveTypes.antlrtree.txt @@ -398,6 +398,4 @@ File: recursiveTypes.kt - 8b1159627bd437d946d7512c48b0e33a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/disabledInferenceOnSelfTypes/basicInferenceForImplicitSelfType.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/disabledInferenceOnSelfTypes/basicInferenceForImplicitSelfType.antlrtree.txt new file mode 100644 index 000000000..2e14d5af2 --- /dev/null +++ b/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/disabledInferenceOnSelfTypes/basicInferenceForImplicitSelfType.antlrtree.txt @@ -0,0 +1,366 @@ +File: basicInferenceForImplicitSelfType.kt - 33a5b25ba71a8af619d93ac68933c3ca + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Builder") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("B") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testStar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builder") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("builder") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("builder") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("testTypeParam") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builder") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("builder") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("builder") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/disabledInferenceOnSelfTypes/recursiveTypeWithTwoTypeParams.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/disabledInferenceOnSelfTypes/recursiveTypeWithTwoTypeParams.antlrtree.txt new file mode 100644 index 000000000..d614a81ce --- /dev/null +++ b/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/disabledInferenceOnSelfTypes/recursiveTypeWithTwoTypeParams.antlrtree.txt @@ -0,0 +1,219 @@ +File: recursiveTypeWithTwoTypeParams.kt - cb13b44396d5303e1d2659cea7738f53 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("BodySpec") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("B") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BodySpec") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + simpleIdentifier + Identifier("isEqualTo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("expected") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BodySpec") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("isEqualTo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/disabledInferenceOnSelfTypes/writerAppenderExampleRecursive.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/disabledInferenceOnSelfTypes/writerAppenderExampleRecursive.antlrtree.txt new file mode 100644 index 000000000..641eb6818 --- /dev/null +++ b/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/disabledInferenceOnSelfTypes/writerAppenderExampleRecursive.antlrtree.txt @@ -0,0 +1,525 @@ +File: writerAppenderExampleRecursive.kt - c1443a8ec3ee92ae371f159f5cb6c789 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("WriterAppender") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("newBuilder") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("WriterAppender") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Builder1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("WriterAppender") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("intersectTwoSelfTypes") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("WriterAppender") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Builder2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder2") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Builder1") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("B") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("asBuilder") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("B") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("newBuilder") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Builder1") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("asBuilder") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("B") + RANGLE(">") + simpleIdentifier + Identifier("intersectTwoSelfTypes") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("B") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("B") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder2") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Builder1") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("asBuilder") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/enabledInferenceOnSelfTypes/basicInferenceForImplicitSelfType.main.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/enabledInferenceOnSelfTypes/basicInferenceForImplicitSelfType.main.antlrtree.txt new file mode 100644 index 000000000..9db4e5206 --- /dev/null +++ b/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/enabledInferenceOnSelfTypes/basicInferenceForImplicitSelfType.main.antlrtree.txt @@ -0,0 +1,617 @@ +File: basicInferenceForImplicitSelfType.main.kt - afe08c3fbfaeabbd003b20bf72786cc4 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Builder") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("B") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testStar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builder") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("builder") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("builder") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("testTypeParam") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builder") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("builder") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("builder") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testStarJava") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builder") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaBuilder") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("builder") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("builder") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaBuilder") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("testTypeParamJava") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builder") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaBuilder") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("builder") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("builder") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/enabledInferenceOnSelfTypes/recursiveTypeWithTwoTypeParams.main.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/enabledInferenceOnSelfTypes/recursiveTypeWithTwoTypeParams.main.antlrtree.txt new file mode 100644 index 000000000..6301f6d68 --- /dev/null +++ b/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/enabledInferenceOnSelfTypes/recursiveTypeWithTwoTypeParams.main.antlrtree.txt @@ -0,0 +1,340 @@ +File: recursiveTypeWithTwoTypeParams.main.kt - 9d34019b159de8cbad1924e93e9f9586 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("BodySpec") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("B") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BodySpec") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RANGLE(">") + simpleIdentifier + Identifier("isEqualTo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("expected") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BodySpec") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("isEqualTo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testJava") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaBodySpec") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("isEqualTo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/enabledInferenceOnSelfTypes/writerAppenderExampleRecursive.main.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/enabledInferenceOnSelfTypes/writerAppenderExampleRecursive.main.antlrtree.txt new file mode 100644 index 000000000..6f2f4a30e --- /dev/null +++ b/grammar/testData/diagnostics/inference/recursiveTypes/selfTypes/enabledInferenceOnSelfTypes/writerAppenderExampleRecursive.main.antlrtree.txt @@ -0,0 +1,649 @@ +File: writerAppenderExampleRecursive.main.kt - a34cbb3bdb92b7a32378046fb6f806df + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("WriterAppender") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("newBuilder") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("WriterAppender") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Builder1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("WriterAppender") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("intersectTwoSelfTypes") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testJava") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("appender") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JavaWriterAppender") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("appender") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("newBuilder") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("appender") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Builder1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("appender") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("intersectTwoSelfTypes") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("WriterAppender") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Builder2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder2") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Builder1") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("B") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("asBuilder") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("B") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("newBuilder") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Builder1") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("asBuilder") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("B") + RANGLE(">") + simpleIdentifier + Identifier("intersectTwoSelfTypes") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("B") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("B") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Builder2") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Builder1") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("asBuilder") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/recursiveTypes/twoTypeConstructors.antlrtree.txt b/grammar/testData/diagnostics/inference/recursiveTypes/twoTypeConstructors.antlrtree.txt index 73046898b..c3d60d046 100644 --- a/grammar/testData/diagnostics/inference/recursiveTypes/twoTypeConstructors.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/recursiveTypes/twoTypeConstructors.antlrtree.txt @@ -316,6 +316,4 @@ File: twoTypeConstructors.kt - 86fbe87d9bc040ea3960e5f17c71b95a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/compareBy.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/compareBy.antlrtree.txt index a8872b6d3..22df97392 100644 --- a/grammar/testData/diagnostics/inference/regressions/compareBy.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/compareBy.antlrtree.txt @@ -1,4 +1,5 @@ -File: compareBy.kt - e9fe6768d1dee611049b7f213bf1d70f +File: compareBy.kt - 233a610566b96d2251d08ebb12587e07 + NL("\n") packageHeader importList topLevelObject @@ -408,5 +409,5 @@ File: compareBy.kt - e9fe6768d1dee611049b7f213bf1d70f LPAREN("(") RPAREN(")") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt1029.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt1029.antlrtree.txt index f49fbebdb..849631519 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt1029.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt1029.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt1029.kt - 809dd419afe3904ff08de2e977356952 +File: kt1029.kt - 5ecc08ce407de0b1308d1b810fb95864 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/regressions/kt1031.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt1031.antlrtree.txt index 48cc9b270..9f3ab7cdd 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt1031.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt1031.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt1031.kt - 5820aced30da7f59abe0558160aa231a +File: kt1031.kt - 54ca24afad6cad62e6d76719ba2d1492 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/regressions/kt1127.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt1127.antlrtree.txt index 95604b9b5..b99c1b47e 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt1127.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt1127.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt1127.kt - e212f6a456779c505c168ec4a0c1fa43 - NL("\n") +File: kt1127.kt - 5651eaefedb040b7490749c034b43b8f NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/regressions/kt1358.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt1358.antlrtree.txt index 63568f616..a16152fab 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt1358.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt1358.antlrtree.txt @@ -272,6 +272,4 @@ File: kt1358.kt - 8d64f3d25d4f462df3cdad88d5bdd981 EXCL_NO_WS("!") excl EXCL_NO_WS("!") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt1410.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt1410.antlrtree.txt index 0fbcf954a..c6cfe5c34 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt1410.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt1410.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt1410.kt - 77767e659182230ce06d4d24c9fe1cb1 +File: kt1410.kt - de2c687747225e64568c99ab54d1a8d7 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2057.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2057.antlrtree.txt index 6b2df656e..9da7e8d91 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2057.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2057.antlrtree.txt @@ -370,6 +370,4 @@ File: kt2057.kt - e653a959c6c80063c29920ab65468759 RPAREN(")") COMMA(",") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2200.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2200.antlrtree.txt index 99e7742d7..86704da93 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2200.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2200.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt2200.kt - 7853d6a6f0ec892e316c95b5ec85f1a1 - NL("\n") +File: kt2200.kt - becb2f52166dbf7d61f01b9a78fa14ed NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2283.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2283.antlrtree.txt index 5deaff5b6..6b072ab0f 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2283.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2283.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt2283.kt - 912ea151fec9bd60805b52cb8710229b - NL("\n") +File: kt2283.kt - 19c107291884cca96b1173ac9af279dd NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2286.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2286.antlrtree.txt index 79a65b0ae..0363ea4b6 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2286.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2286.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt2286.kt - e81dee40c87d8e533bc1de76bd2c2f9e - NL("\n") +File: kt2286.kt - ce274401c5fce374dd2a2eb824eae872 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/regressions/kt2320.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2320.antlrtree.txt index 813a9e682..366ec8778 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2320.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2320.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2320.kt - 69286f2f6b7a2ea4aa4ec2de6178b7ed +File: kt2320.kt - c727f455ee440440f414040171593bed + NL("\n") NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2324.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2324.antlrtree.txt index 194ace5a5..96a86210d 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2324.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2324.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2324.kt - effa7f5d0554f435cc216c820aeb928c +File: kt2324.kt - 3b39cca504bc25262b5a7adee4ef2700 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2445.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2445.antlrtree.txt index 01eacb2c3..77cd60382 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2445.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2445.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt2445.kt - 2f8b8c746f1f6c92f9c096200996b5b6 +File: kt2445.kt - ae35c501044df2ce95aab1e07fd697d4 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2459.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2459.antlrtree.txt index b9d09f47a..499fe0a56 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2459.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2459.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2459.kt - 05d995ae998199eeb2b4879de001cccf +File: kt2459.kt - eb11cac160995bacc782d66b939204da + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -228,5 +229,5 @@ File: kt2459.kt - 05d995ae998199eeb2b4879de001cccf statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2514.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2514.antlrtree.txt index 6ce9577ab..6a3be0f6f 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2514.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2514.antlrtree.txt @@ -465,6 +465,4 @@ File: kt2514.kt - d492e121f756c806d6681cb489b15909 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2588.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2588.antlrtree.txt index b51af3899..7848de56b 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2588.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2588.antlrtree.txt @@ -448,6 +448,4 @@ File: kt2588.kt - 5a890a666a010e6ad2e9f767d4bd42bb RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2741.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2741.antlrtree.txt index 426e21288..80793339d 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2741.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2741.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt2741.kt - d976e098721e71e5fc5382019a45af54 - NL("\n") +File: kt2741.kt - e7eddf691329d056cc22eec914a10781 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/regressions/kt2754.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2754.antlrtree.txt index 090e7c64e..114a7f2d1 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2754.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2754.antlrtree.txt @@ -799,6 +799,4 @@ File: kt2754.kt - e8afd275cf0b4227456f4d3025903c14 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2838.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2838.antlrtree.txt index 77482a6a9..93a6ca6a6 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2838.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2838.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt2838.kt - 99cdf0e4a1adf3cf76a9499aaae282bd +File: kt2838.kt - 4fab0660be9daf91f353b2ebca5a9f81 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2841.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2841.antlrtree.txt index cbc23472f..0f628fcfb 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2841.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2841.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt2841.kt - 12e5be914e251b9d8a7d7b9b1514d013 - NL("\n") +File: kt2841.kt - 5765890331b7ad96ac21a1b783715269 NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2841_it.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2841_it.antlrtree.txt index e489c90c3..2fb40a424 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2841_it.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2841_it.antlrtree.txt @@ -1,6 +1,4 @@ -File: kt2841_it.kt - 15965994db2b0cae27807e3e78af369b - NL("\n") - NL("\n") +File: kt2841_it.kt - 0b0a224af953f0b71eaaea982628ec9a NL("\n") packageHeader PACKAGE("package") @@ -313,5 +311,5 @@ File: kt2841_it.kt - 15965994db2b0cae27807e3e78af369b NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2841_it_this.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2841_it_this.antlrtree.txt index 2238e1adc..e5f5abd06 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2841_it_this.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2841_it_this.antlrtree.txt @@ -1,6 +1,4 @@ -File: kt2841_it_this.kt - 0ecd0bfe82328c28a4ceda77c7b174a2 - NL("\n") - NL("\n") +File: kt2841_it_this.kt - 2372ae9494c70ec606875073a0a8eb82 NL("\n") packageHeader PACKAGE("package") @@ -375,5 +373,5 @@ File: kt2841_it_this.kt - 0ecd0bfe82328c28a4ceda77c7b174a2 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2841_this.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2841_this.antlrtree.txt index 9bca9b1f2..c6b1553d0 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2841_this.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2841_this.antlrtree.txt @@ -1,6 +1,4 @@ -File: kt2841_this.kt - 356c0fa7d3fc47481d250128c747567e - NL("\n") - NL("\n") +File: kt2841_this.kt - 4ee1d1b523bb3b201246acf0b283a4a9 NL("\n") packageHeader PACKAGE("package") @@ -297,5 +295,5 @@ File: kt2841_this.kt - 356c0fa7d3fc47481d250128c747567e NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2842.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2842.antlrtree.txt index c719e20e0..ef282196a 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2842.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2842.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2842.kt - 418e12419665efeb840a07e5fc116539 +File: kt2842.kt - 7d80b187713d050d93b096328ea20611 + NL("\n") packageHeader PACKAGE("package") identifier @@ -497,6 +498,4 @@ File: kt2842.kt - 418e12419665efeb840a07e5fc116539 primaryExpression literalConstant NullLiteral("null") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt2883.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt2883.antlrtree.txt index 0a335c5b5..3328e7548 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt2883.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt2883.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt2883.kt - 91abddac7c7af7dde8fc4557d2d1194f - NL("\n") +File: kt2883.kt - 57382b4de9f924a62f4a7e865e6155a5 NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inference/regressions/kt3007.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt3007.antlrtree.txt index 7a9aacd11..7e41d739e 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt3007.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt3007.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt3007.kt - ca8b3d6188de6be6a07158448d0ac2d0 +File: kt3007.kt - a1d6f9d2885719f62a0b57ed310a1020 + NL("\n") NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inference/regressions/kt3038.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt3038.antlrtree.txt index 9fb8c8773..94204e95d 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt3038.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt3038.antlrtree.txt @@ -411,6 +411,4 @@ File: kt3038.kt - 8e20e280f75b4b973a6346dc388067fc primaryExpression simpleIdentifier Identifier("a") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt3150.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt3150.antlrtree.txt index cef393a88..1ccc49682 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt3150.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt3150.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt3150.kt - 115c2bc7e5245744c2207af5e7baeb72 +File: kt3150.kt - 8543c4abf14fb7130e4452ccf599bf4e + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/inference/regressions/kt3174.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt3174.antlrtree.txt index 09584cbdb..2504ac522 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt3174.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt3174.antlrtree.txt @@ -328,6 +328,4 @@ File: kt3174.kt - d918406b3c781a42bb56dd4fb5ed5005 NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt32862_both.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt32862_both.antlrtree.txt index cb38150df..473cbab60 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt32862_both.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt32862_both.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt32862_both.kt - 42210760c8095adc0dc4587a17153a2e - NL("\n") +File: kt32862_both.kt - c389288293767b83d267ea42d76c2f3c NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/regressions/kt32862_none.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt32862_none.antlrtree.txt index 21e1b5bb5..9f0576343 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt32862_none.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt32862_none.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt32862_none.kt - 565fc0e3959d81cd0cc1549716a5f281 - NL("\n") +File: kt32862_none.kt - 2916b89eaceeadd99f985bc72a47b088 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/regressions/kt3301.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt3301.antlrtree.txt index c0cc28279..42d685f78 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt3301.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt3301.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt3301.kt - a157688f88a402315fe7e68bb5b06321 +File: kt3301.kt - cd9f8b0c11535fb16e39632e1820331c + NL("\n") NL("\n") NL("\n") packageHeader @@ -274,5 +275,5 @@ File: kt3301.kt - a157688f88a402315fe7e68bb5b06321 statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt33629.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt33629.antlrtree.txt index ddaee56d9..2d9f9a125 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt33629.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt33629.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt33629.kt - 65b1ee7017cf75d69bd6ba8b764fc855 - NL("\n") +File: kt33629.kt - d1ef3e72d7b0642b47360fe948ad6550 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/regressions/kt34029.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt34029.antlrtree.txt index dbe3c3ffa..72e35d0d8 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt34029.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt34029.antlrtree.txt @@ -136,6 +136,4 @@ File: kt34029.kt - 54d9a3a047355e3dbcce7e6e5cd29cd7 simpleIdentifier Identifier("MyObject") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt3496.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt3496.antlrtree.txt index e8a27ebc3..20e398ad0 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt3496.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt3496.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt3496.kt - f327232b7b0f8d35765db343ac34a81b +File: kt3496.kt - 881bcd7551ba2f146a792bcb476300a1 + NL("\n") NL("\n") NL("\n") NL("\n") @@ -216,5 +217,5 @@ File: kt3496.kt - f327232b7b0f8d35765db343ac34a81b NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt3496_2.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt3496_2.antlrtree.txt index b9e0f1ccf..168dc3ff1 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt3496_2.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt3496_2.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt3496_2.kt - aa7df375a8ebff3d50ec420d96becba4 +File: kt3496_2.kt - ba91fed3abb9a62d292db0deb1e93a09 + NL("\n") NL("\n") NL("\n") NL("\n") @@ -328,5 +329,5 @@ File: kt3496_2.kt - aa7df375a8ebff3d50ec420d96becba4 LPAREN("(") RPAREN(")") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt3559.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt3559.antlrtree.txt index 18f9650e9..64c372424 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt3559.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt3559.antlrtree.txt @@ -360,6 +360,4 @@ File: kt3559.kt - 47a3af90052dd540e8170a5eefdaf56f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt36342.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt36342.antlrtree.txt index 0d7a0a4bd..087dd82a3 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt36342.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt36342.antlrtree.txt @@ -1,6 +1,4 @@ -File: kt36342.kt - 842a5764d1d3d91c04da693901c99a0b - NL("\n") - NL("\n") +File: kt36342.kt - 21b8f15854b1058c6df5e56a52293fbe packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/inference/regressions/kt36342_2.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt36342_2.antlrtree.txt index 76054f24e..91c5d9cd6 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt36342_2.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt36342_2.antlrtree.txt @@ -1,6 +1,4 @@ -File: kt36342_2.kt - 858168bbd0e4ddfd888bf92997e13b63 - NL("\n") - NL("\n") +File: kt36342_2.kt - e9f96c688c49f0c66c8a862e0b79b1f4 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/regressions/kt38549.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt38549.antlrtree.txt index 833ebede4..27224fdc3 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt38549.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt38549.antlrtree.txt @@ -369,6 +369,4 @@ File: kt38549.kt - d3f8cf8233461b4ab05d5b952e4e5683 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt38691.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt38691.antlrtree.txt index ba017c714..2eb98d96d 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt38691.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt38691.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt38691.kt - a079b94e6b8a2465620d2f06506532de +File: kt38691.kt - 77afcc525595b52439ee37ffe1aa2756 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/regressions/kt4420.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt4420.antlrtree.txt index 2a808e65b..5ed1a3217 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt4420.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt4420.antlrtree.txt @@ -254,6 +254,4 @@ File: kt4420.kt - a539f14559b782558b1d166af29701c3 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt47941.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt47941.antlrtree.txt new file mode 100644 index 000000000..afbe0b60b --- /dev/null +++ b/grammar/testData/diagnostics/inference/regressions/kt47941.antlrtree.txt @@ -0,0 +1,716 @@ +File: kt47941.kt - 72d2eddf0d4da6d48ab81628e9e6b2c1 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + INTERFACE("interface") + simpleIdentifier + Identifier("Metric") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Counter") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Metric") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Gauge") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Metric") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + quest + QUEST_NO_WS("?") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + quest + QUEST_NO_WS("?") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("p") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Inv") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + quest + QUEST_NO_WS("?") + RANGLE(">") + COMMA(",") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + quest + QUEST_NO_WS("?") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("M") + RANGLE(">") + simpleIdentifier + Identifier("materialize") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("M") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inv") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("L") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAR("var") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("L") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Metric") + quest + QUEST_NO_WS("?") + RANGLE(">") + simpleIdentifier + Identifier("register") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("metric") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_WS("? ") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("metric") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Counter") + ARROW("->") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("metric") + semis + NL("\n") + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Gauge") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + ARROW("->") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("metric") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("y") + ARROW("->") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("materialize") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("metric") + semis + NL("\n") + RCURL("}") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt702.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt702.antlrtree.txt index 1cec0b604..0c764324f 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt702.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt702.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt702.kt - 454695d5d73b05a1c3b248ac3757d144 +File: kt702.kt - 17c58ddba1f98aa00b0a512895e0d1b7 + NL("\n") NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inference/regressions/kt731.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt731.antlrtree.txt index b8404faf3..fee3c4d83 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt731.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt731.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt731.kt - 7c2f4b2b3597714949cacdcddb201900 - NL("\n") +File: kt731.kt - 1349974e829a96b098f437d813656e72 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/regressions/kt742.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt742.antlrtree.txt index 94ab3333b..a527fd811 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt742.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt742.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt742.kt - a1e552286097e65f280e16a24d64708c - NL("\n") +File: kt742.kt - 3b288a7e5756e69b57a33fd623c3cc43 NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inference/regressions/kt8132.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt8132.antlrtree.txt index f0b2157b1..bd8144eb0 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt8132.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt8132.antlrtree.txt @@ -349,6 +349,4 @@ File: kt8132.kt - 628ca47a000f7e386187d1be326c0e2f valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt832.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt832.antlrtree.txt index a0a01a52d..690079150 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt832.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt832.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt832.kt - 8e87bea1d9e55972cc48e54e9fb4dc43 +File: kt832.kt - cf6a2b58a326c3a26588e7e32e326d63 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/regressions/kt943.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt943.antlrtree.txt index e911ec1c5..c6d811f3a 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt943.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt943.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt943.kt - 0303061d44f74ad99b4ed42b8a5e4097 +File: kt943.kt - da32ee2a00a22afdd6f6d3ee3b1c576a + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/regressions/kt9461.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt9461.antlrtree.txt index 3e92eb07b..276e7ee85 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt9461.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt9461.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt9461.kt - f9b316866f25ce8eed2a28b34ed64190 +File: kt9461.kt - 728df3c42f903e8e0cd231ffd0d70e7c + NL("\n") packageHeader importList topLevelObject @@ -559,5 +560,5 @@ File: kt9461.kt - f9b316866f25ce8eed2a28b34ed64190 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/regressions/kt948.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/kt948.antlrtree.txt index 2811d314d..1300babd9 100644 --- a/grammar/testData/diagnostics/inference/regressions/kt948.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/kt948.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt948.kt - 63c4956742b8edce2122f021459ff550 - NL("\n") +File: kt948.kt - 91523c286bf0b0db60dd652859a66198 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/regressions/noRecursionOnCallingPureKotlinFunctionAsSyntheticJavaAccessor.antlrtree.txt b/grammar/testData/diagnostics/inference/regressions/noRecursionOnCallingPureKotlinFunctionAsSyntheticJavaAccessor.antlrtree.txt index 945132c56..9fc11d756 100644 --- a/grammar/testData/diagnostics/inference/regressions/noRecursionOnCallingPureKotlinFunctionAsSyntheticJavaAccessor.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/regressions/noRecursionOnCallingPureKotlinFunctionAsSyntheticJavaAccessor.antlrtree.txt @@ -44,6 +44,4 @@ File: noRecursionOnCallingPureKotlinFunctionAsSyntheticJavaAccessor.kt - 68e2e3d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/reportAboutUnresolvedReferenceAsUnresolved.antlrtree.txt b/grammar/testData/diagnostics/inference/reportAboutUnresolvedReferenceAsUnresolved.antlrtree.txt index 1214b6987..d96fff4d1 100644 --- a/grammar/testData/diagnostics/inference/reportAboutUnresolvedReferenceAsUnresolved.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/reportAboutUnresolvedReferenceAsUnresolved.antlrtree.txt @@ -1,4 +1,4 @@ -File: reportAboutUnresolvedReferenceAsUnresolved.kt - fa1d5e59897b0283ab7adee140b0e133 +File: reportAboutUnresolvedReferenceAsUnresolved.kt - 182266b5476e04cccbf27d55d743265c packageHeader importList topLevelObject @@ -218,5 +218,5 @@ File: reportAboutUnresolvedReferenceAsUnresolved.kt - fa1d5e59897b0283ab7adee140 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/reportNotEnoughTypeInformationErrorsOnBlockExpressions.antlrtree.txt b/grammar/testData/diagnostics/inference/reportNotEnoughTypeInformationErrorsOnBlockExpressions.antlrtree.txt index 0f70b7447..8416fcd49 100644 --- a/grammar/testData/diagnostics/inference/reportNotEnoughTypeInformationErrorsOnBlockExpressions.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/reportNotEnoughTypeInformationErrorsOnBlockExpressions.antlrtree.txt @@ -1,4 +1,4 @@ -File: reportNotEnoughTypeInformationErrorsOnBlockExpressions.kt - 5afce9e5e40e1bec7cbc50abf8417b4b +File: reportNotEnoughTypeInformationErrorsOnBlockExpressions.kt - a3a4c6eb82a1b3cfebed0780cb7303cb NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/reportingImprovements/ErrorTypeAsGenericParameter.antlrtree.txt b/grammar/testData/diagnostics/inference/reportingImprovements/ErrorTypeAsGenericParameter.antlrtree.txt index 5a1a0edee..aa79e233c 100644 --- a/grammar/testData/diagnostics/inference/reportingImprovements/ErrorTypeAsGenericParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/reportingImprovements/ErrorTypeAsGenericParameter.antlrtree.txt @@ -1,4 +1,4 @@ -File: ErrorTypeAsGenericParameter.kt - b8c6dcb0e023a5e302d31b4ffe5a68c2 +File: ErrorTypeAsGenericParameter.kt - 625710db88ce749b880f5139a69c517e packageHeader PACKAGE("package") identifier @@ -283,5 +283,4 @@ File: ErrorTypeAsGenericParameter.kt - b8c6dcb0e023a5e302d31b4ffe5a68c2 RCURL("}") semis NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/reportingImprovements/FunctionPlaceholder.antlrtree.txt b/grammar/testData/diagnostics/inference/reportingImprovements/FunctionPlaceholder.antlrtree.txt index f30fad089..ae852a11e 100644 --- a/grammar/testData/diagnostics/inference/reportingImprovements/FunctionPlaceholder.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/reportingImprovements/FunctionPlaceholder.antlrtree.txt @@ -1,5 +1,4 @@ -File: FunctionPlaceholder.kt - d6c3f6c5b7587d0828802e11c8475bfe - NL("\n") +File: FunctionPlaceholder.kt - 0c7d557424868fd97107b8039d0fa078 NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inference/reportingImprovements/NoAmbiguityForDifferentFunctionTypes.antlrtree.txt b/grammar/testData/diagnostics/inference/reportingImprovements/NoAmbiguityForDifferentFunctionTypes.antlrtree.txt index 54b07b917..32f8b6937 100644 --- a/grammar/testData/diagnostics/inference/reportingImprovements/NoAmbiguityForDifferentFunctionTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/reportingImprovements/NoAmbiguityForDifferentFunctionTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: NoAmbiguityForDifferentFunctionTypes.kt - 4c48e16a19fe63dd94108dc604bbfaa4 - NL("\n") +File: NoAmbiguityForDifferentFunctionTypes.kt - e5825c46641f69812bec73fc610802c3 NL("\n") packageHeader PACKAGE("package") @@ -293,5 +292,4 @@ File: NoAmbiguityForDifferentFunctionTypes.kt - 4c48e16a19fe63dd94108dc604bbfaa4 RCURL("}") semis NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/reportingImprovements/cannotInferParameterTypeWithInference.antlrtree.txt b/grammar/testData/diagnostics/inference/reportingImprovements/cannotInferParameterTypeWithInference.antlrtree.txt index 12bfd5f46..736dfd6f1 100644 --- a/grammar/testData/diagnostics/inference/reportingImprovements/cannotInferParameterTypeWithInference.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/reportingImprovements/cannotInferParameterTypeWithInference.antlrtree.txt @@ -1,5 +1,4 @@ -File: cannotInferParameterTypeWithInference.kt - acd1e2a8fadd2e3f0d524e1e6c0ee054 - NL("\n") +File: cannotInferParameterTypeWithInference.kt - 8710a1e16a2c7990977e64d7d7ee06c1 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/inference/reportingImprovements/inferTypeFromUnresolvedArgument.antlrtree.txt b/grammar/testData/diagnostics/inference/reportingImprovements/inferTypeFromUnresolvedArgument.antlrtree.txt index 15ba05641..5f52109ba 100644 --- a/grammar/testData/diagnostics/inference/reportingImprovements/inferTypeFromUnresolvedArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/reportingImprovements/inferTypeFromUnresolvedArgument.antlrtree.txt @@ -1,5 +1,4 @@ -File: inferTypeFromUnresolvedArgument.kt - b7c5c9527d6e369bc0bcd4da0c471d9e - NL("\n") +File: inferTypeFromUnresolvedArgument.kt - 67b0977b140eaffc87dd27ecee6e3917 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/reportingImprovements/subtypeForInvariantWithErrorGenerics.antlrtree.txt b/grammar/testData/diagnostics/inference/reportingImprovements/subtypeForInvariantWithErrorGenerics.antlrtree.txt index 973683e04..3ea4a7c7a 100644 --- a/grammar/testData/diagnostics/inference/reportingImprovements/subtypeForInvariantWithErrorGenerics.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/reportingImprovements/subtypeForInvariantWithErrorGenerics.antlrtree.txt @@ -1,4 +1,4 @@ -File: subtypeForInvariantWithErrorGenerics.kt - ac66ff9f2744c228258889d1c2e51068 +File: subtypeForInvariantWithErrorGenerics.kt - 2618d08a2f576ab2875430adb9507af0 NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inference/reportingImprovements/typeInferenceFailedOnComponentN.antlrtree.txt b/grammar/testData/diagnostics/inference/reportingImprovements/typeInferenceFailedOnComponentN.antlrtree.txt index 3d14b1a4b..b1f4767ae 100644 --- a/grammar/testData/diagnostics/inference/reportingImprovements/typeInferenceFailedOnComponentN.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/reportingImprovements/typeInferenceFailedOnComponentN.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeInferenceFailedOnComponentN.kt - 59b45987e7d68a61081870ef153f1dc9 - NL("\n") +File: typeInferenceFailedOnComponentN.kt - 0a84d41fad0d919369729f35945b20f3 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.antlrtree.txt b/grammar/testData/diagnostics/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.antlrtree.txt index 080c51d67..092484e5a 100644 --- a/grammar/testData/diagnostics/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeInferenceFailedOnIteratorCall.kt - d876c96261f9a3e575ddb0e6c1352d8d - NL("\n") +File: typeInferenceFailedOnIteratorCall.kt - 6045c9fa2b9de51bfa3c8c2c695d33e1 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inference/reportingImprovements/wrongArgumentExtensionFunction.antlrtree.txt b/grammar/testData/diagnostics/inference/reportingImprovements/wrongArgumentExtensionFunction.antlrtree.txt index 0140ef3c9..aa778f44f 100644 --- a/grammar/testData/diagnostics/inference/reportingImprovements/wrongArgumentExtensionFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/reportingImprovements/wrongArgumentExtensionFunction.antlrtree.txt @@ -176,6 +176,4 @@ File: wrongArgumentExtensionFunction.kt - f1e7cd26edac1547ff2ca945978b8937 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/reportingImprovements/wrongArgumentPassedToLocalExtensionFunction.antlrtree.txt b/grammar/testData/diagnostics/inference/reportingImprovements/wrongArgumentPassedToLocalExtensionFunction.antlrtree.txt index d9ee8e3d1..191730e1c 100644 --- a/grammar/testData/diagnostics/inference/reportingImprovements/wrongArgumentPassedToLocalExtensionFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/reportingImprovements/wrongArgumentPassedToLocalExtensionFunction.antlrtree.txt @@ -1,5 +1,4 @@ -File: wrongArgumentPassedToLocalExtensionFunction.kt - b8c46e8740607be02bbefa7c0120aa81 - NL("\n") +File: wrongArgumentPassedToLocalExtensionFunction.kt - 5c35d768aa8e61e9982f5bb58785ead9 NL("\n") NL("\n") packageHeader @@ -573,6 +572,4 @@ File: wrongArgumentPassedToLocalExtensionFunction.kt - b8c46e8740607be02bbefa7c0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/returningLambdaInSuspendContext.antlrtree.txt b/grammar/testData/diagnostics/inference/returningLambdaInSuspendContext.antlrtree.txt index eeff3ee38..8f01a9ff0 100644 --- a/grammar/testData/diagnostics/inference/returningLambdaInSuspendContext.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/returningLambdaInSuspendContext.antlrtree.txt @@ -1,4 +1,5 @@ -File: returningLambdaInSuspendContext.kt - 67b95c79220f8a2563e32a101e7726cf +File: returningLambdaInSuspendContext.kt - 0c1ecb87431c84b3294765984e213e90 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inference/selectOfLambdaWithExtension.antlrtree.txt b/grammar/testData/diagnostics/inference/selectOfLambdaWithExtension.antlrtree.txt new file mode 100644 index 000000000..ff3c571fe --- /dev/null +++ b/grammar/testData/diagnostics/inference/selectOfLambdaWithExtension.antlrtree.txt @@ -0,0 +1,775 @@ +File: selectOfLambdaWithExtension.kt - cf66eb1e3612ab5882ec3aaa95e154b5 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("A") + ASSIGNMENT("=") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("w") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("myPrint") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + RCURL("}") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + anonymousFunction + FUN("fun") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + DOT(".") + parametersWithOptionalType + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + RCURL("}") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/selectOfLambdaWithExtensionDisabled.antlrtree.txt b/grammar/testData/diagnostics/inference/selectOfLambdaWithExtensionDisabled.antlrtree.txt new file mode 100644 index 000000000..ae5d130e3 --- /dev/null +++ b/grammar/testData/diagnostics/inference/selectOfLambdaWithExtensionDisabled.antlrtree.txt @@ -0,0 +1,775 @@ +File: selectOfLambdaWithExtensionDisabled.kt - da7a5f2a1d85a64f1cd9b012bb2a4776 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("A") + ASSIGNMENT("=") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("w") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("myPrint") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + RCURL("}") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + anonymousFunction + FUN("fun") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + DOT(".") + parametersWithOptionalType + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + RCURL("}") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/selectOfLambdaWithExtensionEnabled.antlrtree.txt b/grammar/testData/diagnostics/inference/selectOfLambdaWithExtensionEnabled.antlrtree.txt new file mode 100644 index 000000000..77e1808a3 --- /dev/null +++ b/grammar/testData/diagnostics/inference/selectOfLambdaWithExtensionEnabled.antlrtree.txt @@ -0,0 +1,776 @@ +File: selectOfLambdaWithExtensionEnabled.kt - 5643f089fa1658a46efcc3e67976c8b2 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("A") + ASSIGNMENT("=") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("w") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("myPrint") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("select") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + RCURL("}") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("select") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + anonymousFunction + FUN("fun") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + DOT(".") + parametersWithOptionalType + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + RCURL("}") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/smartCastFork.antlrtree.txt b/grammar/testData/diagnostics/inference/smartCastFork.antlrtree.txt new file mode 100644 index 000000000..828aa173c --- /dev/null +++ b/grammar/testData/diagnostics/inference/smartCastFork.antlrtree.txt @@ -0,0 +1,674 @@ +File: smartCastFork.kt - 9a17528f7d36946bbddf91f26ade3d13 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("w") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/specialCallsWithCallableReferences.antlrtree.txt b/grammar/testData/diagnostics/inference/specialCallsWithCallableReferences.antlrtree.txt index f6881b49c..7d40e059b 100644 --- a/grammar/testData/diagnostics/inference/specialCallsWithCallableReferences.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/specialCallsWithCallableReferences.antlrtree.txt @@ -1,4 +1,4 @@ -File: specialCallsWithCallableReferences.kt - b32876980d133442098ae42121f88522 +File: specialCallsWithCallableReferences.kt - 5409620520bccc644cd6b5dce24c3a25 NL("\n") NL("\n") NL("\n") @@ -393,6 +393,162 @@ File: specialCallsWithCallableReferences.kt - b32876980d133442098ae42121f88522 semis NL("\n") NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("poll0") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("bar2") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo4") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") topLevelObject declaration functionDeclaration diff --git a/grammar/testData/diagnostics/inference/specialCallsWithLambdas.antlrtree.txt b/grammar/testData/diagnostics/inference/specialCallsWithLambdas.antlrtree.txt new file mode 100644 index 000000000..ed15ddb17 --- /dev/null +++ b/grammar/testData/diagnostics/inference/specialCallsWithLambdas.antlrtree.txt @@ -0,0 +1,663 @@ +File: specialCallsWithLambdas.kt - a6afb8f988fa249d56f10ad9f4ddbb58 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("A") + ASSIGNMENT("=") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("w") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("myPrint") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RCURL("}") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + RCURL("}") + semi + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Throwable") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myPrint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/stubTypeForSubtyping.antlrtree.txt b/grammar/testData/diagnostics/inference/stubTypeForSubtyping.antlrtree.txt new file mode 100644 index 000000000..1301064f3 --- /dev/null +++ b/grammar/testData/diagnostics/inference/stubTypeForSubtyping.antlrtree.txt @@ -0,0 +1,349 @@ +File: stubTypeForSubtyping.kt - c53e3039f6f91b384aa05627ff2ac675 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("flag") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + quest + QUEST_WS("? ") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("run") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("let") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@run") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + semis + NL("\n") + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("let") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@run") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("24") + semis + NL("\n") + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/substitutions/hideLocalTypeForReturnTypeOfSingleExpressionFunction.antlrtree.txt b/grammar/testData/diagnostics/inference/substitutions/hideLocalTypeForReturnTypeOfSingleExpressionFunction.antlrtree.txt new file mode 100644 index 000000000..eeacee56e --- /dev/null +++ b/grammar/testData/diagnostics/inference/substitutions/hideLocalTypeForReturnTypeOfSingleExpressionFunction.antlrtree.txt @@ -0,0 +1,783 @@ +File: hideLocalTypeForReturnTypeOfSingleExpressionFunction.kt - 64d30473c2e46b49bd70c132fd60d567 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("fPrivate") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("private") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fPublic") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("public") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("fPrivate") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("fPublic") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("FieldTest") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("result") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("qux") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("also") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("result") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("b") + QUOTE_CLOSE(""") + RCURL("}") + semis + NL("\n") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("also") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("result") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + RCURL("}") + semis + NL("\n") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("also") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("result") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("!") + QUOTE_CLOSE(""") + RCURL("}") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ttt") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("qqq") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ttt") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("qux") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/substitutions/kt6081SubstituteIntoClassCorrectly.antlrtree.txt b/grammar/testData/diagnostics/inference/substitutions/kt6081SubstituteIntoClassCorrectly.antlrtree.txt index 2eb4ba36a..8cde036f5 100644 --- a/grammar/testData/diagnostics/inference/substitutions/kt6081SubstituteIntoClassCorrectly.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/substitutions/kt6081SubstituteIntoClassCorrectly.antlrtree.txt @@ -325,6 +325,4 @@ File: kt6081SubstituteIntoClassCorrectly.kt - ee7a0674e2f9b06f4aa4955333d44894 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/substitutions/substitutionIntoAnonymousClass.antlrtree.txt b/grammar/testData/diagnostics/inference/substitutions/substitutionIntoAnonymousClass.antlrtree.txt index 3486e42c5..580fdd96b 100644 --- a/grammar/testData/diagnostics/inference/substitutions/substitutionIntoAnonymousClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/substitutions/substitutionIntoAnonymousClass.antlrtree.txt @@ -606,6 +606,4 @@ File: substitutionIntoAnonymousClass.kt - 2f950343dc806069b71531211dcf4c96 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/substitutions/substitutionIntoInnerClass.antlrtree.txt b/grammar/testData/diagnostics/inference/substitutions/substitutionIntoInnerClass.antlrtree.txt index 4d1962c38..83c368db1 100644 --- a/grammar/testData/diagnostics/inference/substitutions/substitutionIntoInnerClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/substitutions/substitutionIntoInnerClass.antlrtree.txt @@ -603,6 +603,4 @@ File: substitutionIntoInnerClass.kt - abea4ff9e1be4e10acd1990900c9b8bd semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/tryNumberLowerBoundsBeforeUpperBounds.antlrtree.txt b/grammar/testData/diagnostics/inference/tryNumberLowerBoundsBeforeUpperBounds.antlrtree.txt index 735e44248..f9d5c6cc4 100644 --- a/grammar/testData/diagnostics/inference/tryNumberLowerBoundsBeforeUpperBounds.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/tryNumberLowerBoundsBeforeUpperBounds.antlrtree.txt @@ -332,6 +332,4 @@ File: tryNumberLowerBoundsBeforeUpperBounds.kt - fa298040ce0322bee8b58ca51a84504 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/typeConstructorMismatch.antlrtree.txt b/grammar/testData/diagnostics/inference/typeConstructorMismatch.antlrtree.txt index d1698481d..5817c6690 100644 --- a/grammar/testData/diagnostics/inference/typeConstructorMismatch.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/typeConstructorMismatch.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeConstructorMismatch.kt - a755f59bdd0e6c30045915a8678ad164 - NL("\n") +File: typeConstructorMismatch.kt - 444a2d0de71dfbdf1fbc5675245ffc87 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/inference/typeInferenceExpectedTypeMismatch.antlrtree.txt b/grammar/testData/diagnostics/inference/typeInferenceExpectedTypeMismatch.antlrtree.txt index 634929b01..66dde235b 100644 --- a/grammar/testData/diagnostics/inference/typeInferenceExpectedTypeMismatch.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/typeInferenceExpectedTypeMismatch.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeInferenceExpectedTypeMismatch.kt - 0516a0b5da617ca3b4fdc0a3619a297f - NL("\n") +File: typeInferenceExpectedTypeMismatch.kt - fd7af79f9a0fcb910ff1ad36104ed534 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/inference/underscoredTypeArgument.antlrtree.txt b/grammar/testData/diagnostics/inference/underscoredTypeArgument.antlrtree.txt new file mode 100644 index 000000000..046bbe493 --- /dev/null +++ b/grammar/testData/diagnostics/inference/underscoredTypeArgument.antlrtree.txt @@ -0,0 +1,314 @@ +File: underscoredTypeArgument.kt - 7095e75895e38be83340814c24850fc7 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/underscoredTypeInForbiddenPositions.antlrtree.txt b/grammar/testData/diagnostics/inference/underscoredTypeInForbiddenPositions.antlrtree.txt new file mode 100644 index 000000000..5c5babf9c --- /dev/null +++ b/grammar/testData/diagnostics/inference/underscoredTypeInForbiddenPositions.antlrtree.txt @@ -0,0 +1,2315 @@ +File: underscoredTypeInForbiddenPositions.kt - abcd8e067c4507d5df98498ca8fc532b (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar0") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar1") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar3") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar4") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("_") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("A1") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("_") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("A2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("A3") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("A4") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("A5") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + ASSIGNMENT("=") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + type + functionType + functionTypeParameters + LPAREN("(") + type + parenthesizedType + LPAREN("(") + type + parenthesizedType + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RPAREN(")") + RPAREN(")") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo3") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo5") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("_") + RANGLE(">") + simpleIdentifier + Identifier("foo6") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("_") + RANGLE(">") + simpleIdentifier + Identifier("foo7") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AA1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("_") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AA2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("`_`") + RANGLE(">") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + RCURL("}") + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + RCURL("}") + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + functionType + functionTypeParameters + LPAREN("(") + type + parenthesizedType + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RPAREN(")") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + RCURL("}") + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Int") + COMMA(",") + Identifier("_") + ARROW("->") + Identifier("Float") + RANGLE(">") + LCURL("{") + LCURL("{") + Identifier("it") + RCURL("}") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + RCURL("}") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + RCURL("}") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + RCURL("}") + RCURL("}") + NL("\n") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z32") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z34") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Pair") + typeArguments + LANGLE("<") + typeProjection + type + parenthesizedType + LPAREN("(") + type + parenthesizedType + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RPAREN(")") + RPAREN(")") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("1f") + NL("\n") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x8") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x9") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RANGLE(">") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RCURL("}") + NL("\n") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("_") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + IF("if") + LPAREN("(") + Identifier("x11") + IS("is") + Identifier("_") + RPAREN(")") + LCURL("{") + RCURL("}") + NL("\n") + IF("if") + LPAREN("(") + Identifier("x11") + IS("is") + Identifier("Foo") + LANGLE("<") + Identifier("_") + RANGLE(">") + RPAREN(")") + LCURL("{") + RCURL("}") + NL("\n") + NL("\n") + Identifier("x10") + AS("as") + Identifier("_") + NL("\n") + Identifier("x10") + AS("as") + Identifier("Foo") + LANGLE("<") + Identifier("_") + RANGLE(">") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x12") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("_") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x13") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("_") + valueArguments + LPAREN("(") + RPAREN(")") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x14") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Anno") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + RPAREN(")") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x15") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("Anno") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/unsoundness1.antlrtree.txt b/grammar/testData/diagnostics/inference/unsoundness1.antlrtree.txt new file mode 100644 index 000000000..21dffbe30 --- /dev/null +++ b/grammar/testData/diagnostics/inference/unsoundness1.antlrtree.txt @@ -0,0 +1,704 @@ +File: unsoundness1.kt - 88b9d6b560cb2896c29e3083423c4038 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("F") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("U") + RANGLE(">") + simpleIdentifier + Identifier("coerce") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("constrain") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Constrain") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + COMMA(",") + typeProjection + MULT("*") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bind") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bind") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("constrain") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bind") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("upcast") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Constrain") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("C") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bind") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("C") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("constrain") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Constrain") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + quest + QUEST_NO_WS("?") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("upcast") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("U") + RANGLE(">") + simpleIdentifier + Identifier("coerce2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("constrain") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Constrain") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + COMMA(",") + typeProjection + MULT("*") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bind") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bind") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("constrain") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bind") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("upcast") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/unsoundness2.antlrtree.txt b/grammar/testData/diagnostics/inference/unsoundness2.antlrtree.txt new file mode 100644 index 000000000..db66e7944 --- /dev/null +++ b/grammar/testData/diagnostics/inference/unsoundness2.antlrtree.txt @@ -0,0 +1,521 @@ +File: unsoundness2.kt - 35b828e807e502cc381161ca03ae33a8 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("args") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("zero") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("coerce") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("U") + RANGLE(">") + simpleIdentifier + Identifier("coerce") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("t") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("constrain") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Constrain") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("U") + COMMA(",") + typeProjection + MULT("*") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("bind") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bind") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("constrain") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bind") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("upcast") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Constrain") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("C") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bind") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("C") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("constrain") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Constrain") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + quest + QUEST_NO_WS("?") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("upcast") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inference/upperBounds/doNotInferFromBoundsOnly.antlrtree.txt b/grammar/testData/diagnostics/inference/upperBounds/doNotInferFromBoundsOnly.antlrtree.txt index 1cbed52e9..581280c46 100644 --- a/grammar/testData/diagnostics/inference/upperBounds/doNotInferFromBoundsOnly.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/upperBounds/doNotInferFromBoundsOnly.antlrtree.txt @@ -1,5 +1,4 @@ -File: doNotInferFromBoundsOnly.kt - 3c2aaa87d752eb6bbfd0fc7604b5edb9 - NL("\n") +File: doNotInferFromBoundsOnly.kt - 9293d90f87d7526d5adf65145e05493d packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/inference/upperBounds/inferringVariableByMaterializeAndUpperBound.antlrtree.txt b/grammar/testData/diagnostics/inference/upperBounds/inferringVariableByMaterializeAndUpperBound.antlrtree.txt index c3f0ede1e..d4ab35e1f 100644 --- a/grammar/testData/diagnostics/inference/upperBounds/inferringVariableByMaterializeAndUpperBound.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/upperBounds/inferringVariableByMaterializeAndUpperBound.antlrtree.txt @@ -240,6 +240,4 @@ File: inferringVariableByMaterializeAndUpperBound.kt - c0bcd83e221babf1af6c5acf0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inference/upperBounds/intersectUpperBounds.antlrtree.txt b/grammar/testData/diagnostics/inference/upperBounds/intersectUpperBounds.antlrtree.txt index 8663e2293..ee25fa175 100644 --- a/grammar/testData/diagnostics/inference/upperBounds/intersectUpperBounds.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/upperBounds/intersectUpperBounds.antlrtree.txt @@ -1,4 +1,4 @@ -File: intersectUpperBounds.kt - db794c31fddcb9e26a42ad132b7cf74f +File: intersectUpperBounds.kt - 3a38c103f657dda6da5b425df6b4f12e NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inference/upperBounds/kt2856.antlrtree.txt b/grammar/testData/diagnostics/inference/upperBounds/kt2856.antlrtree.txt index 2ba4b6609..95f68f342 100644 --- a/grammar/testData/diagnostics/inference/upperBounds/kt2856.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/upperBounds/kt2856.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2856.kt - 6a9aa3e4b53da6cfd86ff7cc1d852a6f +File: kt2856.kt - b7648aa926ffd79c195209e0347b80a3 + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -552,5 +553,5 @@ File: kt2856.kt - 6a9aa3e4b53da6cfd86ff7cc1d852a6f statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/upperBounds/useBoundsIfUnknownParameters.antlrtree.txt b/grammar/testData/diagnostics/inference/upperBounds/useBoundsIfUnknownParameters.antlrtree.txt index a28891063..65bcd1af7 100644 --- a/grammar/testData/diagnostics/inference/upperBounds/useBoundsIfUnknownParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/upperBounds/useBoundsIfUnknownParameters.antlrtree.txt @@ -1,5 +1,4 @@ -File: useBoundsIfUnknownParameters.kt - 6625d65956c8bb39b59490e7fe2c51a0 - NL("\n") +File: useBoundsIfUnknownParameters.kt - 5a8bd7632a60a0ee309e22b40092b358 packageHeader PACKAGE("package") identifier @@ -215,5 +214,5 @@ File: useBoundsIfUnknownParameters.kt - 6625d65956c8bb39b59490e7fe2c51a0 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inference/upperBounds/useBoundsToInferTypeParamsSimple.antlrtree.txt b/grammar/testData/diagnostics/inference/upperBounds/useBoundsToInferTypeParamsSimple.antlrtree.txt index ea6304a78..05090956a 100644 --- a/grammar/testData/diagnostics/inference/upperBounds/useBoundsToInferTypeParamsSimple.antlrtree.txt +++ b/grammar/testData/diagnostics/inference/upperBounds/useBoundsToInferTypeParamsSimple.antlrtree.txt @@ -1,5 +1,4 @@ -File: useBoundsToInferTypeParamsSimple.kt - dc4e8be00289236f3517503de37be9e0 - NL("\n") +File: useBoundsToInferTypeParamsSimple.kt - 4d090c01b1a86f023db2b38e880bbb9c packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/inference/violatingUpperBoundForSelfType.antlrtree.txt b/grammar/testData/diagnostics/inference/violatingUpperBoundForSelfType.antlrtree.txt new file mode 100644 index 000000000..d3f38a9c4 --- /dev/null +++ b/grammar/testData/diagnostics/inference/violatingUpperBoundForSelfType.antlrtree.txt @@ -0,0 +1,206 @@ +File: violatingUpperBoundForSelfType.kt - f5f4e085af0dadec575863759815baaf + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Enum") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("createMap") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("enumClass") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Class") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("reproduce") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("enumClass") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Class") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Enum") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("any") + QUOTE_CLOSE(""") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Class") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Enum") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("createMap") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("enumClass") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inference/violatingUpperBoundForSelfTypeError.antlrtree.txt b/grammar/testData/diagnostics/inference/violatingUpperBoundForSelfTypeError.antlrtree.txt new file mode 100644 index 000000000..7f1380562 --- /dev/null +++ b/grammar/testData/diagnostics/inference/violatingUpperBoundForSelfTypeError.antlrtree.txt @@ -0,0 +1,206 @@ +File: violatingUpperBoundForSelfTypeError.kt - 2a70db639507bf5c86c67ea28e7b5e96 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Enum") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("createMap") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("enumClass") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Class") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("reproduce") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("enumClass") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Class") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Enum") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("any") + QUOTE_CLOSE(""") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Class") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Enum") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("createMap") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("enumClass") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/infos/PropertiesWithBackingFields.antlrtree.txt b/grammar/testData/diagnostics/infos/PropertiesWithBackingFields.antlrtree.txt index 28d7d3efe..e90827dbc 100644 --- a/grammar/testData/diagnostics/infos/PropertiesWithBackingFields.antlrtree.txt +++ b/grammar/testData/diagnostics/infos/PropertiesWithBackingFields.antlrtree.txt @@ -1,4 +1,5 @@ -File: PropertiesWithBackingFields.kt - 3197c19c70e606f45f6e8d17992ab166 +File: PropertiesWithBackingFields.kt - c1e372ee3378d31c57452b78fc4ddb63 + NL("\n") packageHeader importList topLevelObject @@ -1280,5 +1281,5 @@ File: PropertiesWithBackingFields.kt - 3197c19c70e606f45f6e8d17992ab166 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/infos/SmartCasts.antlrtree.txt b/grammar/testData/diagnostics/infos/SmartCasts.antlrtree.txt index 210d3e5b7..af0d1a6f5 100644 --- a/grammar/testData/diagnostics/infos/SmartCasts.antlrtree.txt +++ b/grammar/testData/diagnostics/infos/SmartCasts.antlrtree.txt @@ -1,5 +1,4 @@ -File: SmartCasts.kt - e868bd405727ddf4ceb8d2d41efceaa2 - NL("\n") +File: SmartCasts.kt - c9e7b6d8200020ac237ff7667d0bbe3a packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/initializedAfterRethrow.antlrtree.txt b/grammar/testData/diagnostics/initializedAfterRethrow.antlrtree.txt index 0f4d6a291..7b13e30be 100644 --- a/grammar/testData/diagnostics/initializedAfterRethrow.antlrtree.txt +++ b/grammar/testData/diagnostics/initializedAfterRethrow.antlrtree.txt @@ -1,4 +1,6 @@ -File: initializedAfterRethrow.kt - b5ebc8ae486bf3bd94287f4b118eaa36 +File: initializedAfterRethrow.kt - af5de60135254fc689cf548c81fc7be2 + NL("\n") + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inline/anonymousObjects.antlrtree.txt b/grammar/testData/diagnostics/inline/anonymousObjects.antlrtree.txt index 416154df9..2d096d972 100644 --- a/grammar/testData/diagnostics/inline/anonymousObjects.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/anonymousObjects.antlrtree.txt @@ -155,6 +155,4 @@ File: anonymousObjects.kt - 6c0b94dfddc12696c045a97498e53d63 RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/assignment.antlrtree.txt b/grammar/testData/diagnostics/inline/assignment.antlrtree.txt index 27157a543..8e2a5b0cc 100644 --- a/grammar/testData/diagnostics/inline/assignment.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/assignment.antlrtree.txt @@ -1,4 +1,5 @@ -File: assignment.kt - 9a507444b5838865ba6b922a038a825c +File: assignment.kt - 3172ea56cdcf3ac9aa78225878f549b0 + NL("\n") NL("\n") packageHeader importList @@ -295,5 +296,5 @@ File: assignment.kt - 9a507444b5838865ba6b922a038a825c NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inline/binaryExpressions/andOr.antlrtree.txt b/grammar/testData/diagnostics/inline/binaryExpressions/andOr.antlrtree.txt index 0b6865a79..b0815f52a 100644 --- a/grammar/testData/diagnostics/inline/binaryExpressions/andOr.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/binaryExpressions/andOr.antlrtree.txt @@ -1,4 +1,5 @@ -File: andOr.kt - 862e9f302438ff0ae4dd550d74562b26 +File: andOr.kt - 7795047f5c5c4e56361fd4f08b8c5e76 + NL("\n") NL("\n") NL("\n") packageHeader @@ -489,5 +490,5 @@ File: andOr.kt - 862e9f302438ff0ae4dd550d74562b26 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inline/binaryExpressions/arrayAccess.antlrtree.txt b/grammar/testData/diagnostics/inline/binaryExpressions/arrayAccess.antlrtree.txt index 67836aa03..d00043ac8 100644 --- a/grammar/testData/diagnostics/inline/binaryExpressions/arrayAccess.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/binaryExpressions/arrayAccess.antlrtree.txt @@ -1,4 +1,6 @@ -File: arrayAccess.kt - 197dda068e97630437dea512fa3d2fea +File: arrayAccess.kt - 3b5489ea599a2c4259c10d1c20643c23 + NL("\n") + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inline/binaryExpressions/assignment.antlrtree.txt b/grammar/testData/diagnostics/inline/binaryExpressions/assignment.antlrtree.txt index a0f5a07ac..01038fda4 100644 --- a/grammar/testData/diagnostics/inline/binaryExpressions/assignment.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/binaryExpressions/assignment.antlrtree.txt @@ -1,4 +1,6 @@ -File: assignment.kt - 271baddb2fafbbe09bfb9d65611d25f5 +File: assignment.kt - 2b7882d09c5acfa832f60155fd130c59 + NL("\n") + NL("\n") NL("\n") NL("\n") packageHeader @@ -1080,6 +1082,4 @@ File: assignment.kt - 271baddb2fafbbe09bfb9d65611d25f5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/binaryExpressions/comparison.antlrtree.txt b/grammar/testData/diagnostics/inline/binaryExpressions/comparison.antlrtree.txt index 00d914233..e8cc9804b 100644 --- a/grammar/testData/diagnostics/inline/binaryExpressions/comparison.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/binaryExpressions/comparison.antlrtree.txt @@ -1,4 +1,6 @@ -File: comparison.kt - 44569d28b055c7244e07d07c102a4367 +File: comparison.kt - bef853fa329acf76b89131a52c69b842 + NL("\n") + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inline/binaryExpressions/componentAccess.antlrtree.txt b/grammar/testData/diagnostics/inline/binaryExpressions/componentAccess.antlrtree.txt index 6e6217206..06ee9cec9 100644 --- a/grammar/testData/diagnostics/inline/binaryExpressions/componentAccess.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/binaryExpressions/componentAccess.antlrtree.txt @@ -1,4 +1,5 @@ -File: componentAccess.kt - c5f2f1bdeea957df14fbee5b7272a364 +File: componentAccess.kt - 60d3b4ab0cf3cd1bc89caaa41d6ecc20 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inline/binaryExpressions/contains.antlrtree.txt b/grammar/testData/diagnostics/inline/binaryExpressions/contains.antlrtree.txt index 8859c5c58..54940b390 100644 --- a/grammar/testData/diagnostics/inline/binaryExpressions/contains.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/binaryExpressions/contains.antlrtree.txt @@ -1,4 +1,6 @@ -File: contains.kt - ad1ce5637308b174784425065595144a +File: contains.kt - e088c3243ac23597238871b2bb6b99be + NL("\n") + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inline/binaryExpressions/mathOperations.antlrtree.txt b/grammar/testData/diagnostics/inline/binaryExpressions/mathOperations.antlrtree.txt index b9074cc43..aa10ce74c 100644 --- a/grammar/testData/diagnostics/inline/binaryExpressions/mathOperations.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/binaryExpressions/mathOperations.antlrtree.txt @@ -1,4 +1,6 @@ -File: mathOperations.kt - 7be1f217b9050dc49f501dbecbb8a7ae +File: mathOperations.kt - f45996bcc34701d2db580b1768a8993b + NL("\n") + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inline/binaryExpressions/rangeTo.antlrtree.txt b/grammar/testData/diagnostics/inline/binaryExpressions/rangeTo.antlrtree.txt index a5c0fb58e..fe5efd05a 100644 --- a/grammar/testData/diagnostics/inline/binaryExpressions/rangeTo.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/binaryExpressions/rangeTo.antlrtree.txt @@ -1,4 +1,6 @@ -File: rangeTo.kt - b57f0c06c79cdb450c963412852858cd +File: rangeTo.kt - 3f1588fee3199c3134619f7704d8cad1 + NL("\n") + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inline/capture.antlrtree.txt b/grammar/testData/diagnostics/inline/capture.antlrtree.txt index 5a24ea8c5..18f84b8c0 100644 --- a/grammar/testData/diagnostics/inline/capture.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/capture.antlrtree.txt @@ -1,4 +1,6 @@ -File: capture.kt - e0403b1693786b18d4bf3fcbd069f646 +File: capture.kt - 9b645affd73f22fd740961d5fb0abad9 + NL("\n") + NL("\n") NL("\n") NL("\n") packageHeader @@ -1207,6 +1209,4 @@ File: capture.kt - e0403b1693786b18d4bf3fcbd069f646 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/constructor.antlrtree.txt b/grammar/testData/diagnostics/inline/constructor.antlrtree.txt index b16f80f55..fdac2e49c 100644 --- a/grammar/testData/diagnostics/inline/constructor.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/constructor.antlrtree.txt @@ -1,4 +1,4 @@ -File: constructor.kt - a8340aa8103a28458dcc65b2e5ae3e9a +File: constructor.kt - b7a2d85b7976e1692daf65dd73a6c16e packageHeader importList topLevelObject @@ -133,5 +133,5 @@ File: constructor.kt - a8340aa8103a28458dcc65b2e5ae3e9a NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inline/defaultLambdaInlineSuspend.antlrtree.txt b/grammar/testData/diagnostics/inline/defaultLambdaInlineSuspend.antlrtree.txt index 212b8e757..78d3934c1 100644 --- a/grammar/testData/diagnostics/inline/defaultLambdaInlineSuspend.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/defaultLambdaInlineSuspend.antlrtree.txt @@ -1,4 +1,5 @@ -File: defaultLambdaInlineSuspend.kt - b1c17c4cec05648f4448acac4efde46d +File: defaultLambdaInlineSuspend.kt - 0b5cf6dd565b3f219e634adedfdc62b7 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inline/defaultLambdaInlining.antlrtree.txt b/grammar/testData/diagnostics/inline/defaultLambdaInlining.antlrtree.txt index 094ad8f41..fe8bc9c50 100644 --- a/grammar/testData/diagnostics/inline/defaultLambdaInlining.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/defaultLambdaInlining.antlrtree.txt @@ -1232,6 +1232,4 @@ File: defaultLambdaInlining.kt - 9486f464689cfda15d60c86b07d4d493 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/extensionOnFunction.antlrtree.txt b/grammar/testData/diagnostics/inline/extensionOnFunction.antlrtree.txt index 8ab6a40de..5f0f11ffa 100644 --- a/grammar/testData/diagnostics/inline/extensionOnFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/extensionOnFunction.antlrtree.txt @@ -1,4 +1,6 @@ -File: extensionOnFunction.kt - 46b674af790033b1cef54655f25da8e5 +File: extensionOnFunction.kt - 358ba35bfd12d941dd0b8103439d0fa0 + NL("\n") + NL("\n") NL("\n") NL("\n") packageHeader @@ -726,6 +728,4 @@ File: extensionOnFunction.kt - 46b674af790033b1cef54655f25da8e5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/forbidExtensionCallsOnInlineFunctionalParameters_after.antlrtree.txt b/grammar/testData/diagnostics/inline/forbidExtensionCallsOnInlineFunctionalParameters_after.antlrtree.txt new file mode 100644 index 000000000..40d3547b5 --- /dev/null +++ b/grammar/testData/diagnostics/inline/forbidExtensionCallsOnInlineFunctionalParameters_after.antlrtree.txt @@ -0,0 +1,186 @@ +File: forbidExtensionCallsOnInlineFunctionalParameters_after.kt - 3cadf9bc60346608dfb25f3ba29f82fc + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + receiverType + parenthesizedType + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + DOT(".") + simpleIdentifier + Identifier("call") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("block") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("call") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inline/forbidExtensionCallsOnInlineFunctionalParameters_before.antlrtree.txt b/grammar/testData/diagnostics/inline/forbidExtensionCallsOnInlineFunctionalParameters_before.antlrtree.txt new file mode 100644 index 000000000..d7fdd412a --- /dev/null +++ b/grammar/testData/diagnostics/inline/forbidExtensionCallsOnInlineFunctionalParameters_before.antlrtree.txt @@ -0,0 +1,185 @@ +File: forbidExtensionCallsOnInlineFunctionalParameters_before.kt - ff324d70bd2758ca8237cd8c6a5a42d3 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + receiverType + parenthesizedType + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + DOT(".") + simpleIdentifier + Identifier("call") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("invoke") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("block") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("call") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inline/fromInlineToNoInline.antlrtree.txt b/grammar/testData/diagnostics/inline/fromInlineToNoInline.antlrtree.txt index a4af6e518..cccf113a2 100644 --- a/grammar/testData/diagnostics/inline/fromInlineToNoInline.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/fromInlineToNoInline.antlrtree.txt @@ -1,4 +1,5 @@ -File: fromInlineToNoInline.kt - 362c96094bd2212036b355cd6017e17b +File: fromInlineToNoInline.kt - fdf8e308a1b3d19457c893e1766a6e49 + NL("\n") packageHeader importList topLevelObject @@ -162,6 +163,4 @@ File: fromInlineToNoInline.kt - 362c96094bd2212036b355cd6017e17b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/functions.antlrtree.txt b/grammar/testData/diagnostics/inline/functions.antlrtree.txt index ab9ec7753..90e62cb7d 100644 --- a/grammar/testData/diagnostics/inline/functions.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/functions.antlrtree.txt @@ -1,4 +1,5 @@ -File: functions.kt - e1a7272d9ab9ffb06217da66b9640c97 +File: functions.kt - 384d34c66a0c037fa94f9db72133543e + NL("\n") NL("\n") NL("\n") packageHeader @@ -573,5 +574,5 @@ File: functions.kt - e1a7272d9ab9ffb06217da66b9640c97 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inline/inlinedReturnInBranch.antlrtree.txt b/grammar/testData/diagnostics/inline/inlinedReturnInBranch.antlrtree.txt new file mode 100644 index 000000000..545933c63 --- /dev/null +++ b/grammar/testData/diagnostics/inline/inlinedReturnInBranch.antlrtree.txt @@ -0,0 +1,365 @@ +File: inlinedReturnInBranch.kt - 024133dd8f1f420a8eb744e8881aa1e0 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("myRun") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("24") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + semis + NL("\n") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("24") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/inline/invoke.antlrtree.txt b/grammar/testData/diagnostics/inline/invoke.antlrtree.txt index 3dac57c9f..8797f6da2 100644 --- a/grammar/testData/diagnostics/inline/invoke.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/invoke.antlrtree.txt @@ -1,4 +1,5 @@ -File: invoke.kt - d5649006a3e06890326c0fa0b26c6803 +File: invoke.kt - 1125e396551072f889b2b47adf9c6c0e + NL("\n") NL("\n") NL("\n") packageHeader @@ -815,6 +816,4 @@ File: invoke.kt - d5649006a3e06890326c0fa0b26c6803 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/isCheck.antlrtree.txt b/grammar/testData/diagnostics/inline/isCheck.antlrtree.txt index dba00310b..606b75502 100644 --- a/grammar/testData/diagnostics/inline/isCheck.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/isCheck.antlrtree.txt @@ -1,4 +1,5 @@ -File: isCheck.kt - db8fdff60c29657b1c10e9749b330e88 +File: isCheck.kt - c0ccb3d4a42364f0d61be8223021e64d + NL("\n") NL("\n") packageHeader importList @@ -301,6 +302,4 @@ File: isCheck.kt - db8fdff60c29657b1c10e9749b330e88 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/kt15410.antlrtree.txt b/grammar/testData/diagnostics/inline/kt15410.antlrtree.txt index e4557cb3d..075735d8d 100644 --- a/grammar/testData/diagnostics/inline/kt15410.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/kt15410.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt15410.kt - 55b9cc7a401e109f5ce4857086d97272 - NL("\n") +File: kt15410.kt - 05087b8be84ac0c97cbf77b963a3a3ff NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inline/kt19679.antlrtree.txt b/grammar/testData/diagnostics/inline/kt19679.antlrtree.txt index 81a570683..b8d014c56 100644 --- a/grammar/testData/diagnostics/inline/kt19679.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/kt19679.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt19679.kt - 0e1526bdde83e0ccfefb0f6068ba6075 +File: kt19679.kt - c7a4f60d11fe56c70c9b1f744e4ed7cb + NL("\n") packageHeader importList topLevelObject @@ -122,6 +123,4 @@ File: kt19679.kt - 0e1526bdde83e0ccfefb0f6068ba6075 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/kt21177Warning.antlrtree.txt b/grammar/testData/diagnostics/inline/kt21177Warning.antlrtree.txt new file mode 100644 index 000000000..008ecc362 --- /dev/null +++ b/grammar/testData/diagnostics/inline/kt21177Warning.antlrtree.txt @@ -0,0 +1,265 @@ +File: kt21177Warning.kt - 3d8912774ea633a6aa98987e1b623d4e + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SomeContainer") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + CLASS("class") + simpleIdentifier + Identifier("Limit") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + FUN("fun") + simpleIdentifier + Identifier("makeLimit") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Limit") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Limit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("makeLimit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + modifiers + modifier + visibilityModifier + PROTECTED("protected") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inline/labeled.antlrtree.txt b/grammar/testData/diagnostics/inline/labeled.antlrtree.txt index 57ff6fbdc..f2c3968f2 100644 --- a/grammar/testData/diagnostics/inline/labeled.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/labeled.antlrtree.txt @@ -628,6 +628,4 @@ File: labeled.kt - 01f259fad30b680d6ea86ab6869366e8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/lambdaCast.antlrtree.txt b/grammar/testData/diagnostics/inline/lambdaCast.antlrtree.txt index 7de578182..f9904d8e6 100644 --- a/grammar/testData/diagnostics/inline/lambdaCast.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/lambdaCast.antlrtree.txt @@ -1,4 +1,5 @@ -File: lambdaCast.kt - a59d5f1ee3557e875f74b736acb148fc +File: lambdaCast.kt - 49fd5301d7d2fc6d8b8e89b10b270ac2 + NL("\n") NL("\n") packageHeader importList @@ -281,5 +282,5 @@ File: lambdaCast.kt - a59d5f1ee3557e875f74b736acb148fc NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inline/localFun.antlrtree.txt b/grammar/testData/diagnostics/inline/localFun.antlrtree.txt index 3c6a3a4a6..9853b9e53 100644 --- a/grammar/testData/diagnostics/inline/localFun.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/localFun.antlrtree.txt @@ -1,4 +1,5 @@ -File: localFun.kt - c75110746ba13eda47a7d9ba933fc9c1 +File: localFun.kt - a19684f2544695e961a13e36f4f3126a + NL("\n") packageHeader importList topLevelObject @@ -37,6 +38,4 @@ File: localFun.kt - c75110746ba13eda47a7d9ba933fc9c1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/messagesForUnsupportedInInline.antlrtree.txt b/grammar/testData/diagnostics/inline/messagesForUnsupportedInInline.antlrtree.txt index 21ed0413f..29dfaf915 100644 --- a/grammar/testData/diagnostics/inline/messagesForUnsupportedInInline.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/messagesForUnsupportedInInline.antlrtree.txt @@ -228,6 +228,4 @@ File: messagesForUnsupportedInInline.kt - 89e182787f696dc8c38beac189263900 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/nonLocalReturns/labeledReturn.antlrtree.txt b/grammar/testData/diagnostics/inline/nonLocalReturns/labeledReturn.antlrtree.txt index de3bab728..54282c0be 100644 --- a/grammar/testData/diagnostics/inline/nonLocalReturns/labeledReturn.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonLocalReturns/labeledReturn.antlrtree.txt @@ -1,4 +1,5 @@ -File: labeledReturn.kt - bb306a98694df5a35c939bae261ab7b6 +File: labeledReturn.kt - a8c27eb0105b1926bda6b71b60e9af5c + NL("\n") packageHeader importList topLevelObject @@ -540,6 +541,4 @@ File: labeledReturn.kt - bb306a98694df5a35c939bae261ab7b6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/nonLocalReturns/lambdaAsGeneric.antlrtree.txt b/grammar/testData/diagnostics/inline/nonLocalReturns/lambdaAsGeneric.antlrtree.txt index dceeadedf..bdd6dc8b4 100644 --- a/grammar/testData/diagnostics/inline/nonLocalReturns/lambdaAsGeneric.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonLocalReturns/lambdaAsGeneric.antlrtree.txt @@ -1,6 +1,4 @@ -File: lambdaAsGeneric.kt - ed0d8c321b3947a6897675a53055bc4b - NL("\n") - NL("\n") +File: lambdaAsGeneric.kt - 8bb0f4d4505f7e7f7346947376f42740 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inline/nonLocalReturns/lambdaAsNonFunction.antlrtree.txt b/grammar/testData/diagnostics/inline/nonLocalReturns/lambdaAsNonFunction.antlrtree.txt index d3975111a..68231c641 100644 --- a/grammar/testData/diagnostics/inline/nonLocalReturns/lambdaAsNonFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonLocalReturns/lambdaAsNonFunction.antlrtree.txt @@ -204,6 +204,4 @@ File: lambdaAsNonFunction.kt - a89c3ebabec0d8b9f2cfac00cee1394f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/nonLocalReturns/noInlineAnnotation.antlrtree.txt b/grammar/testData/diagnostics/inline/nonLocalReturns/noInlineAnnotation.antlrtree.txt index d29939e94..5c0c4c6ce 100644 --- a/grammar/testData/diagnostics/inline/nonLocalReturns/noInlineAnnotation.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonLocalReturns/noInlineAnnotation.antlrtree.txt @@ -1,4 +1,5 @@ -File: noInlineAnnotation.kt - 2dd5e71c6591ebbb81e552fd6e1ef8ae +File: noInlineAnnotation.kt - fbfafd1fac04ee00eaea04e70f13abe7 + NL("\n") NL("\n") packageHeader importList @@ -135,6 +136,4 @@ File: noInlineAnnotation.kt - 2dd5e71c6591ebbb81e552fd6e1ef8ae semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/nonLocalReturns/onlyLocalReturnLambda.antlrtree.txt b/grammar/testData/diagnostics/inline/nonLocalReturns/onlyLocalReturnLambda.antlrtree.txt index b4cf02e13..155278e0e 100644 --- a/grammar/testData/diagnostics/inline/nonLocalReturns/onlyLocalReturnLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonLocalReturns/onlyLocalReturnLambda.antlrtree.txt @@ -1,4 +1,5 @@ -File: onlyLocalReturnLambda.kt - 82bf2092bbf2bdafcc034ee270483355 +File: onlyLocalReturnLambda.kt - ccba9dbed1bf9a9957c25bd5ebce9ef9 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inline/nonLocalReturns/onlyLocalReturnLambdaBinaryExpr.antlrtree.txt b/grammar/testData/diagnostics/inline/nonLocalReturns/onlyLocalReturnLambdaBinaryExpr.antlrtree.txt index 3efb35aa3..a7d87d372 100644 --- a/grammar/testData/diagnostics/inline/nonLocalReturns/onlyLocalReturnLambdaBinaryExpr.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonLocalReturns/onlyLocalReturnLambdaBinaryExpr.antlrtree.txt @@ -1,4 +1,5 @@ -File: onlyLocalReturnLambdaBinaryExpr.kt - 4f3477488bb7298c959a1ff304b9b32f +File: onlyLocalReturnLambdaBinaryExpr.kt - 3bc3d29f396af5091a4bf136d84f4568 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inline/nonLocalReturns/propertyAccessorsAndConstructor.antlrtree.txt b/grammar/testData/diagnostics/inline/nonLocalReturns/propertyAccessorsAndConstructor.antlrtree.txt index 9d00acaaa..589a0c7de 100644 --- a/grammar/testData/diagnostics/inline/nonLocalReturns/propertyAccessorsAndConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonLocalReturns/propertyAccessorsAndConstructor.antlrtree.txt @@ -1,4 +1,5 @@ -File: propertyAccessorsAndConstructor.kt - fc094b68c434861af2f65b7246ae11d6 +File: propertyAccessorsAndConstructor.kt - dd026170a5d14a7ea560baea3c3c37ec + NL("\n") packageHeader importList topLevelObject @@ -523,6 +524,4 @@ File: propertyAccessorsAndConstructor.kt - fc094b68c434861af2f65b7246ae11d6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/nonLocalReturns/toOnlyLocal.antlrtree.txt b/grammar/testData/diagnostics/inline/nonLocalReturns/toOnlyLocal.antlrtree.txt index f17a4e100..14d0d490c 100644 --- a/grammar/testData/diagnostics/inline/nonLocalReturns/toOnlyLocal.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonLocalReturns/toOnlyLocal.antlrtree.txt @@ -1,4 +1,5 @@ -File: toOnlyLocal.kt - f7a6216273a1a2548afec4d7cb80bd19 +File: toOnlyLocal.kt - bd259ee77f9b31d99c38db723a410e3c + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inline/nonPublicMember/inNonPublicClass.antlrtree.txt b/grammar/testData/diagnostics/inline/nonPublicMember/inNonPublicClass.antlrtree.txt index 4ba87dc36..9bbdee1ce 100644 --- a/grammar/testData/diagnostics/inline/nonPublicMember/inNonPublicClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonPublicMember/inNonPublicClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: inNonPublicClass.kt - 4aa585b0e6faaba3db0815412bf01fa7 +File: inNonPublicClass.kt - de68bb8cc2319e7c3ff044dc07ec728f + NL("\n") NL("\n") packageHeader importList @@ -918,6 +919,4 @@ File: inNonPublicClass.kt - 4aa585b0e6faaba3db0815412bf01fa7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/nonPublicMember/inNonPublicInnerClass.antlrtree.txt b/grammar/testData/diagnostics/inline/nonPublicMember/inNonPublicInnerClass.antlrtree.txt index 1b0bd4f2f..f97cd7f10 100644 --- a/grammar/testData/diagnostics/inline/nonPublicMember/inNonPublicInnerClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonPublicMember/inNonPublicInnerClass.antlrtree.txt @@ -668,6 +668,4 @@ File: inNonPublicInnerClass.kt - 4ebae0505399a6ca7ff62a9c198148dc semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/nonPublicMember/inPackage.antlrtree.txt b/grammar/testData/diagnostics/inline/nonPublicMember/inPackage.antlrtree.txt index 414ec41ee..4239865d2 100644 --- a/grammar/testData/diagnostics/inline/nonPublicMember/inPackage.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonPublicMember/inPackage.antlrtree.txt @@ -1,4 +1,5 @@ -File: inPackage.kt - a4c8c8820841803050d235b55b0b01c7 +File: inPackage.kt - 9b31b38b82a00918bffa5524e9648543 + NL("\n") NL("\n") NL("\n") packageHeader @@ -396,6 +397,4 @@ File: inPackage.kt - a4c8c8820841803050d235b55b0b01c7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/nonPublicMember/inPublicClass.antlrtree.txt b/grammar/testData/diagnostics/inline/nonPublicMember/inPublicClass.antlrtree.txt index 53f353101..585463cb6 100644 --- a/grammar/testData/diagnostics/inline/nonPublicMember/inPublicClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonPublicMember/inPublicClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: inPublicClass.kt - dcb46596d51022099f38c925a00c1b29 +File: inPublicClass.kt - da1090a350f9a8616bade7e909c8ba06 + NL("\n") NL("\n") packageHeader importList @@ -480,6 +481,4 @@ File: inPublicClass.kt - dcb46596d51022099f38c925a00c1b29 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/nonPublicMember/localClass.antlrtree.txt b/grammar/testData/diagnostics/inline/nonPublicMember/localClass.antlrtree.txt index cfd6ceb22..6dce41ccf 100644 --- a/grammar/testData/diagnostics/inline/nonPublicMember/localClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonPublicMember/localClass.antlrtree.txt @@ -134,6 +134,4 @@ File: localClass.kt - fb0e7622600e978853b95eda7aedcee8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/nonPublicMember/localClass2.antlrtree.txt b/grammar/testData/diagnostics/inline/nonPublicMember/localClass2.antlrtree.txt index 7841f3051..9e0d7ea4f 100644 --- a/grammar/testData/diagnostics/inline/nonPublicMember/localClass2.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonPublicMember/localClass2.antlrtree.txt @@ -1,4 +1,5 @@ -File: localClass2.kt - c399618d92907ee17bd9568da1aac6ef +File: localClass2.kt - b94723aa2e490770d695b1aac240efea + NL("\n") packageHeader importList topLevelObject @@ -116,6 +117,4 @@ File: localClass2.kt - c399618d92907ee17bd9568da1aac6ef NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/nonPublicMember/localFun.antlrtree.txt b/grammar/testData/diagnostics/inline/nonPublicMember/localFun.antlrtree.txt index 9ac451498..520e9fa4c 100644 --- a/grammar/testData/diagnostics/inline/nonPublicMember/localFun.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonPublicMember/localFun.antlrtree.txt @@ -1,4 +1,5 @@ -File: localFun.kt - 745b4546679ef0b1280c128f22620c91 +File: localFun.kt - 9039830a3b67597c8689035dcbcb0b68 + NL("\n") packageHeader importList topLevelObject @@ -88,6 +89,4 @@ File: localFun.kt - 745b4546679ef0b1280c128f22620c91 NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/nonVirtualMembersWithInline.antlrtree.txt b/grammar/testData/diagnostics/inline/nonVirtualMembersWithInline.antlrtree.txt index ecf78b4b8..7ebb94ea5 100644 --- a/grammar/testData/diagnostics/inline/nonVirtualMembersWithInline.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nonVirtualMembersWithInline.antlrtree.txt @@ -1,4 +1,5 @@ -File: nonVirtualMembersWithInline.kt - 91dd696b4efa3d8830287db8da1d5a65 +File: nonVirtualMembersWithInline.kt - 875eae5b75ea247de2613f7b63c3680d + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inline/nothingToInline.antlrtree.txt b/grammar/testData/diagnostics/inline/nothingToInline.antlrtree.txt index 2d5cd0004..a6e7d4a30 100644 --- a/grammar/testData/diagnostics/inline/nothingToInline.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nothingToInline.antlrtree.txt @@ -1,4 +1,5 @@ -File: nothingToInline.kt - 876b0ccbcef56e284797970293c932a6 +File: nothingToInline.kt - 7ef54971ebd58e14f246bf9174d77c41 + NL("\n") NL("\n") NL("\n") packageHeader @@ -323,6 +324,4 @@ File: nothingToInline.kt - 876b0ccbcef56e284797970293c932a6 NL("\n") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/nullabilityOperations.antlrtree.txt b/grammar/testData/diagnostics/inline/nullabilityOperations.antlrtree.txt index 776026d44..eed266956 100644 --- a/grammar/testData/diagnostics/inline/nullabilityOperations.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nullabilityOperations.antlrtree.txt @@ -1,4 +1,5 @@ -File: nullabilityOperations.kt - b81cd2843e34cc1aa23c8f8dcac8c40b +File: nullabilityOperations.kt - 0d4e6b8b933cf5abb55e803408561c35 + NL("\n") NL("\n") packageHeader importList @@ -426,5 +427,5 @@ File: nullabilityOperations.kt - b81cd2843e34cc1aa23c8f8dcac8c40b NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inline/nullableFunction.antlrtree.txt b/grammar/testData/diagnostics/inline/nullableFunction.antlrtree.txt index f2608efcf..8415d3756 100644 --- a/grammar/testData/diagnostics/inline/nullableFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/nullableFunction.antlrtree.txt @@ -1,4 +1,5 @@ -File: nullableFunction.kt - 4806c8ac75f9e1f1650b82a6fa5cfa92 +File: nullableFunction.kt - 962b49016626e2349b547488f547bf48 + NL("\n") NL("\n") NL("\n") packageHeader @@ -524,6 +525,4 @@ File: nullableFunction.kt - 4806c8ac75f9e1f1650b82a6fa5cfa92 NL("\n") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/overrideWithInline.antlrtree.txt b/grammar/testData/diagnostics/inline/overrideWithInline.antlrtree.txt index c8ba87fa0..536313f53 100644 --- a/grammar/testData/diagnostics/inline/overrideWithInline.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/overrideWithInline.antlrtree.txt @@ -1,4 +1,5 @@ -File: overrideWithInline.kt - e8da6cbdcd90f86ca976b5047e385b45 +File: overrideWithInline.kt - a87ef69efc2bca92496c378dcdf60a28 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inline/parenthesized.antlrtree.txt b/grammar/testData/diagnostics/inline/parenthesized.antlrtree.txt index b75ab749e..b49a80c50 100644 --- a/grammar/testData/diagnostics/inline/parenthesized.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/parenthesized.antlrtree.txt @@ -1,4 +1,4 @@ -File: parenthesized.kt - e65d3c93c90597044492400498fb26b7 +File: parenthesized.kt - 34fd845dc70d83a6d4ce1e33b06e8c35 NL("\n") NL("\n") packageHeader @@ -1165,5 +1165,5 @@ File: parenthesized.kt - e65d3c93c90597044492400498fb26b7 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inline/privateClass.antlrtree.txt b/grammar/testData/diagnostics/inline/privateClass.antlrtree.txt index 8c153f5f8..f3f54f112 100644 --- a/grammar/testData/diagnostics/inline/privateClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/privateClass.antlrtree.txt @@ -1,4 +1,6 @@ -File: privateClass.kt - 506bae61f912853cd08a516cbb3cc58c +File: privateClass.kt - 5b243fa38b64fc9d1b1f8c57010a6aaf + NL("\n") + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inline/propagation.antlrtree.txt b/grammar/testData/diagnostics/inline/propagation.antlrtree.txt index f30189081..b30d33da2 100644 --- a/grammar/testData/diagnostics/inline/propagation.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/propagation.antlrtree.txt @@ -1,4 +1,5 @@ -File: propagation.kt - df50fe477c1d82ac1fa62f38f7fc8c4d +File: propagation.kt - 87c31bc5268ae13daf9aed1a91deb8bf + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inline/property/invoke.antlrtree.txt b/grammar/testData/diagnostics/inline/property/invoke.antlrtree.txt index 141ebf93a..143dac906 100644 --- a/grammar/testData/diagnostics/inline/property/invoke.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/property/invoke.antlrtree.txt @@ -1,4 +1,5 @@ -File: invoke.kt - 6f1243754fe09f6187463e64ea27dce5 +File: invoke.kt - 616d31fa180a9853bbb9abd44dce203e + NL("\n") NL("\n") NL("\n") packageHeader @@ -552,6 +553,4 @@ File: invoke.kt - 6f1243754fe09f6187463e64ea27dce5 Identifier("ext") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/property/propertyWithBackingField.antlrtree.txt b/grammar/testData/diagnostics/inline/property/propertyWithBackingField.antlrtree.txt index 354422506..5973bfc32 100644 --- a/grammar/testData/diagnostics/inline/property/propertyWithBackingField.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/property/propertyWithBackingField.antlrtree.txt @@ -1,4 +1,5 @@ -File: propertyWithBackingField.kt - 2a2c51f214634d22fcc636d3d833f17b +File: propertyWithBackingField.kt - 397108dc5f710c0ce9f43c531b85c28d + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/inline/property/unsupportedConstruction.antlrtree.txt b/grammar/testData/diagnostics/inline/property/unsupportedConstruction.antlrtree.txt index fd20e4eba..3502f46a1 100644 --- a/grammar/testData/diagnostics/inline/property/unsupportedConstruction.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/property/unsupportedConstruction.antlrtree.txt @@ -1,4 +1,5 @@ -File: unsupportedConstruction.kt - 08cd5b196365afea16a5e605847bc4f0 +File: unsupportedConstruction.kt - 91deaabf5b1097635db8677091fb4b77 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inline/property/virtualProperty.antlrtree.txt b/grammar/testData/diagnostics/inline/property/virtualProperty.antlrtree.txt index 4496faaeb..a1cacc71a 100644 --- a/grammar/testData/diagnostics/inline/property/virtualProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/property/virtualProperty.antlrtree.txt @@ -1,4 +1,5 @@ -File: virtualProperty.kt - 0d60b5def26c89a9188cb69fdf547291 +File: virtualProperty.kt - 68d7ffcb53f7087eca80e0a3bf733271 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inline/protectedCallDepecation.main.antlrtree.txt b/grammar/testData/diagnostics/inline/protectedCallDepecation.main.antlrtree.txt index 82d66d297..12108c0c8 100644 --- a/grammar/testData/diagnostics/inline/protectedCallDepecation.main.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/protectedCallDepecation.main.antlrtree.txt @@ -1,4 +1,4 @@ -File: protectedCallDepecation.main.kt - fc6237f38abba3c67443d642013c6929 +File: protectedCallDepecation.main.kt - 3527fd879abf5d635a48749d26bb17f3 packageHeader importList topLevelObject @@ -1259,5 +1259,5 @@ File: protectedCallDepecation.main.kt - fc6237f38abba3c67443d642013c6929 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inline/protectedCallError.main.antlrtree.txt b/grammar/testData/diagnostics/inline/protectedCallError.main.antlrtree.txt index 90a37b854..4a416cae7 100644 --- a/grammar/testData/diagnostics/inline/protectedCallError.main.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/protectedCallError.main.antlrtree.txt @@ -1,4 +1,4 @@ -File: protectedCallError.main.kt - fc6237f38abba3c67443d642013c6929 +File: protectedCallError.main.kt - 3527fd879abf5d635a48749d26bb17f3 packageHeader importList topLevelObject @@ -1259,5 +1259,5 @@ File: protectedCallError.main.kt - fc6237f38abba3c67443d642013c6929 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inline/publishedApi.antlrtree.txt b/grammar/testData/diagnostics/inline/publishedApi.antlrtree.txt index bc03ff6ec..c33c55d52 100644 --- a/grammar/testData/diagnostics/inline/publishedApi.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/publishedApi.antlrtree.txt @@ -1,4 +1,4 @@ -File: publishedApi.kt - e0893f185c5c22a2be64f58aaeab19c5 +File: publishedApi.kt - c5d310de3f0534a160e664ad76def540 NL("\n") packageHeader importList @@ -3051,6 +3051,4 @@ File: publishedApi.kt - e0893f185c5c22a2be64f58aaeab19c5 literalConstant IntegerLiteral("1") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/recursion.antlrtree.txt b/grammar/testData/diagnostics/inline/recursion.antlrtree.txt index 5a25d94ee..df0896527 100644 --- a/grammar/testData/diagnostics/inline/recursion.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/recursion.antlrtree.txt @@ -1,4 +1,5 @@ -File: recursion.kt - 06bce62444d8463d9dee4d8b45e84afe +File: recursion.kt - 5a142a57030a8886b9d4559ed74690ea + NL("\n") NL("\n") NL("\n") NL("\n") @@ -646,6 +647,4 @@ File: recursion.kt - 06bce62444d8463d9dee4d8b45e84afe semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/regressions/kt4341.antlrtree.txt b/grammar/testData/diagnostics/inline/regressions/kt4341.antlrtree.txt index 20968eb18..c114b7e4f 100644 --- a/grammar/testData/diagnostics/inline/regressions/kt4341.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/regressions/kt4341.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt4341.kt - 5fb1410761b6f3e659fbeb557638dbf1 +File: kt4341.kt - e584e66f9c7edd82be4a7f00683451c5 + NL("\n") NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/inline/returns.antlrtree.txt b/grammar/testData/diagnostics/inline/returns.antlrtree.txt index e57ffb973..4ea97b249 100644 --- a/grammar/testData/diagnostics/inline/returns.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/returns.antlrtree.txt @@ -1,4 +1,5 @@ -File: returns.kt - 101d35cf7b01ba30896512ca845eca3f +File: returns.kt - 96d800015907ac42de6216904559a1f9 + NL("\n") packageHeader importList topLevelObject @@ -620,6 +621,4 @@ File: returns.kt - 101d35cf7b01ba30896512ca845eca3f primaryExpression thisExpression THIS("this") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/sam.test.antlrtree.txt b/grammar/testData/diagnostics/inline/sam.test.antlrtree.txt index 6f0a0feae..b9720d4e6 100644 --- a/grammar/testData/diagnostics/inline/sam.test.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/sam.test.antlrtree.txt @@ -1,4 +1,4 @@ -File: sam.test.kt - dc3573bfd91844baae199635d7a0a27d +File: sam.test.kt - 2c0297cdb93a0127352e9b93871d5a05 packageHeader importList topLevelObject @@ -1116,5 +1116,5 @@ File: sam.test.kt - dc3573bfd91844baae199635d7a0a27d NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inline/stringTemplate.antlrtree.txt b/grammar/testData/diagnostics/inline/stringTemplate.antlrtree.txt index d7850d8a2..16175f361 100644 --- a/grammar/testData/diagnostics/inline/stringTemplate.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/stringTemplate.antlrtree.txt @@ -1,4 +1,5 @@ -File: stringTemplate.kt - d3035d4eb7c86f40bce07af9fcc30d6b +File: stringTemplate.kt - 9bb13cd1a95b6b125a2ead11735b7834 + NL("\n") NL("\n") packageHeader importList @@ -274,5 +275,5 @@ File: stringTemplate.kt - d3035d4eb7c86f40bce07af9fcc30d6b NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inline/superCall.1.antlrtree.txt b/grammar/testData/diagnostics/inline/superCall.1.antlrtree.txt new file mode 100644 index 000000000..a36c1c83e --- /dev/null +++ b/grammar/testData/diagnostics/inline/superCall.1.antlrtree.txt @@ -0,0 +1,244 @@ +File: superCall.1.kt - bed4e87cb686d9d3630c45a41b5d3654 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("X") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("fail") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("doTest") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inline/superCall.2.antlrtree.txt b/grammar/testData/diagnostics/inline/superCall.2.antlrtree.txt new file mode 100644 index 000000000..ca9fd3daa --- /dev/null +++ b/grammar/testData/diagnostics/inline/superCall.2.antlrtree.txt @@ -0,0 +1,88 @@ +File: superCall.2.kt - 7a6f417d87092176d240c2e33b4581d6 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("X") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("doTest") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inline/superCallDepecationWarning.main.antlrtree.txt b/grammar/testData/diagnostics/inline/superCallDepecationWarning.main.antlrtree.txt new file mode 100644 index 000000000..0a44230c9 --- /dev/null +++ b/grammar/testData/diagnostics/inline/superCallDepecationWarning.main.antlrtree.txt @@ -0,0 +1,2386 @@ +File: superCallDepecationWarning.main.kt - 032d7e16206e409a0c2bda6a3469272d + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("AndroidTargetConfigurator") + COLON(":") + NL("\n") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + NL("\n") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ModuleConfiguratorWithTests") + COMMA(",") + NL("\n") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("AndroidModuleConfigurator") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("inlineFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("classFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ModuleConfiguratorWithTests") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AndroidModuleConfigurator") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("PublishedApi") + NL("\n") + modifier + visibilityModifier + INTERNAL("internal") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("inlineFunPublished") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("classFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ModuleConfiguratorWithTests") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AndroidModuleConfigurator") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("inlineFunAnonymousObjects") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("classFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ModuleConfiguratorWithTests") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AndroidModuleConfigurator") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("run") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER_AT("super@AndroidTargetConfigurator") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("classFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ModuleConfiguratorWithTests") + RANGLE(">") + AT_NO_WS("@") + simpleIdentifier + Identifier("AndroidTargetConfigurator") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AndroidModuleConfigurator") + RANGLE(">") + AT_NO_WS("@") + simpleIdentifier + Identifier("AndroidTargetConfigurator") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("run") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("inlineFunAnonymousNoDiagnostics") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("AndroidTargetConfigurator") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ModuleConfiguratorWithTests") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("AndroidModuleConfigurator") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getConfiguratorSettings") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AndroidTargetConfigurator") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("anonymousInline") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("classFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ModuleConfiguratorWithTests") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AndroidModuleConfigurator") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("run") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("classFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ModuleConfiguratorWithTests") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AndroidModuleConfigurator") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("run") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("inlineInternal") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("classFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ModuleConfiguratorWithTests") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AndroidModuleConfigurator") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("inlinePrivate") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("classFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ModuleConfiguratorWithTests") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AndroidModuleConfigurator") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getConfiguratorSettings") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + NL("\n") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("classFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ModuleConfiguratorWithTests") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AndroidModuleConfigurator") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("noInline") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("classFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ModuleConfiguratorWithTests") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AndroidModuleConfigurator") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("run") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER_AT("super@AndroidTargetConfigurator") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("classFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ModuleConfiguratorWithTests") + RANGLE(">") + AT_NO_WS("@") + simpleIdentifier + Identifier("AndroidTargetConfigurator") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AndroidModuleConfigurator") + RANGLE(">") + AT_NO_WS("@") + simpleIdentifier + Identifier("AndroidTargetConfigurator") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getConfiguratorSettings") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("run") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("classFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Class") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ModuleConfiguratorWithTests") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ModuleConfiguratorWithSettings") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getConfiguratorSettings") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("K") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ModuleConfiguratorWithSettings") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getConfiguratorSettings") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("AndroidModuleConfigurator") + COLON(":") + NL("\n") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ModuleConfiguratorWithSettings") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getConfiguratorSettings") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("O") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("FooSealed") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("FooSealed") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("FooSealed") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("classFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("FooEmum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("classFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("classFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Class") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("FooOuter") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("FooInner") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER_AT("super@FooOuter") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("classFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("classFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inline/superCallFromMultipleSubclasses.1.antlrtree.txt b/grammar/testData/diagnostics/inline/superCallFromMultipleSubclasses.1.antlrtree.txt new file mode 100644 index 000000000..ea11ed282 --- /dev/null +++ b/grammar/testData/diagnostics/inline/superCallFromMultipleSubclasses.1.antlrtree.txt @@ -0,0 +1,381 @@ +File: superCallFromMultipleSubclasses.1.kt - a44dd712332a0551200fb79f5163fafe + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("fail") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("doTest") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("fail") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("doTest") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inline/superCallFromMultipleSubclasses.2.antlrtree.txt b/grammar/testData/diagnostics/inline/superCallFromMultipleSubclasses.2.antlrtree.txt new file mode 100644 index 000000000..be76f4c6b --- /dev/null +++ b/grammar/testData/diagnostics/inline/superCallFromMultipleSubclasses.2.antlrtree.txt @@ -0,0 +1,154 @@ +File: superCallFromMultipleSubclasses.2.kt - 65615c3942e9393609700ec8a1cf54bb + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("doTest") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("O") + QUOTE_CLOSE(""") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("doTest") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("K") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inline/superProperty.1.antlrtree.txt b/grammar/testData/diagnostics/inline/superProperty.1.antlrtree.txt new file mode 100644 index 000000000..d9d322851 --- /dev/null +++ b/grammar/testData/diagnostics/inline/superProperty.1.antlrtree.txt @@ -0,0 +1,213 @@ +File: superProperty.1.kt - 1ef6b77442674961eff060d413f736d0 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("X") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("fail") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("doTest") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inline/superProperty.2.antlrtree.txt b/grammar/testData/diagnostics/inline/superProperty.2.antlrtree.txt new file mode 100644 index 000000000..f49a6bde8 --- /dev/null +++ b/grammar/testData/diagnostics/inline/superProperty.2.antlrtree.txt @@ -0,0 +1,88 @@ +File: superProperty.2.kt - 7a6f417d87092176d240c2e33b4581d6 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("X") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("doTest") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inline/unaryExpressions/mathOperation.antlrtree.txt b/grammar/testData/diagnostics/inline/unaryExpressions/mathOperation.antlrtree.txt index 97d27c82b..30c2ed442 100644 --- a/grammar/testData/diagnostics/inline/unaryExpressions/mathOperation.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/unaryExpressions/mathOperation.antlrtree.txt @@ -1,4 +1,5 @@ -File: mathOperation.kt - 2362dcf101b07acaed7ab8aac5c2072d +File: mathOperation.kt - 4133c4c9e63f9ce0ea731e71e322e120 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inline/unaryExpressions/notOnCall.antlrtree.txt b/grammar/testData/diagnostics/inline/unaryExpressions/notOnCall.antlrtree.txt index 7434e591b..ed57c9ba6 100644 --- a/grammar/testData/diagnostics/inline/unaryExpressions/notOnCall.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/unaryExpressions/notOnCall.antlrtree.txt @@ -96,6 +96,4 @@ File: notOnCall.kt - 016fa020d6919b4292d0b338aa71674d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/unaryExpressions/notOperation.antlrtree.txt b/grammar/testData/diagnostics/inline/unaryExpressions/notOperation.antlrtree.txt index 88489b8b1..c07d3645b 100644 --- a/grammar/testData/diagnostics/inline/unaryExpressions/notOperation.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/unaryExpressions/notOperation.antlrtree.txt @@ -1,4 +1,6 @@ -File: notOperation.kt - ed293955fa5b691f1f9b6ca4c8b35ea8 +File: notOperation.kt - ace98e345bf4fd31d0a4f90c25f11ab6 + NL("\n") + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inline/vararg.antlrtree.txt b/grammar/testData/diagnostics/inline/vararg.antlrtree.txt index 6da2a1a82..2288401b2 100644 --- a/grammar/testData/diagnostics/inline/vararg.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/vararg.antlrtree.txt @@ -1,4 +1,5 @@ -File: vararg.kt - fd4c8e4b8e2fc7bf5e1b1c8969e83a23 +File: vararg.kt - 43c87dfea8a32b0b111cd13c17e53f99 + NL("\n") NL("\n") NL("\n") packageHeader @@ -585,5 +586,5 @@ File: vararg.kt - fd4c8e4b8e2fc7bf5e1b1c8969e83a23 statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inline/when.antlrtree.txt b/grammar/testData/diagnostics/inline/when.antlrtree.txt index 929c9a527..0aa26f2a9 100644 --- a/grammar/testData/diagnostics/inline/when.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/when.antlrtree.txt @@ -1,4 +1,5 @@ -File: when.kt - de4fb21c2b138f17be3aa8b44fb34b8e +File: when.kt - d6b9eadeea722e022c6850657ec699c0 + NL("\n") NL("\n") packageHeader importList @@ -282,6 +283,4 @@ File: when.kt - de4fb21c2b138f17be3aa8b44fb34b8e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inline/wrongUsage.antlrtree.txt b/grammar/testData/diagnostics/inline/wrongUsage.antlrtree.txt index 84f1120df..a8a2cdc18 100644 --- a/grammar/testData/diagnostics/inline/wrongUsage.antlrtree.txt +++ b/grammar/testData/diagnostics/inline/wrongUsage.antlrtree.txt @@ -1,4 +1,5 @@ -File: wrongUsage.kt - 2dd39ffade0bfd1a6d69df1e9c87a6c2 +File: wrongUsage.kt - 752ea485c593ceaabc3dcd5cd1a94582 + NL("\n") NL("\n") NL("\n") packageHeader @@ -1214,5 +1215,5 @@ File: wrongUsage.kt - 2dd39ffade0bfd1a6d69df1e9c87a6c2 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/basicInlineClassDeclaration.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/basicInlineClassDeclaration.antlrtree.txt index e3296cd50..537bde407 100644 --- a/grammar/testData/diagnostics/inlineClasses/basicInlineClassDeclaration.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/basicInlineClassDeclaration.antlrtree.txt @@ -1,4 +1,5 @@ -File: basicInlineClassDeclaration.kt - 7793506505d1a1ded4ab1fad58872d22 +File: basicInlineClassDeclaration.kt - 46652a4aa9f23edfbbe56da94b87f49a + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inlineClasses/basicInlineClassDeclarationDisabled.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/basicInlineClassDeclarationDisabled.antlrtree.txt index 3732e1f4a..eb00a0e86 100644 --- a/grammar/testData/diagnostics/inlineClasses/basicInlineClassDeclarationDisabled.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/basicInlineClassDeclarationDisabled.antlrtree.txt @@ -99,6 +99,4 @@ File: basicInlineClassDeclarationDisabled.kt - 0a08a3ee1385762e249dfb7ecb504892 simpleIdentifier Identifier("Int") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/changingNullabilityOfOrdinaryClassIsBinaryCompatibleChange.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/changingNullabilityOfOrdinaryClassIsBinaryCompatibleChange.antlrtree.txt index 4c907330f..8d5bd38e6 100644 --- a/grammar/testData/diagnostics/inlineClasses/changingNullabilityOfOrdinaryClassIsBinaryCompatibleChange.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/changingNullabilityOfOrdinaryClassIsBinaryCompatibleChange.antlrtree.txt @@ -111,6 +111,4 @@ File: changingNullabilityOfOrdinaryClassIsBinaryCompatibleChange.kt - cdf9cc94ca LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/constructorsJvmSignaturesClash.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/constructorsJvmSignaturesClash.antlrtree.txt index 8e305f8a5..8dc7358fe 100644 --- a/grammar/testData/diagnostics/inlineClasses/constructorsJvmSignaturesClash.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/constructorsJvmSignaturesClash.antlrtree.txt @@ -423,6 +423,4 @@ File: constructorsJvmSignaturesClash.kt - 4832b9d61ac6d6b411c26a2fe65d2acd RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/delegatedPropertyInInlineClass.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/delegatedPropertyInInlineClass.antlrtree.txt index 6f8fb972e..b308e97fe 100644 --- a/grammar/testData/diagnostics/inlineClasses/delegatedPropertyInInlineClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/delegatedPropertyInInlineClass.antlrtree.txt @@ -591,6 +591,4 @@ File: delegatedPropertyInInlineClass.kt - f6f3ef0596f00abe4ee567e62f1130c1 Identifier("VarObject") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/functionsJvmSignaturesClash.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/functionsJvmSignaturesClash.antlrtree.txt index 2139f609f..4208cef60 100644 --- a/grammar/testData/diagnostics/inlineClasses/functionsJvmSignaturesClash.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/functionsJvmSignaturesClash.antlrtree.txt @@ -823,6 +823,4 @@ File: functionsJvmSignaturesClash.kt - bf7ecb4cba69c41f0f44f2ae519993b5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/genericInlineClass.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/genericInlineClass.antlrtree.txt new file mode 100644 index 000000000..94880f5be --- /dev/null +++ b/grammar/testData/diagnostics/inlineClasses/genericInlineClass.antlrtree.txt @@ -0,0 +1,129 @@ +File: genericInlineClass.kt - 4fafdd4678dc1f42c6a05490caf4b966 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + CLASS("class") + simpleIdentifier + Identifier("ICAny") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + CLASS("class") + simpleIdentifier + Identifier("ICArray") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + CLASS("class") + simpleIdentifier + Identifier("ICList") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/identityComparisonWithInlineClasses.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/identityComparisonWithInlineClasses.antlrtree.txt index 6d6ad14a6..449b7255d 100644 --- a/grammar/testData/diagnostics/inlineClasses/identityComparisonWithInlineClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/identityComparisonWithInlineClasses.antlrtree.txt @@ -911,6 +911,4 @@ File: identityComparisonWithInlineClasses.kt - 36aba3d66e5567dfa25c7f775f3a61d9 Identifier("any") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/inlineClassCanImplementInterfaceByDelegation.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/inlineClassCanImplementInterfaceByDelegation.antlrtree.txt new file mode 100644 index 000000000..deffd8aff --- /dev/null +++ b/grammar/testData/diagnostics/inlineClasses/inlineClassCanImplementInterfaceByDelegation.antlrtree.txt @@ -0,0 +1,311 @@ +File: inlineClassCanImplementInterfaceByDelegation.kt - c2583f9cc356a84911ffa74da34e708b + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IFoo") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("FooImpl") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IFoo") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("CFoo") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IFoo") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + CLASS("class") + simpleIdentifier + Identifier("Test1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("IFoo") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("FooImpl") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + CLASS("class") + simpleIdentifier + Identifier("Test2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IFoo") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("IFoo") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + CLASS("class") + simpleIdentifier + Identifier("Test3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IFoo") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("IFoo") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("CFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + CLASS("class") + simpleIdentifier + Identifier("Test4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IFoo") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("IFoo") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/inlineClassCanOnlyImplementInterfaces.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/inlineClassCanOnlyImplementInterfaces.antlrtree.txt index ae7fdb2fe..659d270db 100644 --- a/grammar/testData/diagnostics/inlineClasses/inlineClassCanOnlyImplementInterfaces.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/inlineClassCanOnlyImplementInterfaces.antlrtree.txt @@ -152,6 +152,4 @@ File: inlineClassCanOnlyImplementInterfaces.kt - 5b8e40922570b768b057b3e0a04d470 simpleUserType simpleIdentifier Identifier("BaseInterface") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/inlineClassCannotImplementInterfaceByDelegation.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/inlineClassCannotImplementInterfaceByDelegation.antlrtree.txt index af1e3d8f5..2059ba390 100644 --- a/grammar/testData/diagnostics/inlineClasses/inlineClassCannotImplementInterfaceByDelegation.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/inlineClassCannotImplementInterfaceByDelegation.antlrtree.txt @@ -1,4 +1,4 @@ -File: inlineClassCannotImplementInterfaceByDelegation.kt - 399ab257535c4c60473c019d71619824 +File: inlineClassCannotImplementInterfaceByDelegation.kt - 2e8fc07215579ff9d84b748f71b6273c NL("\n") NL("\n") packageHeader @@ -139,5 +139,5 @@ File: inlineClassCannotImplementInterfaceByDelegation.kt - 399ab257535c4c60473c0 simpleIdentifier Identifier("x") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/inlineClassConstructorParameterWithDefaultValue.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/inlineClassConstructorParameterWithDefaultValue.antlrtree.txt index d9241b08f..8633ed477 100644 --- a/grammar/testData/diagnostics/inlineClasses/inlineClassConstructorParameterWithDefaultValue.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/inlineClassConstructorParameterWithDefaultValue.antlrtree.txt @@ -48,6 +48,4 @@ File: inlineClassConstructorParameterWithDefaultValue.kt - ffbd20da33ad71b63eddd literalConstant IntegerLiteral("42") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/inlineClassesInsideAnnotations.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/inlineClassesInsideAnnotations.antlrtree.txt index 70bb74de9..ddcd76ca5 100644 --- a/grammar/testData/diagnostics/inlineClasses/inlineClassesInsideAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/inlineClassesInsideAnnotations.antlrtree.txt @@ -204,6 +204,4 @@ File: inlineClassesInsideAnnotations.kt - 376e551ffb065b1a54d57b8f0466faf0 Identifier("MyInt") RANGLE(">") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/lateinitInlineClasses.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/lateinitInlineClasses.antlrtree.txt index 6c7a1ba93..07113bffc 100644 --- a/grammar/testData/diagnostics/inlineClasses/lateinitInlineClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/lateinitInlineClasses.antlrtree.txt @@ -86,6 +86,4 @@ File: lateinitInlineClasses.kt - 78595686f59de4986d98a729a5160ed5 Identifier("Foo") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/recursiveInlineClasses.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/recursiveInlineClasses.antlrtree.txt index 657117f9b..9e7afeaa1 100644 --- a/grammar/testData/diagnostics/inlineClasses/recursiveInlineClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/recursiveInlineClasses.antlrtree.txt @@ -395,6 +395,4 @@ File: recursiveInlineClasses.kt - e5919feced0676beeb0ac3740aa2e3cf Identifier("TestRecursionThroughId") RANGLE(">") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/reifiedGenericUnderlyingType.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/reifiedGenericUnderlyingType.antlrtree.txt new file mode 100644 index 000000000..5565eac0b --- /dev/null +++ b/grammar/testData/diagnostics/inlineClasses/reifiedGenericUnderlyingType.antlrtree.txt @@ -0,0 +1,44 @@ +File: reifiedGenericUnderlyingType.kt - 7da142b255e561a0464a4eb1ad31e7ac + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + CLASS("class") + simpleIdentifier + Identifier("ICAny") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/reservedMembersAndConstructsInsideInlineClass.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/reservedMembersAndConstructsInsideInlineClass.antlrtree.txt index 236e66497..b571b0d42 100644 --- a/grammar/testData/diagnostics/inlineClasses/reservedMembersAndConstructsInsideInlineClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/reservedMembersAndConstructsInsideInlineClass.antlrtree.txt @@ -944,6 +944,4 @@ File: reservedMembersAndConstructsInsideInlineClass.kt - 136cceb54a62ca73cf4c050 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/synchronizedForbidden.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/synchronizedForbidden.antlrtree.txt new file mode 100644 index 000000000..26a46ef9b --- /dev/null +++ b/grammar/testData/diagnostics/inlineClasses/synchronizedForbidden.antlrtree.txt @@ -0,0 +1,1954 @@ +File: synchronizedForbidden.kt - d1fe283277ef8bbd9cdc34a69dbbb0a5 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmInline") + NL("\n") + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Synchronized") + NL("\n") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f0") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Synchronized") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("f1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Synchronized") + NL("\n") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("f2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Synchronized") + NL("\n") + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("f3") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Synchronized") + NL("\n") + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("f4") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Synchronized") + NL("\n") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("f5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("f6") + NL("\n") + getter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Synchronized") + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("f7") + NL("\n") + getter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Synchronized") + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("f8") + NL("\n") + getter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Synchronized") + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Usual") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS(" @") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Synchronized") + NL("\n") + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("f9") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Synchronized") + NL("\n") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("f10") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("f11") + NL("\n") + getter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Synchronized") + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Synchronized") + NL("\n") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("f12") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + annotation + singleAnnotation + annotationUseSiteTarget + AT_PRE_WS("\n@") + GET("get") + COLON(":") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Synchronized") + NL("\n") + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("f13") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + variableDeclaration + simpleIdentifier + Identifier("f14") + NL("\n") + getter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("Synchronized") + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + HexLiteral("0x2") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + UnsignedLiteral("2U") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("2L") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("to") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("first") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + UnsignedLiteral("2UL") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2F") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("2.0") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'2'") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("block") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("lock") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + CharacterLiteral("'2'") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("block") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("lock") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + semis + NL("\n") + statement + loopStatement + forStatement + FOR("for") + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("b") + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("to") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("first") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("synchronized") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("block") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("lock") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/unsignedLiteralsWithoutArtifactOnClasspath.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/unsignedLiteralsWithoutArtifactOnClasspath.antlrtree.txt index 678eb7af2..053fb0be6 100644 --- a/grammar/testData/diagnostics/inlineClasses/unsignedLiteralsWithoutArtifactOnClasspath.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/unsignedLiteralsWithoutArtifactOnClasspath.antlrtree.txt @@ -81,6 +81,4 @@ File: unsignedLiteralsWithoutArtifactOnClasspath.kt - 58bd48b14280b2471667cc1ff1 primaryExpression literalConstant UnsignedLiteral("0b1u") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inlineClasses/varargsOnParametersOfInlineClassType.antlrtree.txt b/grammar/testData/diagnostics/inlineClasses/varargsOnParametersOfInlineClassType.antlrtree.txt index 987a91b2c..a76299c17 100644 --- a/grammar/testData/diagnostics/inlineClasses/varargsOnParametersOfInlineClassType.antlrtree.txt +++ b/grammar/testData/diagnostics/inlineClasses/varargsOnParametersOfInlineClassType.antlrtree.txt @@ -355,6 +355,4 @@ File: varargsOnParametersOfInlineClassType.kt - 0ed562d2dac7d75762ef7d95870eddc2 simpleIdentifier Identifier("Foo") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/InnerClassNameClash.antlrtree.txt b/grammar/testData/diagnostics/inner/InnerClassNameClash.antlrtree.txt index e639aafc5..9a9e33633 100644 --- a/grammar/testData/diagnostics/inner/InnerClassNameClash.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/InnerClassNameClash.antlrtree.txt @@ -1,4 +1,5 @@ -File: InnerClassNameClash.kt - a6d094d29b0083dd826649e3368d72fb +File: InnerClassNameClash.kt - dfc726ac49f34ae28fcda48446414666 + NL("\n") packageHeader PACKAGE("package") identifier @@ -78,5 +79,5 @@ File: InnerClassNameClash.kt - a6d094d29b0083dd826649e3368d72fb NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inner/annotationInInnerClass.antlrtree.txt b/grammar/testData/diagnostics/inner/annotationInInnerClass.antlrtree.txt index ae9092cde..d3194fc69 100644 --- a/grammar/testData/diagnostics/inner/annotationInInnerClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/annotationInInnerClass.antlrtree.txt @@ -41,6 +41,4 @@ File: annotationInInnerClass.kt - a18738fa3923cea1d21b6884efb6895c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/classesInClassObjectHeader.antlrtree.txt b/grammar/testData/diagnostics/inner/classesInClassObjectHeader.antlrtree.txt index 572a3c5f7..73fc84f8e 100644 --- a/grammar/testData/diagnostics/inner/classesInClassObjectHeader.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/classesInClassObjectHeader.antlrtree.txt @@ -106,6 +106,4 @@ File: classesInClassObjectHeader.kt - 55fc60eb08c08d31af47e2c5e404a082 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/constructorAccess.antlrtree.txt b/grammar/testData/diagnostics/inner/constructorAccess.antlrtree.txt index 17ae5383b..cda45ecbb 100644 --- a/grammar/testData/diagnostics/inner/constructorAccess.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/constructorAccess.antlrtree.txt @@ -1,4 +1,5 @@ -File: constructorAccess.kt - e541d03c779274e1895cbd8f0d8a7a11 +File: constructorAccess.kt - 2c01285507e68f29afac57d470b2f19a + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inner/deepInnerClass.antlrtree.txt b/grammar/testData/diagnostics/inner/deepInnerClass.antlrtree.txt index 0fe0f5658..2a7e579ec 100644 --- a/grammar/testData/diagnostics/inner/deepInnerClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/deepInnerClass.antlrtree.txt @@ -192,6 +192,4 @@ File: deepInnerClass.kt - fa8bf8d708aefa2ee9e73cab5d3f74ed semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/enumInInnerClass.antlrtree.txt b/grammar/testData/diagnostics/inner/enumInInnerClass.antlrtree.txt index 2b0fca73a..9893bfaf8 100644 --- a/grammar/testData/diagnostics/inner/enumInInnerClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/enumInInnerClass.antlrtree.txt @@ -41,6 +41,4 @@ File: enumInInnerClass.kt - 1794f8398f4876b67a0558a96524a9be semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/extensionLambdaInsideNestedClass.antlrtree.txt b/grammar/testData/diagnostics/inner/extensionLambdaInsideNestedClass.antlrtree.txt index 438d83905..049fe9b44 100644 --- a/grammar/testData/diagnostics/inner/extensionLambdaInsideNestedClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/extensionLambdaInsideNestedClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: extensionLambdaInsideNestedClass.kt - d57c8eaf5da5f395cf8a38b1526809e5 +File: extensionLambdaInsideNestedClass.kt - 70108c38578ae7502caba44f227f3ec3 + NL("\n") packageHeader PACKAGE("package") identifier @@ -479,5 +480,5 @@ File: extensionLambdaInsideNestedClass.kt - d57c8eaf5da5f395cf8a38b1526809e5 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inner/illegalModifier_lv12.antlrtree.txt b/grammar/testData/diagnostics/inner/illegalModifier_lv12.antlrtree.txt index 94bd4dc21..f67f96e38 100644 --- a/grammar/testData/diagnostics/inner/illegalModifier_lv12.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/illegalModifier_lv12.antlrtree.txt @@ -1,4 +1,5 @@ -File: illegalModifier_lv12.kt - 65c65e84b94c4d0648c61de431c0e26c +File: illegalModifier_lv12.kt - 27ca1bab5a4248fccb105b06f1322d86 + NL("\n") NL("\n") packageHeader importList @@ -394,6 +395,4 @@ File: illegalModifier_lv12.kt - 65c65e84b94c4d0648c61de431c0e26c NL("\n") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/innerClassesInStaticParameters.antlrtree.txt b/grammar/testData/diagnostics/inner/innerClassesInStaticParameters.antlrtree.txt index bb1cc35ca..21f4ca18d 100644 --- a/grammar/testData/diagnostics/inner/innerClassesInStaticParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/innerClassesInStaticParameters.antlrtree.txt @@ -1,4 +1,5 @@ -File: innerClassesInStaticParameters.kt - 6ef73afdc481403f7875a2e07773c445 +File: innerClassesInStaticParameters.kt - f46a8aecec2e48f095530ae218dc8326 + NL("\n") packageHeader importList topLevelObject @@ -135,5 +136,5 @@ File: innerClassesInStaticParameters.kt - 6ef73afdc481403f7875a2e07773c445 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/inner/innerConstructorsFromQualifiers.imported.antlrtree.txt b/grammar/testData/diagnostics/inner/innerConstructorsFromQualifiers.imported.antlrtree.txt index 23ca4225b..9b205258b 100644 --- a/grammar/testData/diagnostics/inner/innerConstructorsFromQualifiers.imported.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/innerConstructorsFromQualifiers.imported.antlrtree.txt @@ -239,6 +239,4 @@ File: innerConstructorsFromQualifiers.imported.kt - 1d6ecdf191bcc2525e8eb6c96fff semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/interfaceInInnerClass.antlrtree.txt b/grammar/testData/diagnostics/inner/interfaceInInnerClass.antlrtree.txt index c6e003ad9..ca796bc66 100644 --- a/grammar/testData/diagnostics/inner/interfaceInInnerClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/interfaceInInnerClass.antlrtree.txt @@ -37,6 +37,4 @@ File: interfaceInInnerClass.kt - 0b0fa0d6861e644afe583340dea0442c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/kt5854.antlrtree.txt b/grammar/testData/diagnostics/inner/kt5854.antlrtree.txt index a3bb90324..90ed78625 100644 --- a/grammar/testData/diagnostics/inner/kt5854.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/kt5854.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt5854.kt - be457ac7f209e97a2ce249e5dd949385 +File: kt5854.kt - 31f55b02c5bb91cc8000f27804bfad17 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/inner/kt6026.antlrtree.txt b/grammar/testData/diagnostics/inner/kt6026.antlrtree.txt index 2721e44fb..fff5f5acb 100644 --- a/grammar/testData/diagnostics/inner/kt6026.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/kt6026.antlrtree.txt @@ -100,6 +100,4 @@ File: kt6026.kt - 79c5cc0adf0a1dee1327d87da9892383 NL("\n") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/localClassInsideNested.antlrtree.txt b/grammar/testData/diagnostics/inner/localClassInsideNested.antlrtree.txt index 5fe4069e5..641ee5608 100644 --- a/grammar/testData/diagnostics/inner/localClassInsideNested.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/localClassInsideNested.antlrtree.txt @@ -111,6 +111,4 @@ File: localClassInsideNested.kt - 03280bd2b3f42e7aaa8f723bf44fb198 IntegerLiteral("42") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/localThisSuper.antlrtree.txt b/grammar/testData/diagnostics/inner/localThisSuper.antlrtree.txt index b411b6614..b6413ab10 100644 --- a/grammar/testData/diagnostics/inner/localThisSuper.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/localThisSuper.antlrtree.txt @@ -1,4 +1,5 @@ -File: localThisSuper.kt - 426b1990ffd762615c44db0effb88d2b +File: localThisSuper.kt - efdef1bb060837c84b4be4830d188010 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inner/modality.antlrtree.txt b/grammar/testData/diagnostics/inner/modality.antlrtree.txt index ae4b1458b..8b8fa7491 100644 --- a/grammar/testData/diagnostics/inner/modality.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/modality.antlrtree.txt @@ -234,6 +234,4 @@ File: modality.kt - 46c2b8849d1d1d7dd7411ed5ae8b2353 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/outerGenericParam.antlrtree.txt b/grammar/testData/diagnostics/inner/outerGenericParam.antlrtree.txt index 109c32600..b71123601 100644 --- a/grammar/testData/diagnostics/inner/outerGenericParam.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/outerGenericParam.antlrtree.txt @@ -195,6 +195,4 @@ File: outerGenericParam.kt - 0ce4a24e16e31527cfb51263f7a16ceb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/outerSuperClassMember.antlrtree.txt b/grammar/testData/diagnostics/inner/outerSuperClassMember.antlrtree.txt index 0ce425878..562f9608c 100644 --- a/grammar/testData/diagnostics/inner/outerSuperClassMember.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/outerSuperClassMember.antlrtree.txt @@ -108,6 +108,4 @@ File: outerSuperClassMember.kt - f916a1a82382798f7b014e1d1404dcdf semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/qualifiedExpression/constructNestedClass.antlrtree.txt b/grammar/testData/diagnostics/inner/qualifiedExpression/constructNestedClass.antlrtree.txt index 8f6d6457d..7087668ee 100644 --- a/grammar/testData/diagnostics/inner/qualifiedExpression/constructNestedClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/qualifiedExpression/constructNestedClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: constructNestedClass.kt - c2584ef4356f0a970604e70d84e8797d +File: constructNestedClass.kt - b5246b56d54c0d60d6c5bd9bfa077bec + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/inner/qualifiedExpression/genericNestedClass.antlrtree.txt b/grammar/testData/diagnostics/inner/qualifiedExpression/genericNestedClass.antlrtree.txt index ea75d5ee0..af57a6b01 100644 --- a/grammar/testData/diagnostics/inner/qualifiedExpression/genericNestedClass.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/qualifiedExpression/genericNestedClass.antlrtree.txt @@ -1,5 +1,4 @@ -File: genericNestedClass.kt - 04d1c24ea014a02a3e69d936112c449e - NL("\n") +File: genericNestedClass.kt - b1262ad822a90520afcb6a85abe339ce NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/inner/qualifiedExpression/importNestedClass.b.antlrtree.txt b/grammar/testData/diagnostics/inner/qualifiedExpression/importNestedClass.b.antlrtree.txt index a0ee3231f..6ac302601 100644 --- a/grammar/testData/diagnostics/inner/qualifiedExpression/importNestedClass.b.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/qualifiedExpression/importNestedClass.b.antlrtree.txt @@ -241,6 +241,4 @@ File: importNestedClass.b.kt - 07e4f183cf208b19ccd0a3dc13eb5c89 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/qualifiedExpression/nestedClassInPackage.antlrtree.txt b/grammar/testData/diagnostics/inner/qualifiedExpression/nestedClassInPackage.antlrtree.txt index 434b8598e..613bfd51b 100644 --- a/grammar/testData/diagnostics/inner/qualifiedExpression/nestedClassInPackage.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/qualifiedExpression/nestedClassInPackage.antlrtree.txt @@ -80,6 +80,4 @@ File: nestedClassInPackage.kt - e95111589bbdd0795ac4271a88634970 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/qualifiedExpression/nestedObjects.antlrtree.txt b/grammar/testData/diagnostics/inner/qualifiedExpression/nestedObjects.antlrtree.txt index cf0f1d0a9..d8a1ed582 100644 --- a/grammar/testData/diagnostics/inner/qualifiedExpression/nestedObjects.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/qualifiedExpression/nestedObjects.antlrtree.txt @@ -76,6 +76,4 @@ File: nestedObjects.kt - 4b009872540d476384908ff9cfed2279 simpleIdentifier Identifier("C") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/qualifiedExpression/typePosition.antlrtree.txt b/grammar/testData/diagnostics/inner/qualifiedExpression/typePosition.antlrtree.txt index c0e0a69d9..af8d36e53 100644 --- a/grammar/testData/diagnostics/inner/qualifiedExpression/typePosition.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/qualifiedExpression/typePosition.antlrtree.txt @@ -178,6 +178,4 @@ File: typePosition.kt - 2b229ed59a0ade66a81f4cee2d7cd541 excl EXCL_NO_WS("!") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/referenceToSelfInLocal.antlrtree.txt b/grammar/testData/diagnostics/inner/referenceToSelfInLocal.antlrtree.txt index 69b5ccbf2..824638864 100644 --- a/grammar/testData/diagnostics/inner/referenceToSelfInLocal.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/referenceToSelfInLocal.antlrtree.txt @@ -336,6 +336,4 @@ File: referenceToSelfInLocal.kt - 3e8272166b23f22461c78a61a1dcf56e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/resolvePackageClassInObjects.antlrtree.txt b/grammar/testData/diagnostics/inner/resolvePackageClassInObjects.antlrtree.txt index 0e5d9925a..a97e35627 100644 --- a/grammar/testData/diagnostics/inner/resolvePackageClassInObjects.antlrtree.txt +++ b/grammar/testData/diagnostics/inner/resolvePackageClassInObjects.antlrtree.txt @@ -75,6 +75,4 @@ File: resolvePackageClassInObjects.kt - aeb4c78d4e89c0ee4201e26c1ba6f4ab semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/inner/typeVarianceConflict.antlrtree.txt b/grammar/testData/diagnostics/inner/typeVarianceConflict.antlrtree.txt new file mode 100644 index 000000000..e53b08143 --- /dev/null +++ b/grammar/testData/diagnostics/inner/typeVarianceConflict.antlrtree.txt @@ -0,0 +1,328 @@ +File: typeVarianceConflict.kt - 256af62d7382e5c8de896c1726d43816 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Inner") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("SuperInner") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") + simpleIdentifier + Identifier("yuckyEventHandler") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("fn") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Inner") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") + simpleIdentifier + Identifier("second") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("fn") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Inner") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") + simpleIdentifier + Identifier("third") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("fn") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Inner") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("SuperInner") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Baz") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + OUT("out") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") + simpleIdentifier + Identifier("yuckyEventHandler") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("fn") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Inner") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/inner/typeVarianceConflictFeatureOn.antlrtree.txt b/grammar/testData/diagnostics/inner/typeVarianceConflictFeatureOn.antlrtree.txt new file mode 100644 index 000000000..eb4297930 --- /dev/null +++ b/grammar/testData/diagnostics/inner/typeVarianceConflictFeatureOn.antlrtree.txt @@ -0,0 +1,132 @@ +File: typeVarianceConflictFeatureOn.kt - bdfcadb9f17fa4d1a76cfc7d0d867f29 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Inner") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") + simpleIdentifier + Identifier("yuckyEventHandler") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("fn") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Bar") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Inner") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/integerLiterals/constantUnaryOperators.antlrtree.txt b/grammar/testData/diagnostics/integerLiterals/constantUnaryOperators.antlrtree.txt new file mode 100644 index 000000000..3d92c5d72 --- /dev/null +++ b/grammar/testData/diagnostics/integerLiterals/constantUnaryOperators.antlrtree.txt @@ -0,0 +1,1161 @@ +File: constantUnaryOperators.kt - 52585e5d20725fc9e58de3ae0d45027d + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("l1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ll1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3000000000") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryPlus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("l2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryPlus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ll2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3000000000") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryPlus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryMinus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("l3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryMinus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ll3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3000000000") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryMinus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inc") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("l4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inc") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ll4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3000000000") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inc") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("dec") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("l5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("dec") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("ll5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3000000000") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("dec") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/integerLiterals/intToLongConversion.antlrtree.txt b/grammar/testData/diagnostics/integerLiterals/intToLongConversion.antlrtree.txt new file mode 100644 index 000000000..e6712cb7b --- /dev/null +++ b/grammar/testData/diagnostics/integerLiterals/intToLongConversion.antlrtree.txt @@ -0,0 +1,1748 @@ +File: intToLongConversion.kt - 5dba5ff339099d4bbc7436f6b828c31b + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeByte") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeInt") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeNullableInt") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeLong") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeNullableLong") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeOverloaded") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_WS("! ") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeOverloaded") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_WS("! ") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeA") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeB") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_constants") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeNullableInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeNullableLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeOverloaded") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2147483648") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeA") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeB") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("topLevelIntProperty") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("topLevelLongProperty") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("topLevelImplicitIntProperty") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("topLevelImplicitLongProperty") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3000000000") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testTopLevelProperties") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("topLevelIntProperty") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("topLevelLongProperty") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("topLevelImplicitIntProperty") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("topLevelImplicitLongProperty") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("topLevelIntProperty") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("topLevelImplicitIntProperty") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testLocalProperties") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("localIntProperty") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("localLongProperty") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("localImplicitIntProperty") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("localImplicitLongProperty") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3000000000") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + NL("\n") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("localIntProperty") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("localLongProperty") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("localImplicitIntProperty") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("localImplicitLongProperty") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("localIntProperty") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("localImplicitIntProperty") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/integerLiterals/literalsInInference.antlrtree.txt b/grammar/testData/diagnostics/integerLiterals/literalsInInference.antlrtree.txt new file mode 100644 index 000000000..66ecf92f5 --- /dev/null +++ b/grammar/testData/diagnostics/integerLiterals/literalsInInference.antlrtree.txt @@ -0,0 +1,466 @@ +File: literalsInInference.kt - 7630525ea045743a13a6b1e7805bc0da + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Assert") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("createAssert") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Assert") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Comparable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Assert") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("isGreaterThanOrEqualTo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("long") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("createAssert") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("long") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("isGreaterThanOrEqualTo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getNullableLong") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeLong") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getNullableLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("60") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/integerLiterals/typealiasOnLong.antlrtree.txt b/grammar/testData/diagnostics/integerLiterals/typealiasOnLong.antlrtree.txt new file mode 100644 index 000000000..b14493a74 --- /dev/null +++ b/grammar/testData/diagnostics/integerLiterals/typealiasOnLong.antlrtree.txt @@ -0,0 +1,184 @@ +File: typealiasOnLong.kt - b961ccd5570c385195793f4061629a2d + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("LLL") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("LLL") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("LLL") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/GenericsInSupertypes.k.antlrtree.txt b/grammar/testData/diagnostics/j+k/GenericsInSupertypes.k.antlrtree.txt index 4d7b7b5ff..8e5db9c12 100644 --- a/grammar/testData/diagnostics/j+k/GenericsInSupertypes.k.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/GenericsInSupertypes.k.antlrtree.txt @@ -98,6 +98,4 @@ File: GenericsInSupertypes.k.kt - 624fa64f8c4ccd2c62ff8c2cc1c0bcb6 NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/InnerClassFromJava.Baz.antlrtree.txt b/grammar/testData/diagnostics/j+k/InnerClassFromJava.Baz.antlrtree.txt index 744e6efca..bdaf5d8a5 100644 --- a/grammar/testData/diagnostics/j+k/InnerClassFromJava.Baz.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/InnerClassFromJava.Baz.antlrtree.txt @@ -111,6 +111,4 @@ File: InnerClassFromJava.Baz.kt - 07a1e9755252309cd71932e94cb3ce70 simpleUserType simpleIdentifier Identifier("I") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/KJKInheritance.K2.antlrtree.txt b/grammar/testData/diagnostics/j+k/KJKInheritance.K2.antlrtree.txt index aff4ded18..fd9096f29 100644 --- a/grammar/testData/diagnostics/j+k/KJKInheritance.K2.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/KJKInheritance.K2.antlrtree.txt @@ -93,6 +93,4 @@ File: KJKInheritance.K2.kt - 021d3a11f401aae2d795724c5e523fe4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/KJKInheritanceGeneric.K2.antlrtree.txt b/grammar/testData/diagnostics/j+k/KJKInheritanceGeneric.K2.antlrtree.txt index 1b01f445d..8ce7cbb8e 100644 --- a/grammar/testData/diagnostics/j+k/KJKInheritanceGeneric.K2.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/KJKInheritanceGeneric.K2.antlrtree.txt @@ -112,6 +112,4 @@ File: KJKInheritanceGeneric.K2.kt - 7f139dc338937eb1797308f25cf7d9f4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/accessClassObjectFromJava.antlrtree.txt b/grammar/testData/diagnostics/j+k/accessClassObjectFromJava.antlrtree.txt index b86635ff5..44e78964a 100644 --- a/grammar/testData/diagnostics/j+k/accessClassObjectFromJava.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/accessClassObjectFromJava.antlrtree.txt @@ -1,4 +1,4 @@ -File: accessClassObjectFromJava.kt - 3e2bcb6ed4abf74c06cd3e95eefb6726 +File: accessClassObjectFromJava.kt - bcdc46e169ec5c6ed53aa6f97a9d716e packageHeader importList topLevelObject @@ -86,5 +86,5 @@ File: accessClassObjectFromJava.kt - 3e2bcb6ed4abf74c06cd3e95eefb6726 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/j+k/ambiguousSamAdapters.test.antlrtree.txt b/grammar/testData/diagnostics/j+k/ambiguousSamAdapters.test.antlrtree.txt index e346d09ab..3d8a252f7 100644 --- a/grammar/testData/diagnostics/j+k/ambiguousSamAdapters.test.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/ambiguousSamAdapters.test.antlrtree.txt @@ -1,4 +1,4 @@ -File: ambiguousSamAdapters.test.kt - 0e1804e88f9a44c12f42e24bf2c1a9e3 +File: ambiguousSamAdapters.test.kt - e74fd3ab2eae9c6711d6a716b85ec852 packageHeader importList topLevelObject @@ -155,5 +155,5 @@ File: ambiguousSamAdapters.test.kt - 0e1804e88f9a44c12f42e24bf2c1a9e3 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/j+k/canDeclareIfSamAdapterIsInherited.Sub.antlrtree.txt b/grammar/testData/diagnostics/j+k/canDeclareIfSamAdapterIsInherited.Sub.antlrtree.txt index 6955189ff..a0c27cfad 100644 --- a/grammar/testData/diagnostics/j+k/canDeclareIfSamAdapterIsInherited.Sub.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/canDeclareIfSamAdapterIsInherited.Sub.antlrtree.txt @@ -1,4 +1,4 @@ -File: canDeclareIfSamAdapterIsInherited.Sub.kt - 4406ce97b7cd947a77692ea2f3c22855 +File: canDeclareIfSamAdapterIsInherited.Sub.kt - 56cbf8f28bbfc180fe7a0e0b02f37a44 packageHeader importList topLevelObject @@ -70,5 +70,5 @@ File: canDeclareIfSamAdapterIsInherited.Sub.kt - 4406ce97b7cd947a77692ea2f3c2285 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/j+k/collectionOverrides/irrelevantImplCharSequence.X.antlrtree.txt b/grammar/testData/diagnostics/j+k/collectionOverrides/irrelevantImplCharSequence.X.antlrtree.txt index a92c6ac55..40fa0243b 100644 --- a/grammar/testData/diagnostics/j+k/collectionOverrides/irrelevantImplCharSequence.X.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/collectionOverrides/irrelevantImplCharSequence.X.antlrtree.txt @@ -140,6 +140,4 @@ File: irrelevantImplCharSequence.X.kt - e4867d733baba891f510d13198818059 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/collectionOverrides/irrelevantImplCharSequenceKotlin.X.antlrtree.txt b/grammar/testData/diagnostics/j+k/collectionOverrides/irrelevantImplCharSequenceKotlin.X.antlrtree.txt index 2af65eb41..884c882df 100644 --- a/grammar/testData/diagnostics/j+k/collectionOverrides/irrelevantImplCharSequenceKotlin.X.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/collectionOverrides/irrelevantImplCharSequenceKotlin.X.antlrtree.txt @@ -140,6 +140,4 @@ File: irrelevantImplCharSequenceKotlin.X.kt - e4867d733baba891f510d13198818059 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/collectorInference.antlrtree.txt b/grammar/testData/diagnostics/j+k/collectorInference.antlrtree.txt index a899a3fdd..abdddc72f 100644 --- a/grammar/testData/diagnostics/j+k/collectorInference.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/collectorInference.antlrtree.txt @@ -1,5 +1,4 @@ -File: collectorInference.kt - 7bdb6e851b5d74eaa8389f07c7c1939c - NL("\n") +File: collectorInference.kt - 59c6dffe9d28c916bade25fddc667f75 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/j+k/computeIfAbsentConcurrent.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/computeIfAbsentConcurrent.main.antlrtree.txt index 466ad9ea3..1ca5f0dc5 100644 --- a/grammar/testData/diagnostics/j+k/computeIfAbsentConcurrent.main.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/computeIfAbsentConcurrent.main.antlrtree.txt @@ -151,6 +151,4 @@ File: computeIfAbsentConcurrent.main.kt - 6af4675201c9a796b667f8615318abc7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/fieldOverridesNothing.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/fieldOverridesNothing.main.antlrtree.txt index 363dfe15b..cfd9349b1 100644 --- a/grammar/testData/diagnostics/j+k/fieldOverridesNothing.main.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/fieldOverridesNothing.main.antlrtree.txt @@ -147,6 +147,4 @@ File: fieldOverridesNothing.main.kt - d1d8df6157f738aa2d27fc2ac83a778b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/flexibleTypeVariablePosition.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/flexibleTypeVariablePosition.main.antlrtree.txt new file mode 100644 index 000000000..567dd32fd --- /dev/null +++ b/grammar/testData/diagnostics/j+k/flexibleTypeVariablePosition.main.antlrtree.txt @@ -0,0 +1,328 @@ +File: flexibleTypeVariablePosition.main.kt - 6a63a83dc478936148a74a32ada72722 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeN") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("n") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("n") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeN") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("n") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeN") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simpleId") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("div") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeN") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("simpleId") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/innerLightClass.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/innerLightClass.main.antlrtree.txt new file mode 100644 index 000000000..8ce56e80f --- /dev/null +++ b/grammar/testData/diagnostics/j+k/innerLightClass.main.antlrtree.txt @@ -0,0 +1,243 @@ +File: innerLightClass.main.kt - 1cc9f2823bcd22beb2fa724a969ff36e + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Outer") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Middle") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Innermost") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("r") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Middle") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Innermost") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("o") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Outer") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("r") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("o") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/innerNestedClassFromJava.b.antlrtree.txt b/grammar/testData/diagnostics/j+k/innerNestedClassFromJava.b.antlrtree.txt index 4efaa9375..b2e686e0b 100644 --- a/grammar/testData/diagnostics/j+k/innerNestedClassFromJava.b.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/innerNestedClassFromJava.b.antlrtree.txt @@ -1,4 +1,4 @@ -File: innerNestedClassFromJava.b.kt - 84f5a613f75a4e1b8100c023f950ac64 +File: innerNestedClassFromJava.b.kt - 1e6aabae6b4d2c2a8dd22b3ac394cecc packageHeader PACKAGE("package") identifier @@ -121,5 +121,4 @@ File: innerNestedClassFromJava.b.kt - 84f5a613f75a4e1b8100c023f950ac64 RCURL("}") semis NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/j+k/integerNotNullable.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/integerNotNullable.main.antlrtree.txt new file mode 100644 index 000000000..a8246d42a --- /dev/null +++ b/grammar/testData/diagnostics/j+k/integerNotNullable.main.antlrtree.txt @@ -0,0 +1,77 @@ +File: integerNotNullable.main.kt - d238cef9ba17c80587c8f6a173784ba7 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("IntBox") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("put") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/kt2606.antlrtree.txt b/grammar/testData/diagnostics/j+k/kt2606.antlrtree.txt index 66000bbd0..bc415ac8f 100644 --- a/grammar/testData/diagnostics/j+k/kt2606.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/kt2606.antlrtree.txt @@ -1,4 +1,7 @@ -File: kt2606.kt - e0cf30465ef86893aae30d55ed70a6c5 +File: kt2606.kt - 0fa6f94b36fe8de2a00cd146c8f8d095 + NL("\n") + NL("\n") + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -154,5 +157,5 @@ File: kt2606.kt - e0cf30465ef86893aae30d55ed70a6c5 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/j+k/kt2641.antlrtree.txt b/grammar/testData/diagnostics/j+k/kt2641.antlrtree.txt index 9111e60dc..2d24e2328 100644 --- a/grammar/testData/diagnostics/j+k/kt2641.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/kt2641.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2641.kt - d9b5fd524f3c45e5cdcd61fe0154d6fb +File: kt2641.kt - fa8cfe4715fdbf54b9deea0c09f9f0e2 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/j+k/kt3307.Bug.antlrtree.txt b/grammar/testData/diagnostics/j+k/kt3307.Bug.antlrtree.txt index a4ea7f53b..4aa6e3d73 100644 --- a/grammar/testData/diagnostics/j+k/kt3307.Bug.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/kt3307.Bug.antlrtree.txt @@ -136,6 +136,4 @@ File: kt3307.Bug.kt - 731c28ad357e08626baaa2d149690327 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/kt6720_abstractProperty.C.antlrtree.txt b/grammar/testData/diagnostics/j+k/kt6720_abstractProperty.C.antlrtree.txt index 52c08e316..dfb1e4d21 100644 --- a/grammar/testData/diagnostics/j+k/kt6720_abstractProperty.C.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/kt6720_abstractProperty.C.antlrtree.txt @@ -69,6 +69,4 @@ File: kt6720_abstractProperty.C.kt - b09347c02224e833616879b236a65171 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/orderOfSupertypesAndFakeOverrides_1.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/orderOfSupertypesAndFakeOverrides_1.main.antlrtree.txt new file mode 100644 index 000000000..d265156ad --- /dev/null +++ b/grammar/testData/diagnostics/j+k/orderOfSupertypesAndFakeOverrides_1.main.antlrtree.txt @@ -0,0 +1,314 @@ +File: orderOfSupertypesAndFakeOverrides_1.main.kt - f5ace9d5fb35ab716ea9d331e68b4313 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Derived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("delete") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("InterfaceThenClass") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Base") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("InterfaceThenClass") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("delete") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("ClassThenInterface") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ClassThenInterface") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("delete") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/orderOfSupertypesAndFakeOverrides_2.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/orderOfSupertypesAndFakeOverrides_2.main.antlrtree.txt new file mode 100644 index 000000000..48d013c3a --- /dev/null +++ b/grammar/testData/diagnostics/j+k/orderOfSupertypesAndFakeOverrides_2.main.antlrtree.txt @@ -0,0 +1,305 @@ +File: orderOfSupertypesAndFakeOverrides_2.main.kt - 0b0115029cc79394779ecb3a53bc9506 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("KotlinBase") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + FUN("fun") + simpleIdentifier + Identifier("delete") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("InterfaceThenClass") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("JavaBase") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KotlinBase") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("ClassThenInterface") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KotlinBase") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("JavaBase") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("InterfaceThenClass") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("delete") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ClassThenInterface") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("delete") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/overrideWithErasure.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/overrideWithErasure.main.antlrtree.txt new file mode 100644 index 000000000..ebefb0943 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/overrideWithErasure.main.antlrtree.txt @@ -0,0 +1,95 @@ +File: overrideWithErasure.main.kt - 74c66ba4e75f83c18c7344aa4253bae1 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("d") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("d") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/packageVisibility.a.antlrtree.txt b/grammar/testData/diagnostics/j+k/packageVisibility.a.antlrtree.txt index b87171e23..13a040a12 100644 --- a/grammar/testData/diagnostics/j+k/packageVisibility.a.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/packageVisibility.a.antlrtree.txt @@ -161,6 +161,4 @@ File: packageVisibility.a.kt - 990b6f1ff7344db513367f9a97177596 RPAREN(")") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/packageVisibility.b.antlrtree.txt b/grammar/testData/diagnostics/j+k/packageVisibility.b.antlrtree.txt index 2daf2996e..9ac478469 100644 --- a/grammar/testData/diagnostics/j+k/packageVisibility.b.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/packageVisibility.b.antlrtree.txt @@ -173,6 +173,4 @@ File: packageVisibility.b.kt - f7b838161af891a4332114e5e98604a7 RPAREN(")") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/packageVisibility.c.antlrtree.txt b/grammar/testData/diagnostics/j+k/packageVisibility.c.antlrtree.txt index 0b644cd6e..4c469c06e 100644 --- a/grammar/testData/diagnostics/j+k/packageVisibility.c.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/packageVisibility.c.antlrtree.txt @@ -175,6 +175,4 @@ File: packageVisibility.c.kt - 3488109fe4e5213463da666509085216 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/polymorphicSignature/spreadOperator_after.antlrtree.txt b/grammar/testData/diagnostics/j+k/polymorphicSignature/spreadOperator_after.antlrtree.txt index 4a01be1c9..89dfc07c9 100644 --- a/grammar/testData/diagnostics/j+k/polymorphicSignature/spreadOperator_after.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/polymorphicSignature/spreadOperator_after.antlrtree.txt @@ -1,4 +1,5 @@ -File: spreadOperator_after.kt - f244a2e467a8fc2040f20be7942a14ce +File: spreadOperator_after.kt - 4f634d0c395926b10361a44318e31f1d + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/j+k/polymorphicSignature/spreadOperator_before.antlrtree.txt b/grammar/testData/diagnostics/j+k/polymorphicSignature/spreadOperator_before.antlrtree.txt index 64fb1f2f2..699d80bbc 100644 --- a/grammar/testData/diagnostics/j+k/polymorphicSignature/spreadOperator_before.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/polymorphicSignature/spreadOperator_before.antlrtree.txt @@ -1,4 +1,5 @@ -File: spreadOperator_before.kt - ee0297dde82d8121d75dfbd3ae84e4d9 +File: spreadOperator_before.kt - 844cf4b8390b3284737e4429b686a6bd + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/j+k/primitiveOverridesWithInlineClass/inlineClassErasedToPrimitiveInt.kt2.antlrtree.txt b/grammar/testData/diagnostics/j+k/primitiveOverridesWithInlineClass/inlineClassErasedToPrimitiveInt.kt2.antlrtree.txt index 1466694a4..3a7ab16b3 100644 --- a/grammar/testData/diagnostics/j+k/primitiveOverridesWithInlineClass/inlineClassErasedToPrimitiveInt.kt2.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/primitiveOverridesWithInlineClass/inlineClassErasedToPrimitiveInt.kt2.antlrtree.txt @@ -70,6 +70,4 @@ File: inlineClassErasedToPrimitiveInt.kt2.kt - ded950b5d248f656c4ec0d33005e93ae valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/privateFieldOverridesNothing.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/privateFieldOverridesNothing.main.antlrtree.txt index bde3355e5..80c740d99 100644 --- a/grammar/testData/diagnostics/j+k/privateFieldOverridesNothing.main.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/privateFieldOverridesNothing.main.antlrtree.txt @@ -147,6 +147,4 @@ File: privateFieldOverridesNothing.main.kt - 6a54e56fdaeabbdd2ea2fc90ea04c52a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/privateNestedClassStaticMember.1.antlrtree.txt b/grammar/testData/diagnostics/j+k/privateNestedClassStaticMember.1.antlrtree.txt index 9fe2e506a..703e7da98 100644 --- a/grammar/testData/diagnostics/j+k/privateNestedClassStaticMember.1.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/privateNestedClassStaticMember.1.antlrtree.txt @@ -60,6 +60,4 @@ File: privateNestedClassStaticMember.1.kt - 62c1b7b369d751800d6b33ff2162ecc5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/properties/staticFieldPropertyOverloads.a.antlrtree.txt b/grammar/testData/diagnostics/j+k/properties/staticFieldPropertyOverloads.a.antlrtree.txt index 258d65ed2..2db73829d 100644 --- a/grammar/testData/diagnostics/j+k/properties/staticFieldPropertyOverloads.a.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/properties/staticFieldPropertyOverloads.a.antlrtree.txt @@ -35,6 +35,4 @@ File: staticFieldPropertyOverloads.a.kt - eac69b9f3d146f96593123683db9fba4 IntegerLiteral("42") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/purelyImplementedSupertype.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/purelyImplementedSupertype.main.antlrtree.txt new file mode 100644 index 000000000..43caa6aa9 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/purelyImplementedSupertype.main.antlrtree.txt @@ -0,0 +1,678 @@ +File: purelyImplementedSupertype.main.kt - 7d9c099932e74fff02ae25f7ceb9b2f6 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("java") + DOT(".") + simpleIdentifier + Identifier("util") + DOT(".") + simpleIdentifier + Identifier("concurrent") + DOT(".") + simpleIdentifier + Identifier("ConcurrentHashMap") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithMap") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("map") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ConcurrentHashMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("string") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("map") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RSQUARE("]") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("string") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("string") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("map") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("computeIfAbsent") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hello") + QUOTE_CLOSE(""") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("string") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithUtil") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("map") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ConcurrentHashMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("string") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("map") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RSQUARE("]") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("string") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("string") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Util") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("string") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("list") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("util") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("ArrayList") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_NO_WS("?") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("list") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + GET("get") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/rawOverride.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/rawOverride.main.antlrtree.txt new file mode 100644 index 000000000..10578fd27 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/rawOverride.main.antlrtree.txt @@ -0,0 +1,51 @@ +File: rawOverride.main.kt - d59132bdf97d2cad12960430e5cc36b3 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("MakefileStubFileElementType") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("IStubFileElementType") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("StubElement") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + NL("\n") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/rawTypeScope.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/rawTypeScope.main.antlrtree.txt new file mode 100644 index 000000000..b26a9de1f --- /dev/null +++ b/grammar/testData/diagnostics/j+k/rawTypeScope.main.antlrtree.txt @@ -0,0 +1,112 @@ +File: rawTypeScope.main.kt - 9aa008c4a03219d71ed2b600f92f55b2 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Map") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getB") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/rawUpperBounds.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/rawUpperBounds.main.antlrtree.txt new file mode 100644 index 000000000..eef4a4b0f --- /dev/null +++ b/grammar/testData/diagnostics/j+k/rawUpperBounds.main.antlrtree.txt @@ -0,0 +1,131 @@ +File: rawUpperBounds.main.kt - fdd418638a2175482c30c0e60114b0f4 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IStubFileElementType") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getFoo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("w") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("StubElement") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/recursionWithJavaSyntheticProperty.Usage.antlrtree.txt b/grammar/testData/diagnostics/j+k/recursionWithJavaSyntheticProperty.Usage.antlrtree.txt index fb7aaa13e..c89be5ac6 100644 --- a/grammar/testData/diagnostics/j+k/recursionWithJavaSyntheticProperty.Usage.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/recursionWithJavaSyntheticProperty.Usage.antlrtree.txt @@ -60,6 +60,4 @@ File: recursionWithJavaSyntheticProperty.Usage.kt - 1c73582507c62b77f7c2236d431a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/recursiveRawUpperBound2.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/recursiveRawUpperBound2.main.antlrtree.txt index 8e17c7c58..1f30acbf9 100644 --- a/grammar/testData/diagnostics/j+k/recursiveRawUpperBound2.main.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/recursiveRawUpperBound2.main.antlrtree.txt @@ -57,6 +57,4 @@ File: recursiveRawUpperBound2.main.kt - 4245d69bbd785c7e43f5f6d886331084 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/recursiveRawUpperBound3.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/recursiveRawUpperBound3.main.antlrtree.txt index 34b36bfbe..61c018b17 100644 --- a/grammar/testData/diagnostics/j+k/recursiveRawUpperBound3.main.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/recursiveRawUpperBound3.main.antlrtree.txt @@ -63,6 +63,4 @@ File: recursiveRawUpperBound3.main.kt - 15073596b710012912d17834c4e5d079 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/recursiveSelfTypes.test.antlrtree.txt b/grammar/testData/diagnostics/j+k/recursiveSelfTypes.test.antlrtree.txt new file mode 100644 index 000000000..3b7b8c9d9 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/recursiveSelfTypes.test.antlrtree.txt @@ -0,0 +1,240 @@ +File: recursiveSelfTypes.test.kt - 40e4ddd5a50d12fa21f76cf96efe7880 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CharSequence") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TSFBuilder") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("start") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("configure") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("configure") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("configure") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("configure") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("configure") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("configure") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("configure") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("configure") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("configure") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("configure") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("configure") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("build") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/safeCallDefinitelyNotNull.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/safeCallDefinitelyNotNull.main.antlrtree.txt new file mode 100644 index 000000000..ab0c5d475 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/safeCallDefinitelyNotNull.main.antlrtree.txt @@ -0,0 +1,148 @@ +File: safeCallDefinitelyNotNull.main.kt - 788e7271c3f6084a90aa350a841be568 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Api") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("e") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("e") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("let") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("typeOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("e") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/sam/compatibilityResolveToOuterScopeForKotlinFunctions.antlrtree.txt b/grammar/testData/diagnostics/j+k/sam/compatibilityResolveToOuterScopeForKotlinFunctions.antlrtree.txt index b310a4dad..4c01e69f8 100644 --- a/grammar/testData/diagnostics/j+k/sam/compatibilityResolveToOuterScopeForKotlinFunctions.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/sam/compatibilityResolveToOuterScopeForKotlinFunctions.antlrtree.txt @@ -1298,6 +1298,4 @@ File: compatibilityResolveToOuterScopeForKotlinFunctions.kt - b91cd53022508d6297 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/sam/conversionForDerivedGenericClass.test.antlrtree.txt b/grammar/testData/diagnostics/j+k/sam/conversionForDerivedGenericClass.test.antlrtree.txt index 71810c187..ad20ef8fe 100644 --- a/grammar/testData/diagnostics/j+k/sam/conversionForDerivedGenericClass.test.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/sam/conversionForDerivedGenericClass.test.antlrtree.txt @@ -268,6 +268,4 @@ File: conversionForDerivedGenericClass.test.kt - 4ca0c7352e524db02c20aa3480fead8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/sam/conversionsWithNestedGenerics.test.antlrtree.txt b/grammar/testData/diagnostics/j+k/sam/conversionsWithNestedGenerics.test.antlrtree.txt index 519aacd8a..a6cd7d2a2 100644 --- a/grammar/testData/diagnostics/j+k/sam/conversionsWithNestedGenerics.test.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/sam/conversionsWithNestedGenerics.test.antlrtree.txt @@ -108,6 +108,4 @@ File: conversionsWithNestedGenerics.test.kt - 3799359917d32210fde7eb9b0de48773 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/sam/fakeOverrideFunctionForStaticSam.1.antlrtree.txt b/grammar/testData/diagnostics/j+k/sam/fakeOverrideFunctionForStaticSam.1.antlrtree.txt index 32aff505f..89c7a256b 100644 --- a/grammar/testData/diagnostics/j+k/sam/fakeOverrideFunctionForStaticSam.1.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/sam/fakeOverrideFunctionForStaticSam.1.antlrtree.txt @@ -123,6 +123,4 @@ File: fakeOverrideFunctionForStaticSam.1.kt - d110b981af5f70575de63909d8f1b617 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/sam/inheritedStaticSam.test.antlrtree.txt b/grammar/testData/diagnostics/j+k/sam/inheritedStaticSam.test.antlrtree.txt index c673bce9e..ead6d9b6b 100644 --- a/grammar/testData/diagnostics/j+k/sam/inheritedStaticSam.test.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/sam/inheritedStaticSam.test.antlrtree.txt @@ -69,6 +69,4 @@ File: inheritedStaticSam.test.kt - 1cd39235f0ce0e89bb6ab1f56bf90de7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/sam/kt37920.test.antlrtree.txt b/grammar/testData/diagnostics/j+k/sam/kt37920.test.antlrtree.txt index 39b7fc4d2..5b327a62e 100644 --- a/grammar/testData/diagnostics/j+k/sam/kt37920.test.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/sam/kt37920.test.antlrtree.txt @@ -161,6 +161,4 @@ File: kt37920.test.kt - f9a868b557b4960363749417321eaf3a valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/sam/kt39630.test.antlrtree.txt b/grammar/testData/diagnostics/j+k/sam/kt39630.test.antlrtree.txt index 1a1673bef..5cc7355d7 100644 --- a/grammar/testData/diagnostics/j+k/sam/kt39630.test.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/sam/kt39630.test.antlrtree.txt @@ -65,6 +65,4 @@ File: kt39630.test.kt - 61795ca386f184b2898512ced4a8353c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/sam/recursiveSamsAndInvoke.test.antlrtree.txt b/grammar/testData/diagnostics/j+k/sam/recursiveSamsAndInvoke.test.antlrtree.txt index 573e7da67..c141689e0 100644 --- a/grammar/testData/diagnostics/j+k/sam/recursiveSamsAndInvoke.test.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/sam/recursiveSamsAndInvoke.test.antlrtree.txt @@ -315,6 +315,4 @@ File: recursiveSamsAndInvoke.test.kt - 09d94bd7afff51bdf069150ea3fa8ffe semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/sam/staticSamFromImportWithStar.test.antlrtree.txt b/grammar/testData/diagnostics/j+k/sam/staticSamFromImportWithStar.test.antlrtree.txt index 75a2d0662..3fb2bb213 100644 --- a/grammar/testData/diagnostics/j+k/sam/staticSamFromImportWithStar.test.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/sam/staticSamFromImportWithStar.test.antlrtree.txt @@ -64,6 +64,4 @@ File: staticSamFromImportWithStar.test.kt - 3525b25e395d3c8c9f82544bd54685a8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/sam/staticSamWithExplicitImport.test.antlrtree.txt b/grammar/testData/diagnostics/j+k/sam/staticSamWithExplicitImport.test.antlrtree.txt index 86076e1cc..5d28c7868 100644 --- a/grammar/testData/diagnostics/j+k/sam/staticSamWithExplicitImport.test.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/sam/staticSamWithExplicitImport.test.antlrtree.txt @@ -66,6 +66,4 @@ File: staticSamWithExplicitImport.test.kt - df5f16d987a5810a30b31b481fe2d4c2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/j+k/specialBuiltIns/securityProvider.antlrtree.txt b/grammar/testData/diagnostics/j+k/specialBuiltIns/securityProvider.antlrtree.txt index 0599f4d32..a84559dea 100644 --- a/grammar/testData/diagnostics/j+k/specialBuiltIns/securityProvider.antlrtree.txt +++ b/grammar/testData/diagnostics/j+k/specialBuiltIns/securityProvider.antlrtree.txt @@ -1,4 +1,5 @@ -File: securityProvider.kt - fd239fa05cad549f43e44f6cd1a54452 +File: securityProvider.kt - 85ad5d18dd7afc280a5f996cd558e10c + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/j+k/types/constantStaticStringField.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/types/constantStaticStringField.main.antlrtree.txt new file mode 100644 index 000000000..190bbdc3d --- /dev/null +++ b/grammar/testData/diagnostics/j+k/types/constantStaticStringField.main.antlrtree.txt @@ -0,0 +1,417 @@ +File: constantStaticStringField.main.kt - 04f9244e8e90ba046545abdc36539bdd + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("nullableStr") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("w") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nullableStr") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nullableStr") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("X") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Y") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/types/noOverrideKeyword.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/types/noOverrideKeyword.main.antlrtree.txt new file mode 100644 index 000000000..9c169a6e2 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/types/noOverrideKeyword.main.antlrtree.txt @@ -0,0 +1,68 @@ +File: noOverrideKeyword.main.kt - 671ec0c3f61595dd0cbb44bf9b7b1f95 (WITH_ERRORS) + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("KotlinInterface") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("JavaInterface") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + LCURL("{") + NL("\n") + topLevelObject + declaration + topLevelObject + declaration + OVERRIDE("override") + LANGLE("<") + Identifier("T") + RANGLE(">") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("interfaceMethod") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/types/notNullTypeParameterWithKotlinOverridesDefinitelyNonNullable.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/types/notNullTypeParameterWithKotlinOverridesDefinitelyNonNullable.main.antlrtree.txt new file mode 100644 index 000000000..684a98bcc --- /dev/null +++ b/grammar/testData/diagnostics/j+k/types/notNullTypeParameterWithKotlinOverridesDefinitelyNonNullable.main.antlrtree.txt @@ -0,0 +1,453 @@ +File: notNullTypeParameterWithKotlinOverridesDefinitelyNonNullable.main.kt - 741072669fbb8e723d21bdca9e780e90 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Q1") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SLRUMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("takeV") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E1") + RANGLE(">") + simpleIdentifier + Identifier("takeE") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E1") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("takeVList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("l") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E2") + RANGLE(">") + simpleIdentifier + Identifier("takeEList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("l2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E2") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K2") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("k2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K2") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K2") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Q2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SLRUMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("takeV") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("X") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E1") + RANGLE(">") + simpleIdentifier + Identifier("takeE") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("e") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("E1") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("takeVList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("l") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("X") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E2") + RANGLE(">") + simpleIdentifier + Identifier("takeEList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("l2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("E2") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K2") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("k2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K2") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K2") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/types/notNullTypeParameterWithKotlinOverridesWarning.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/types/notNullTypeParameterWithKotlinOverridesWarning.main.antlrtree.txt new file mode 100644 index 000000000..9d0a1e216 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/types/notNullTypeParameterWithKotlinOverridesWarning.main.antlrtree.txt @@ -0,0 +1,454 @@ +File: notNullTypeParameterWithKotlinOverridesWarning.main.kt - 918fe57a454c619db7bd5355dbd9a37c + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Q1") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SLRUMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("takeV") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E1") + RANGLE(">") + simpleIdentifier + Identifier("takeE") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E1") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("takeVList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("l") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E2") + RANGLE(">") + simpleIdentifier + Identifier("takeEList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("l2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E2") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K2") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("k2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K2") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K2") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Q2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SLRUMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("takeV") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + simpleIdentifier + Identifier("takeE") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E1") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("takeVList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("l") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + simpleIdentifier + Identifier("takeEList") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("l2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E2") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K2") + RANGLE(">") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("k2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K2") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K2") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/types/upperBoundsCheckAgainstSelfTypeInJava.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/types/upperBoundsCheckAgainstSelfTypeInJava.main.antlrtree.txt new file mode 100644 index 000000000..e1f50f0d1 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/types/upperBoundsCheckAgainstSelfTypeInJava.main.antlrtree.txt @@ -0,0 +1,49 @@ +File: upperBoundsCheckAgainstSelfTypeInJava.main.kt - 5ae8f970c112ec99cb9b30e071d635a9 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("XBreakpointType") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("XBreakpoint") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + COMMA(",") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/j+k/types/varargOverride.main.antlrtree.txt b/grammar/testData/diagnostics/j+k/types/varargOverride.main.antlrtree.txt new file mode 100644 index 000000000..a3af57807 --- /dev/null +++ b/grammar/testData/diagnostics/j+k/types/varargOverride.main.antlrtree.txt @@ -0,0 +1,242 @@ +File: varargOverride.main.kt - 11962719b525b3af364bdfda0ba28bce + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("2") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("3") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/java8Overrides/abstractBaseClassMemberNotImplemented.antlrtree.txt b/grammar/testData/diagnostics/java8Overrides/abstractBaseClassMemberNotImplemented.antlrtree.txt index 1fe3c2e7b..82b934171 100644 --- a/grammar/testData/diagnostics/java8Overrides/abstractBaseClassMemberNotImplemented.antlrtree.txt +++ b/grammar/testData/diagnostics/java8Overrides/abstractBaseClassMemberNotImplemented.antlrtree.txt @@ -1,4 +1,6 @@ -File: abstractBaseClassMemberNotImplemented.kt - a4c2f16e1ded99be27da552ef510d8fe +File: abstractBaseClassMemberNotImplemented.kt - 38f77d25636ad7aaae971c06e35616ac + NL("\n") + NL("\n") packageHeader importList topLevelObject @@ -90,5 +92,297 @@ File: abstractBaseClassMemberNotImplemented.kt - a4c2f16e1ded99be27da552ef510d8f simpleIdentifier Identifier("IRight") semis - EOF("") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("CAbstract") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ALeft") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IRight") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("CDerivedFromAbstract") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CAbstract") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ILeft") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("AILeft") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ILeft") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AILeftImpl") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("AILeft") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IRight") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("RightLeft") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ILeft") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IRight") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IBase") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IBaseEx") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("AIBase") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("AIIntermediate") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("AIBase") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IBaseEx") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Impl") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("AIIntermediate") + valueArguments + LPAREN("(") + RPAREN(")") EOF("") diff --git a/grammar/testData/diagnostics/java8Overrides/abstractBaseClassMemberNotImplemented_15.antlrtree.txt b/grammar/testData/diagnostics/java8Overrides/abstractBaseClassMemberNotImplemented_15.antlrtree.txt new file mode 100644 index 000000000..c98c5adb9 --- /dev/null +++ b/grammar/testData/diagnostics/java8Overrides/abstractBaseClassMemberNotImplemented_15.antlrtree.txt @@ -0,0 +1,388 @@ +File: abstractBaseClassMemberNotImplemented_15.kt - d26ff103d3202d7d273a1527df40c57f + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("ALeft") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IRight") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("CDerived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ALeft") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IRight") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("CAbstract") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("ALeft") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IRight") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("CDerivedFromAbstract") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CAbstract") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ILeft") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("AILeft") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ILeft") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AILeftImpl") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("AILeft") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IRight") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("RightLeft") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ILeft") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IRight") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IBase") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IBaseEx") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("AIBase") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("AIIntermediate") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("AIBase") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IBaseEx") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Impl") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("AIIntermediate") + valueArguments + LPAREN("(") + RPAREN(")") + EOF("") diff --git a/grammar/testData/diagnostics/java8Overrides/abstractFakeOverrideSuperCall.antlrtree.txt b/grammar/testData/diagnostics/java8Overrides/abstractFakeOverrideSuperCall.antlrtree.txt new file mode 100644 index 000000000..91a6a9113 --- /dev/null +++ b/grammar/testData/diagnostics/java8Overrides/abstractFakeOverrideSuperCall.antlrtree.txt @@ -0,0 +1,405 @@ +File: abstractFakeOverrideSuperCall.kt - 52144d9e3fa4bb2ad0b7179de63c4409 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("check") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") + simpleIdentifier + Identifier("check") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Derived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derived2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("check") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("check") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("check") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("hashCode") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("hashCode") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/java8Overrides/abstractFakeOverrideSuperCallForbidden.antlrtree.txt b/grammar/testData/diagnostics/java8Overrides/abstractFakeOverrideSuperCallForbidden.antlrtree.txt new file mode 100644 index 000000000..7ff770600 --- /dev/null +++ b/grammar/testData/diagnostics/java8Overrides/abstractFakeOverrideSuperCallForbidden.antlrtree.txt @@ -0,0 +1,406 @@ +File: abstractFakeOverrideSuperCallForbidden.kt - 9bfef235531214a6285279456dd33e5f + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("check") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") + simpleIdentifier + Identifier("check") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Derived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derived2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("check") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + LANGLE("<") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RANGLE(">") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("check") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("check") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("hashCode") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("hashCode") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/java8Overrides/abstractVsAbstract.antlrtree.txt b/grammar/testData/diagnostics/java8Overrides/abstractVsAbstract.antlrtree.txt index 3022c155f..f7f9691a3 100644 --- a/grammar/testData/diagnostics/java8Overrides/abstractVsAbstract.antlrtree.txt +++ b/grammar/testData/diagnostics/java8Overrides/abstractVsAbstract.antlrtree.txt @@ -1,4 +1,5 @@ -File: abstractVsAbstract.kt - 1bce9a06d3330c8983d05ba83f802aed +File: abstractVsAbstract.kt - a78c100d424641caa2667ffcb94fbbfe + NL("\n") packageHeader importList topLevelObject @@ -124,6 +125,4 @@ File: abstractVsAbstract.kt - 1bce9a06d3330c8983d05ba83f802aed simpleUserType simpleIdentifier Identifier("IRight") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/java8Overrides/defaultVsAbstract.antlrtree.txt b/grammar/testData/diagnostics/java8Overrides/defaultVsAbstract.antlrtree.txt index 00f74f61f..cd268a5cf 100644 --- a/grammar/testData/diagnostics/java8Overrides/defaultVsAbstract.antlrtree.txt +++ b/grammar/testData/diagnostics/java8Overrides/defaultVsAbstract.antlrtree.txt @@ -1,4 +1,5 @@ -File: defaultVsAbstract.kt - 9d88b2b8cec855870a42821d43534322 +File: defaultVsAbstract.kt - dbbb9baddff4dcf6fda907b4e3238918 + NL("\n") packageHeader importList topLevelObject @@ -129,6 +130,4 @@ File: defaultVsAbstract.kt - 9d88b2b8cec855870a42821d43534322 simpleUserType simpleIdentifier Identifier("IRight") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/java8Overrides/hidingMethodOfAny.antlrtree.txt b/grammar/testData/diagnostics/java8Overrides/hidingMethodOfAny.antlrtree.txt index 2f81524ca..71477fa30 100644 --- a/grammar/testData/diagnostics/java8Overrides/hidingMethodOfAny.antlrtree.txt +++ b/grammar/testData/diagnostics/java8Overrides/hidingMethodOfAny.antlrtree.txt @@ -1,4 +1,5 @@ -File: hidingMethodOfAny.kt - bf1ec2754d492b7905632652dc47d1d4 +File: hidingMethodOfAny.kt - f8f73be8f32fa28fbf54107058074419 + NL("\n") packageHeader importList topLevelObject @@ -91,6 +92,4 @@ File: hidingMethodOfAny.kt - bf1ec2754d492b7905632652dc47d1d4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/java8Overrides/implementingMethodOfAny.antlrtree.txt b/grammar/testData/diagnostics/java8Overrides/implementingMethodOfAny.antlrtree.txt index 532646cd2..ba62a4a5b 100644 --- a/grammar/testData/diagnostics/java8Overrides/implementingMethodOfAny.antlrtree.txt +++ b/grammar/testData/diagnostics/java8Overrides/implementingMethodOfAny.antlrtree.txt @@ -214,6 +214,4 @@ File: implementingMethodOfAny.kt - 881eb22b68148bf1f37823410d8d2ca9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/java8Overrides/kt45508.antlrtree.txt b/grammar/testData/diagnostics/java8Overrides/kt45508.antlrtree.txt new file mode 100644 index 000000000..1c0042985 --- /dev/null +++ b/grammar/testData/diagnostics/java8Overrides/kt45508.antlrtree.txt @@ -0,0 +1,320 @@ +File: kt45508.kt - d0648781e1915ae52117de10de0aa821 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("A") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("D") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("D") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Test") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Impl") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("CProvider") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("CC") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("DD") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("CC") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("CProvider") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getC") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CC") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("DProvider") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getC") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("DD") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DD") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Impl") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("DProvider") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/java8Overrides/notAMethodOfAny.antlrtree.txt b/grammar/testData/diagnostics/java8Overrides/notAMethodOfAny.antlrtree.txt index 90f569b60..4fb94d7bc 100644 --- a/grammar/testData/diagnostics/java8Overrides/notAMethodOfAny.antlrtree.txt +++ b/grammar/testData/diagnostics/java8Overrides/notAMethodOfAny.antlrtree.txt @@ -68,6 +68,4 @@ File: notAMethodOfAny.kt - 6d1fb7a9a18a235be609e578b3be8d7b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/java8Overrides/overridingMethodOfAnyChain.antlrtree.txt b/grammar/testData/diagnostics/java8Overrides/overridingMethodOfAnyChain.antlrtree.txt index b2810419c..ceb5d2190 100644 --- a/grammar/testData/diagnostics/java8Overrides/overridingMethodOfAnyChain.antlrtree.txt +++ b/grammar/testData/diagnostics/java8Overrides/overridingMethodOfAnyChain.antlrtree.txt @@ -1,4 +1,5 @@ -File: overridingMethodOfAnyChain.kt - 1856332fbc4eecd6156ecbe85a74b8b8 +File: overridingMethodOfAnyChain.kt - a4fc2bf10e7cb8ca03013001a10551ed + NL("\n") packageHeader importList topLevelObject @@ -211,6 +212,4 @@ File: overridingMethodOfAnyChain.kt - 1856332fbc4eecd6156ecbe85a74b8b8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/java8Overrides/overridingMethodOfAnyDiamond.antlrtree.txt b/grammar/testData/diagnostics/java8Overrides/overridingMethodOfAnyDiamond.antlrtree.txt index 21ec3c70f..6eaf5edd0 100644 --- a/grammar/testData/diagnostics/java8Overrides/overridingMethodOfAnyDiamond.antlrtree.txt +++ b/grammar/testData/diagnostics/java8Overrides/overridingMethodOfAnyDiamond.antlrtree.txt @@ -1,4 +1,5 @@ -File: overridingMethodOfAnyDiamond.kt - 9bbdc608c6cecd4c101c9fd98b01d9c2 +File: overridingMethodOfAnyDiamond.kt - d1ed8c166b92092d35a53470fe79e52f + NL("\n") packageHeader importList topLevelObject @@ -145,6 +146,4 @@ File: overridingMethodOfAnyDiamond.kt - 9bbdc608c6cecd4c101c9fd98b01d9c2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/java8Overrides/singleRelevantDefault.antlrtree.txt b/grammar/testData/diagnostics/java8Overrides/singleRelevantDefault.antlrtree.txt index ae0f04fbc..905a1444e 100644 --- a/grammar/testData/diagnostics/java8Overrides/singleRelevantDefault.antlrtree.txt +++ b/grammar/testData/diagnostics/java8Overrides/singleRelevantDefault.antlrtree.txt @@ -87,6 +87,4 @@ File: singleRelevantDefault.kt - b2c9bcadabb641b76dcf47e076720c71 simpleUserType simpleIdentifier Identifier("IRight") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/fieldsResolution/ConstantValues.test.antlrtree.txt b/grammar/testData/diagnostics/javac/fieldsResolution/ConstantValues.test.antlrtree.txt index 0a8112e79..9ffb60502 100644 --- a/grammar/testData/diagnostics/javac/fieldsResolution/ConstantValues.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/fieldsResolution/ConstantValues.test.antlrtree.txt @@ -271,6 +271,4 @@ File: ConstantValues.test.kt - 99d5cd3f5c0fb2da856f8be3fc1af09e DOT(".") simpleIdentifier Identifier("VAL") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/imports/CurrentPackageAndExplicitNestedImport.b_b.antlrtree.txt b/grammar/testData/diagnostics/javac/imports/CurrentPackageAndExplicitNestedImport.b_b.antlrtree.txt index 318c17237..51e2cca41 100644 --- a/grammar/testData/diagnostics/javac/imports/CurrentPackageAndExplicitNestedImport.b_b.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/imports/CurrentPackageAndExplicitNestedImport.b_b.antlrtree.txt @@ -53,6 +53,4 @@ File: CurrentPackageAndExplicitNestedImport.b_b.kt - be183cecfce64e8d8a0ad7a3b9b valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/imports/CurrentPackageAndNestedAsteriskImport.b_b.antlrtree.txt b/grammar/testData/diagnostics/javac/imports/CurrentPackageAndNestedAsteriskImport.b_b.antlrtree.txt index 8d022118b..f3cb00e07 100644 --- a/grammar/testData/diagnostics/javac/imports/CurrentPackageAndNestedAsteriskImport.b_b.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/imports/CurrentPackageAndNestedAsteriskImport.b_b.antlrtree.txt @@ -53,6 +53,4 @@ File: CurrentPackageAndNestedAsteriskImport.b_b.kt - be183cecfce64e8d8a0ad7a3b9b valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/imports/ImportGenericVsPackage.b_test.antlrtree.txt b/grammar/testData/diagnostics/javac/imports/ImportGenericVsPackage.b_test.antlrtree.txt index 5801da886..939fd0d31 100644 --- a/grammar/testData/diagnostics/javac/imports/ImportGenericVsPackage.b_test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/imports/ImportGenericVsPackage.b_test.antlrtree.txt @@ -53,6 +53,4 @@ File: ImportGenericVsPackage.b_test.kt - 43f4c921a80f1143e34f88bbf7b0262d valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/imports/NestedAndTopLevelClassClash.a.antlrtree.txt b/grammar/testData/diagnostics/javac/imports/NestedAndTopLevelClassClash.a.antlrtree.txt index c6bcb6bdc..222597459 100644 --- a/grammar/testData/diagnostics/javac/imports/NestedAndTopLevelClassClash.a.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/imports/NestedAndTopLevelClassClash.a.antlrtree.txt @@ -100,6 +100,4 @@ File: NestedAndTopLevelClassClash.a.kt - b12b5b3b8e2d17ec16098869c2e9ddee valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/imports/PackageExplicitAndStartImport.c_test.antlrtree.txt b/grammar/testData/diagnostics/javac/imports/PackageExplicitAndStartImport.c_test.antlrtree.txt index b8a12dfd4..652730f7d 100644 --- a/grammar/testData/diagnostics/javac/imports/PackageExplicitAndStartImport.c_test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/imports/PackageExplicitAndStartImport.c_test.antlrtree.txt @@ -53,6 +53,4 @@ File: PackageExplicitAndStartImport.c_test.kt - 68b5b40ff29f63cd331892f85fc9d792 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/imports/TopLevelClassVsPackage2.e.antlrtree.txt b/grammar/testData/diagnostics/javac/imports/TopLevelClassVsPackage2.e.antlrtree.txt index 16cff42cb..9034707e4 100644 --- a/grammar/testData/diagnostics/javac/imports/TopLevelClassVsPackage2.e.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/imports/TopLevelClassVsPackage2.e.antlrtree.txt @@ -133,6 +133,4 @@ File: TopLevelClassVsPackage2.e.kt - 55bf42fc88688d24f1246bc78e3bfc85 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inheritance/InheritanceAmbiguity.test.antlrtree.txt b/grammar/testData/diagnostics/javac/inheritance/InheritanceAmbiguity.test.antlrtree.txt index 5b54f9729..ee54834c9 100644 --- a/grammar/testData/diagnostics/javac/inheritance/InheritanceAmbiguity.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inheritance/InheritanceAmbiguity.test.antlrtree.txt @@ -53,6 +53,4 @@ File: InheritanceAmbiguity.test.kt - 20948194406d85554fc5e91dab50a832 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inheritance/InheritanceAmbiguity2.test.antlrtree.txt b/grammar/testData/diagnostics/javac/inheritance/InheritanceAmbiguity2.test.antlrtree.txt index 0e588c758..e17e38f85 100644 --- a/grammar/testData/diagnostics/javac/inheritance/InheritanceAmbiguity2.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inheritance/InheritanceAmbiguity2.test.antlrtree.txt @@ -53,6 +53,4 @@ File: InheritanceAmbiguity2.test.kt - 20948194406d85554fc5e91dab50a832 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inheritance/InheritanceAmbiguity3.test.antlrtree.txt b/grammar/testData/diagnostics/javac/inheritance/InheritanceAmbiguity3.test.antlrtree.txt index e34891a99..0d21c89f1 100644 --- a/grammar/testData/diagnostics/javac/inheritance/InheritanceAmbiguity3.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inheritance/InheritanceAmbiguity3.test.antlrtree.txt @@ -53,6 +53,4 @@ File: InheritanceAmbiguity3.test.kt - ca7942e4dcda07edd1a63452daef64e3 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inheritance/InheritanceAmbiguity4.test.antlrtree.txt b/grammar/testData/diagnostics/javac/inheritance/InheritanceAmbiguity4.test.antlrtree.txt index 0c05bb511..aba3e4203 100644 --- a/grammar/testData/diagnostics/javac/inheritance/InheritanceAmbiguity4.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inheritance/InheritanceAmbiguity4.test.antlrtree.txt @@ -53,6 +53,4 @@ File: InheritanceAmbiguity4.test.kt - 1270a2e569860422061be299cf5c4f87 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inheritance/InheritanceWithKotlin.test_UseKotlinInner.antlrtree.txt b/grammar/testData/diagnostics/javac/inheritance/InheritanceWithKotlin.test_UseKotlinInner.antlrtree.txt index 92bca9320..479e8140d 100644 --- a/grammar/testData/diagnostics/javac/inheritance/InheritanceWithKotlin.test_UseKotlinInner.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inheritance/InheritanceWithKotlin.test_UseKotlinInner.antlrtree.txt @@ -243,6 +243,4 @@ File: InheritanceWithKotlin.test_UseKotlinInner.kt - d5aabb3784a7396edca94490c6f DOT(".") simpleIdentifier Identifier("kotlinInner3") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inheritance/InheritanceWithKotlinClasses.test.antlrtree.txt b/grammar/testData/diagnostics/javac/inheritance/InheritanceWithKotlinClasses.test.antlrtree.txt index d3104f4d7..2986da736 100644 --- a/grammar/testData/diagnostics/javac/inheritance/InheritanceWithKotlinClasses.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inheritance/InheritanceWithKotlinClasses.test.antlrtree.txt @@ -194,6 +194,4 @@ File: InheritanceWithKotlinClasses.test.kt - 60919a0a1c315407418689237e4c8603 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inheritance/InheritedInner.test.antlrtree.txt b/grammar/testData/diagnostics/javac/inheritance/InheritedInner.test.antlrtree.txt index 43c138af3..5842380a6 100644 --- a/grammar/testData/diagnostics/javac/inheritance/InheritedInner.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inheritance/InheritedInner.test.antlrtree.txt @@ -64,6 +64,4 @@ File: InheritedInner.test.kt - 563dd44e1b03e036a1b7eb6d1810a11c valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inheritance/InheritedInnerAndSupertypeWithSameName.test.antlrtree.txt b/grammar/testData/diagnostics/javac/inheritance/InheritedInnerAndSupertypeWithSameName.test.antlrtree.txt index a0b6657cc..11f5a5f75 100644 --- a/grammar/testData/diagnostics/javac/inheritance/InheritedInnerAndSupertypeWithSameName.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inheritance/InheritedInnerAndSupertypeWithSameName.test.antlrtree.txt @@ -64,6 +64,4 @@ File: InheritedInnerAndSupertypeWithSameName.test.kt - 7c51daa7091f73c3ec5b251f6 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inheritance/InheritedInnerUsageInInner.test.antlrtree.txt b/grammar/testData/diagnostics/javac/inheritance/InheritedInnerUsageInInner.test.antlrtree.txt index 990b26cf3..ddc230906 100644 --- a/grammar/testData/diagnostics/javac/inheritance/InheritedInnerUsageInInner.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inheritance/InheritedInnerUsageInInner.test.antlrtree.txt @@ -122,6 +122,4 @@ File: InheritedInnerUsageInInner.test.kt - 274ebdb5fb5c5fd096af4b96f5c5a779 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inheritance/InheritedKotlinInner.test.antlrtree.txt b/grammar/testData/diagnostics/javac/inheritance/InheritedKotlinInner.test.antlrtree.txt index e26498f7c..a2a94100a 100644 --- a/grammar/testData/diagnostics/javac/inheritance/InheritedKotlinInner.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inheritance/InheritedKotlinInner.test.antlrtree.txt @@ -64,6 +64,4 @@ File: InheritedKotlinInner.test.kt - 563dd44e1b03e036a1b7eb6d1810a11c valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inheritance/InnerAndInheritedInner.test.antlrtree.txt b/grammar/testData/diagnostics/javac/inheritance/InnerAndInheritedInner.test.antlrtree.txt index e6c3230e2..dfc2da103 100644 --- a/grammar/testData/diagnostics/javac/inheritance/InnerAndInheritedInner.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inheritance/InnerAndInheritedInner.test.antlrtree.txt @@ -64,6 +64,4 @@ File: InnerAndInheritedInner.test.kt - 39b793293ca1ff4c06104567baf228fb valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inheritance/SameInnersInSupertypeAndSupertypesSupertype.test.antlrtree.txt b/grammar/testData/diagnostics/javac/inheritance/SameInnersInSupertypeAndSupertypesSupertype.test.antlrtree.txt index 75a3cd1c8..28fb43a40 100644 --- a/grammar/testData/diagnostics/javac/inheritance/SameInnersInSupertypeAndSupertypesSupertype.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inheritance/SameInnersInSupertypeAndSupertypesSupertype.test.antlrtree.txt @@ -64,6 +64,4 @@ File: SameInnersInSupertypeAndSupertypesSupertype.test.kt - 7c51daa7091f73c3ec5b valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inheritance/SuperTypeWithSameInner.test.antlrtree.txt b/grammar/testData/diagnostics/javac/inheritance/SuperTypeWithSameInner.test.antlrtree.txt index 8fa63e658..9b5a662fa 100644 --- a/grammar/testData/diagnostics/javac/inheritance/SuperTypeWithSameInner.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inheritance/SuperTypeWithSameInner.test.antlrtree.txt @@ -100,6 +100,4 @@ File: SuperTypeWithSameInner.test.kt - 5869f74cc41eddcf803ad56337c332a1 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inheritance/SupertypeInnerAndTypeParameterWithSameNames.test.antlrtree.txt b/grammar/testData/diagnostics/javac/inheritance/SupertypeInnerAndTypeParameterWithSameNames.test.antlrtree.txt index 642d56d0b..839af83d8 100644 --- a/grammar/testData/diagnostics/javac/inheritance/SupertypeInnerAndTypeParameterWithSameNames.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inheritance/SupertypeInnerAndTypeParameterWithSameNames.test.antlrtree.txt @@ -75,6 +75,4 @@ File: SupertypeInnerAndTypeParameterWithSameNames.test.kt - 00d6cfb57434f24fe342 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inners/ImportThriceNestedClass.b_test.antlrtree.txt b/grammar/testData/diagnostics/javac/inners/ImportThriceNestedClass.b_test.antlrtree.txt index 43726c0a8..c924fe0dd 100644 --- a/grammar/testData/diagnostics/javac/inners/ImportThriceNestedClass.b_test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inners/ImportThriceNestedClass.b_test.antlrtree.txt @@ -100,6 +100,4 @@ File: ImportThriceNestedClass.b_test.kt - 68a1fa89df3e721bdaf5486688f5e759 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inners/InnerInInner.test.antlrtree.txt b/grammar/testData/diagnostics/javac/inners/InnerInInner.test.antlrtree.txt index 9683fa5a1..0c379aa82 100644 --- a/grammar/testData/diagnostics/javac/inners/InnerInInner.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inners/InnerInInner.test.antlrtree.txt @@ -147,6 +147,4 @@ File: InnerInInner.test.kt - 9beba21adc5c370b8c7356845f881b1e valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inners/Nested.test.antlrtree.txt b/grammar/testData/diagnostics/javac/inners/Nested.test.antlrtree.txt index 7c65d76b2..3f388218b 100644 --- a/grammar/testData/diagnostics/javac/inners/Nested.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inners/Nested.test.antlrtree.txt @@ -53,6 +53,4 @@ File: Nested.test.kt - fdf04d6884651d69f9847fc3347ec1c7 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/inners/ThriceNestedClass.test.antlrtree.txt b/grammar/testData/diagnostics/javac/inners/ThriceNestedClass.test.antlrtree.txt index efec232f4..f6d27a904 100644 --- a/grammar/testData/diagnostics/javac/inners/ThriceNestedClass.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/inners/ThriceNestedClass.test.antlrtree.txt @@ -194,6 +194,4 @@ File: ThriceNestedClass.test.kt - 4ae224ca17f4748bced4a2c9df31aa37 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/qualifiedExpression/PackageVsClass2.b.antlrtree.txt b/grammar/testData/diagnostics/javac/qualifiedExpression/PackageVsClass2.b.antlrtree.txt index 45cf59caf..ce0a4f7e0 100644 --- a/grammar/testData/diagnostics/javac/qualifiedExpression/PackageVsClass2.b.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/qualifiedExpression/PackageVsClass2.b.antlrtree.txt @@ -52,6 +52,4 @@ File: PackageVsClass2.b.kt - 3886c262bbccdbdd1275c00bec8774d3 RPAREN(")") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/typeParameters/Clash.test.antlrtree.txt b/grammar/testData/diagnostics/javac/typeParameters/Clash.test.antlrtree.txt index 19730832e..420ffafed 100644 --- a/grammar/testData/diagnostics/javac/typeParameters/Clash.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/typeParameters/Clash.test.antlrtree.txt @@ -53,6 +53,4 @@ File: Clash.test.kt - 0cebd0ebb3a3b3c2ef14666af47fdf4a valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/typeParameters/ComplexCase.test.antlrtree.txt b/grammar/testData/diagnostics/javac/typeParameters/ComplexCase.test.antlrtree.txt index 3d12355b2..d93b89c6a 100644 --- a/grammar/testData/diagnostics/javac/typeParameters/ComplexCase.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/typeParameters/ComplexCase.test.antlrtree.txt @@ -83,6 +83,4 @@ File: ComplexCase.test.kt - 4ff77315c9b4646bf5cebcce4b5d7b76 literalConstant IntegerLiteral("1") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/typeParameters/InheritedInnerAndTypeParameterWithSameNames.test.antlrtree.txt b/grammar/testData/diagnostics/javac/typeParameters/InheritedInnerAndTypeParameterWithSameNames.test.antlrtree.txt index 5b1052653..63329886d 100644 --- a/grammar/testData/diagnostics/javac/typeParameters/InheritedInnerAndTypeParameterWithSameNames.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/typeParameters/InheritedInnerAndTypeParameterWithSameNames.test.antlrtree.txt @@ -75,6 +75,4 @@ File: InheritedInnerAndTypeParameterWithSameNames.test.kt - 3e300463707f3ae9335d valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/typeParameters/InnerWithTypeParameter.test.antlrtree.txt b/grammar/testData/diagnostics/javac/typeParameters/InnerWithTypeParameter.test.antlrtree.txt index 0cbbd4d1f..5a43ae582 100644 --- a/grammar/testData/diagnostics/javac/typeParameters/InnerWithTypeParameter.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/typeParameters/InnerWithTypeParameter.test.antlrtree.txt @@ -234,6 +234,4 @@ File: InnerWithTypeParameter.test.kt - 4ceb41ffc001720e1d52bcad149a4599 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/typeParameters/NestedWithInner.test.antlrtree.txt b/grammar/testData/diagnostics/javac/typeParameters/NestedWithInner.test.antlrtree.txt index 480595e93..44d54af37 100644 --- a/grammar/testData/diagnostics/javac/typeParameters/NestedWithInner.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/typeParameters/NestedWithInner.test.antlrtree.txt @@ -80,6 +80,4 @@ File: NestedWithInner.test.kt - 668346815510d1950f7e6b1df9768a10 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/javac/typeParameters/SeveralInnersWithTypeParameters.test.antlrtree.txt b/grammar/testData/diagnostics/javac/typeParameters/SeveralInnersWithTypeParameters.test.antlrtree.txt index 60c318096..2793e7e56 100644 --- a/grammar/testData/diagnostics/javac/typeParameters/SeveralInnersWithTypeParameters.test.antlrtree.txt +++ b/grammar/testData/diagnostics/javac/typeParameters/SeveralInnersWithTypeParameters.test.antlrtree.txt @@ -256,6 +256,4 @@ File: SeveralInnersWithTypeParameters.test.kt - 90366a5e57ac4084791ba6c092009974 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/kt11167.antlrtree.txt b/grammar/testData/diagnostics/kt11167.antlrtree.txt index e05694bfa..65a19a4d4 100644 --- a/grammar/testData/diagnostics/kt11167.antlrtree.txt +++ b/grammar/testData/diagnostics/kt11167.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt11167.kt - 432b86e2a629152832468d242fa54291 +File: kt11167.kt - 698408fc2324680334d8009c660f6284 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/kt13401.antlrtree.txt b/grammar/testData/diagnostics/kt13401.antlrtree.txt index ccf23639d..9d050c4f8 100644 --- a/grammar/testData/diagnostics/kt13401.antlrtree.txt +++ b/grammar/testData/diagnostics/kt13401.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt13401.kt - e7370c48c2b3e6f702b08fd86fa455f8 - NL("\n") +File: kt13401.kt - 9d1db4f90df33b92e8d5c112d541a601 NL("\n") NL("\n") NL("\n") @@ -297,6 +296,4 @@ File: kt13401.kt - e7370c48c2b3e6f702b08fd86fa455f8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/kt310.antlrtree.txt b/grammar/testData/diagnostics/kt310.antlrtree.txt index 2366fde3d..1ffd0637f 100644 --- a/grammar/testData/diagnostics/kt310.antlrtree.txt +++ b/grammar/testData/diagnostics/kt310.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt310.kt - 5c5f574355d6a2ecfd68ccbc56dae9a0 +File: kt310.kt - 2b9a4a11b17faf8d1cd2a2882641d50f NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/kt34440.antlrtree.txt b/grammar/testData/diagnostics/kt34440.antlrtree.txt index 32b87952d..e69972888 100644 --- a/grammar/testData/diagnostics/kt34440.antlrtree.txt +++ b/grammar/testData/diagnostics/kt34440.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt34440.kt - aba6918f23a274588df9ca265665a2ef (WITH_ERRORS) +File: kt34440.kt - d246e29baf8273ae3fcf57e1b85a73ab (WITH_ERRORS) + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/kt34857.antlrtree.txt b/grammar/testData/diagnostics/kt34857.antlrtree.txt index feddcc73c..14f470404 100644 --- a/grammar/testData/diagnostics/kt34857.antlrtree.txt +++ b/grammar/testData/diagnostics/kt34857.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt34857.kt - 2a36d0f13b6900bbd8f856d61627e55c +File: kt34857.kt - 5e611b9049c976ce2ddb1551091e1bb1 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/kt435.antlrtree.txt b/grammar/testData/diagnostics/kt435.antlrtree.txt index 0dccb7c8e..51348eb7b 100644 --- a/grammar/testData/diagnostics/kt435.antlrtree.txt +++ b/grammar/testData/diagnostics/kt435.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt435.kt - 370b5238b0d468cf7ab98639108fa9df +File: kt435.kt - 4f6de5e0bfff4ddb6d6bf4a40fbc5cd0 + NL("\n") packageHeader importList topLevelObject @@ -155,5 +156,5 @@ File: kt435.kt - 370b5238b0d468cf7ab98639108fa9df NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/kt49438.antlrtree.txt b/grammar/testData/diagnostics/kt49438.antlrtree.txt new file mode 100644 index 000000000..f8e2172fb --- /dev/null +++ b/grammar/testData/diagnostics/kt49438.antlrtree.txt @@ -0,0 +1,124 @@ +File: kt49438.kt - 5cacde938f0fa7d49ebb50d5bca03bfd + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("unresolved") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/kt53.antlrtree.txt b/grammar/testData/diagnostics/kt53.antlrtree.txt index 4337018ea..0791e1bba 100644 --- a/grammar/testData/diagnostics/kt53.antlrtree.txt +++ b/grammar/testData/diagnostics/kt53.antlrtree.txt @@ -130,6 +130,4 @@ File: kt53.kt - 8a79aeff840d3cdfb0cedd8db845a330 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/labels/automaticLabelFromInfixOperator.antlrtree.txt b/grammar/testData/diagnostics/labels/automaticLabelFromInfixOperator.antlrtree.txt index e1a32b0df..c554338f0 100644 --- a/grammar/testData/diagnostics/labels/automaticLabelFromInfixOperator.antlrtree.txt +++ b/grammar/testData/diagnostics/labels/automaticLabelFromInfixOperator.antlrtree.txt @@ -1,4 +1,4 @@ -File: automaticLabelFromInfixOperator.kt - ad4605704f7ca662088c8c3ff74b904a +File: automaticLabelFromInfixOperator.kt - b7b2d3bddd65743418015a3c12db8325 packageHeader importList topLevelObject @@ -340,5 +340,5 @@ File: automaticLabelFromInfixOperator.kt - ad4605704f7ca662088c8c3ff74b904a statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/labels/kt1703.antlrtree.txt b/grammar/testData/diagnostics/labels/kt1703.antlrtree.txt index 82b4223e0..5530e7b62 100644 --- a/grammar/testData/diagnostics/labels/kt1703.antlrtree.txt +++ b/grammar/testData/diagnostics/labels/kt1703.antlrtree.txt @@ -484,6 +484,4 @@ File: kt1703.kt - 7246738f8d40a5bc528858a6f0a9505e primaryExpression simpleIdentifier Identifier("a") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/labels/kt361.antlrtree.txt b/grammar/testData/diagnostics/labels/kt361.antlrtree.txt index 956642ceb..858a763b1 100644 --- a/grammar/testData/diagnostics/labels/kt361.antlrtree.txt +++ b/grammar/testData/diagnostics/labels/kt361.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt361.kt - 1984aa1cc00621ce5d1c4f390e70e7f0 +File: kt361.kt - ccb796b6e0f4b8673229928710e6ddd4 + NL("\n") packageHeader importList topLevelObject @@ -200,5 +201,5 @@ File: kt361.kt - 1984aa1cc00621ce5d1c4f390e70e7f0 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/labels/kt3988.antlrtree.txt b/grammar/testData/diagnostics/labels/kt3988.antlrtree.txt index 7570470bd..88c8008bf 100644 --- a/grammar/testData/diagnostics/labels/kt3988.antlrtree.txt +++ b/grammar/testData/diagnostics/labels/kt3988.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt3988.kt - 2e44fc20424088597c9e977827d85ed6 +File: kt3988.kt - 83c9484651f6b52ec6a716800623ef53 + NL("\n") NL("\n") NL("\n") packageHeader @@ -304,5 +305,5 @@ File: kt3988.kt - 2e44fc20424088597c9e977827d85ed6 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/labels/kt4247.antlrtree.txt b/grammar/testData/diagnostics/labels/kt4247.antlrtree.txt index 2f218fee5..5767d5a09 100644 --- a/grammar/testData/diagnostics/labels/kt4247.antlrtree.txt +++ b/grammar/testData/diagnostics/labels/kt4247.antlrtree.txt @@ -168,6 +168,4 @@ File: kt4247.kt - d24b1c67bfe51b63df74248953c224fe semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/labels/kt4586.antlrtree.txt b/grammar/testData/diagnostics/labels/kt4586.antlrtree.txt index 2d57a96ee..80bc64dcb 100644 --- a/grammar/testData/diagnostics/labels/kt4586.antlrtree.txt +++ b/grammar/testData/diagnostics/labels/kt4586.antlrtree.txt @@ -393,6 +393,4 @@ File: kt4586.kt - a111c3a6cc66d7aabf5bd1a09fb66396 NL("\n") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/labels/kt591.antlrtree.txt b/grammar/testData/diagnostics/labels/kt591.antlrtree.txt index b470327d0..3497a14e7 100644 --- a/grammar/testData/diagnostics/labels/kt591.antlrtree.txt +++ b/grammar/testData/diagnostics/labels/kt591.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt591.kt - 058bd6adaa122e69f3007d89372d44ca +File: kt591.kt - 26747c1c1903640d944443dae124e330 NL("\n") NL("\n") packageHeader @@ -247,5 +247,5 @@ File: kt591.kt - 058bd6adaa122e69f3007d89372d44ca NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/labels/labelReferencesInsideObjectExpressions.antlrtree.txt b/grammar/testData/diagnostics/labels/labelReferencesInsideObjectExpressions.antlrtree.txt index e35fcdeab..c29fe5613 100644 --- a/grammar/testData/diagnostics/labels/labelReferencesInsideObjectExpressions.antlrtree.txt +++ b/grammar/testData/diagnostics/labels/labelReferencesInsideObjectExpressions.antlrtree.txt @@ -416,6 +416,4 @@ File: labelReferencesInsideObjectExpressions.kt - 4ba0d3f95c2a2bb412e935e7a3e351 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/labels/labeledFunctionLiteral.antlrtree.txt b/grammar/testData/diagnostics/labels/labeledFunctionLiteral.antlrtree.txt index 026b6a0f0..dda4be2d9 100644 --- a/grammar/testData/diagnostics/labels/labeledFunctionLiteral.antlrtree.txt +++ b/grammar/testData/diagnostics/labels/labeledFunctionLiteral.antlrtree.txt @@ -1,4 +1,4 @@ -File: labeledFunctionLiteral.kt - ed7815e07ce349ed03d657361ee35bfa +File: labeledFunctionLiteral.kt - cbe6eb1335e9182b49561c2eff67af30 NL("\n") NL("\n") packageHeader @@ -304,5 +304,5 @@ File: labeledFunctionLiteral.kt - ed7815e07ce349ed03d657361ee35bfa NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/labels/labelsMustBeNamed.antlrtree.txt b/grammar/testData/diagnostics/labels/labelsMustBeNamed.antlrtree.txt index 5fd48808e..6066a1fbe 100644 --- a/grammar/testData/diagnostics/labels/labelsMustBeNamed.antlrtree.txt +++ b/grammar/testData/diagnostics/labels/labelsMustBeNamed.antlrtree.txt @@ -1,4 +1,4 @@ -File: labelsMustBeNamed.kt - e04a0c6461634dd838d4ccde4427aff4 (WITH_ERRORS) +File: labelsMustBeNamed.kt - c76acc488497cc200f1ffab3c9460035 (WITH_ERRORS) packageHeader importList topLevelObject @@ -284,4 +284,5 @@ File: labelsMustBeNamed.kt - e04a0c6461634dd838d4ccde4427aff4 (WITH_ERRORS) semis NL("\n") RCURL("}") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/lateinit/NoInapplicableLateinitModifierForPropertyWithUnnresolvedType.antlrtree.txt b/grammar/testData/diagnostics/lateinit/NoInapplicableLateinitModifierForPropertyWithUnnresolvedType.antlrtree.txt new file mode 100644 index 000000000..29a17acea --- /dev/null +++ b/grammar/testData/diagnostics/lateinit/NoInapplicableLateinitModifierForPropertyWithUnnresolvedType.antlrtree.txt @@ -0,0 +1,25 @@ +File: NoInapplicableLateinitModifierForPropertyWithUnnresolvedType.kt - b732c17a334dfce7bf77e06055e13fc9 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + memberModifier + LATEINIT("lateinit") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("UnresolvedType") + EOF("") diff --git a/grammar/testData/diagnostics/lateinit/local/localLateinit.antlrtree.txt b/grammar/testData/diagnostics/lateinit/local/localLateinit.antlrtree.txt index bdce29c1e..84bfa5869 100644 --- a/grammar/testData/diagnostics/lateinit/local/localLateinit.antlrtree.txt +++ b/grammar/testData/diagnostics/lateinit/local/localLateinit.antlrtree.txt @@ -94,6 +94,4 @@ File: localLateinit.kt - 35931423d9efddd03e2def2035550fd6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/lateinit/local/uninitialized.antlrtree.txt b/grammar/testData/diagnostics/lateinit/local/uninitialized.antlrtree.txt index a166077fa..6e43db8a1 100644 --- a/grammar/testData/diagnostics/lateinit/local/uninitialized.antlrtree.txt +++ b/grammar/testData/diagnostics/lateinit/local/uninitialized.antlrtree.txt @@ -372,6 +372,4 @@ File: uninitialized.kt - 82f28518b8a59dee0930b809ca4551aa semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/lateinit/setter.antlrtree.txt b/grammar/testData/diagnostics/lateinit/setter.antlrtree.txt index 5b838d923..892a231ba 100644 --- a/grammar/testData/diagnostics/lateinit/setter.antlrtree.txt +++ b/grammar/testData/diagnostics/lateinit/setter.antlrtree.txt @@ -1,4 +1,5 @@ -File: setter.kt - 52b091fc3d4db6caa51a46781f956359 +File: setter.kt - ab47c513318105b8069c8238a057ac3a + NL("\n") packageHeader importList topLevelObject @@ -194,6 +195,4 @@ File: setter.kt - 52b091fc3d4db6caa51a46781f956359 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/library/Collections.antlrtree.txt b/grammar/testData/diagnostics/library/Collections.antlrtree.txt index 1f6327489..00d6030b2 100644 --- a/grammar/testData/diagnostics/library/Collections.antlrtree.txt +++ b/grammar/testData/diagnostics/library/Collections.antlrtree.txt @@ -1,5 +1,4 @@ -File: Collections.kt - c8664a93fe8efefd8f5b2f08396d9195 - NL("\n") +File: Collections.kt - ab95e848b0cc6402a3bc6be0fde96aab packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/library/kt828.antlrtree.txt b/grammar/testData/diagnostics/library/kt828.antlrtree.txt index 528068df2..99f8d0058 100644 --- a/grammar/testData/diagnostics/library/kt828.antlrtree.txt +++ b/grammar/testData/diagnostics/library/kt828.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt828.kt - beb484b2fd9e2c98afc650678518ce96 +File: kt828.kt - 1eace8b58257000a67027d150281daae + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/localInterfaces.antlrtree.txt b/grammar/testData/diagnostics/localInterfaces.antlrtree.txt index 8634c8116..984451d6d 100644 --- a/grammar/testData/diagnostics/localInterfaces.antlrtree.txt +++ b/grammar/testData/diagnostics/localInterfaces.antlrtree.txt @@ -143,6 +143,4 @@ File: localInterfaces.kt - 32f9c80d831344b0618ddbfd8b063208 RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/modifiers/NoLocalVisibility.antlrtree.txt b/grammar/testData/diagnostics/modifiers/NoLocalVisibility.antlrtree.txt index b916eecfd..2285e0be5 100644 --- a/grammar/testData/diagnostics/modifiers/NoLocalVisibility.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/NoLocalVisibility.antlrtree.txt @@ -1,4 +1,5 @@ -File: NoLocalVisibility.kt - d4e45a24bc1bf530bf7be907e11fecb1 +File: NoLocalVisibility.kt - 72447979b43597c8f705db12c70af929 + NL("\n") packageHeader importList topLevelObject @@ -64,6 +65,4 @@ File: NoLocalVisibility.kt - d4e45a24bc1bf530bf7be907e11fecb1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/modifiers/annotations.antlrtree.txt b/grammar/testData/diagnostics/modifiers/annotations.antlrtree.txt index 66c2aef9c..53a42e8aa 100644 --- a/grammar/testData/diagnostics/modifiers/annotations.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/annotations.antlrtree.txt @@ -1,4 +1,5 @@ -File: annotations.kt - 5598224b4e141480a5c9b86d0f857a55 +File: annotations.kt - 20243886f64fafed2d9632a56beeea4c + NL("\n") packageHeader importList topLevelObject @@ -178,6 +179,4 @@ File: annotations.kt - 5598224b4e141480a5c9b86d0f857a55 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/modifiers/const/arrayInAnnotationArgumentType.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/arrayInAnnotationArgumentType.antlrtree.txt index 578d672bb..3187d61fe 100644 --- a/grammar/testData/diagnostics/modifiers/const/arrayInAnnotationArgumentType.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/const/arrayInAnnotationArgumentType.antlrtree.txt @@ -1,5 +1,4 @@ -File: arrayInAnnotationArgumentType.kt - 3a603c20a56fecd0f48c90689a6f4d95 - NL("\n") +File: arrayInAnnotationArgumentType.kt - da2ef3d180acbf6b7fa25eb80591e12c packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/modifiers/const/enumConstName.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/enumConstName.antlrtree.txt new file mode 100644 index 000000000..7b2ff70f8 --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/const/enumConstName.antlrtree.txt @@ -0,0 +1,210 @@ +File: enumConstName.kt - d2aeea841376aeea9d5620c58e1509f1 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("EnumClass") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("OK") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("VALUE") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("anotherValue") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("WITH_UNDERSCORE") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("name1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("EnumClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("OK") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("name2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("EnumClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("VALUE") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("name3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("EnumClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("anotherValue") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("name4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("EnumClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("WITH_UNDERSCORE") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/modifiers/const/fromJavaSubclass.main.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/fromJavaSubclass.main.antlrtree.txt index f9ac4e5ac..b6a8ee2b8 100644 --- a/grammar/testData/diagnostics/modifiers/const/fromJavaSubclass.main.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/const/fromJavaSubclass.main.antlrtree.txt @@ -74,6 +74,4 @@ File: fromJavaSubclass.main.kt - 5266e457912fc095cda09a9b9c1b1bff DOT(".") simpleIdentifier Identifier("FOO") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/modifiers/const/ifConstVal.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/ifConstVal.antlrtree.txt new file mode 100644 index 000000000..37a11391e --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/const/ifConstVal.antlrtree.txt @@ -0,0 +1,999 @@ +File: ifConstVal.kt - 87a594b9e6d3f047bbaf7e32148ee33d + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("flag") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + VALUE("value") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("condition") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("True") + QUOTE_CLOSE(""") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Error") + QUOTE_CLOSE(""") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("withWhen") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("True") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Error") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("withWhen2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("True") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Error") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("withWhen3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("10") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("100") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("2") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("3") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("multibranchIf") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("100") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1000") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("nonConstFlag") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("errorConstIf") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonConstFlag") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("errorBranch") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("flag") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nonConstFlag") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/modifiers/const/kCallable.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/kCallable.antlrtree.txt new file mode 100644 index 000000000..4f3d1b7d6 --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/const/kCallable.antlrtree.txt @@ -0,0 +1,583 @@ +File: kCallable.kt - 2f4e8d18c84d80fc9ea5a0668c0a64ed + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SomeClassWithName") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + PROPERTY("property") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("anotherProperty") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("className") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("SomeClassWithName") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("propName") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeClassWithName") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + PROPERTY("property") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("anotherPropName") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeClassWithName") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("anotherProperty") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fooName") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeClassWithName") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("barName") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeClassWithName") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("stringClassName") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("String") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("lengthPropName") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("String") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("length") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("errorAccess") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeClassWithName") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + PROPERTY("property") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("errorPlus") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeClassWithName") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + PROPERTY("property") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/modifiers/const/kt12248.Test.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/kt12248.Test.antlrtree.txt index 270768c92..ed29fefd9 100644 --- a/grammar/testData/diagnostics/modifiers/const/kt12248.Test.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/const/kt12248.Test.antlrtree.txt @@ -125,6 +125,4 @@ File: kt12248.Test.kt - 8a29f89752b429489aff80a29a01db72 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/modifiers/const/kt15913.Test.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/kt15913.Test.antlrtree.txt index 39c129b83..7b4bb4de0 100644 --- a/grammar/testData/diagnostics/modifiers/const/kt15913.Test.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/const/kt15913.Test.antlrtree.txt @@ -151,6 +151,4 @@ File: kt15913.Test.kt - 3026c4693a8e59e89285f04feca66b95 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/modifiers/const/stdlibConstFun.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/stdlibConstFun.antlrtree.txt new file mode 100644 index 000000000..7abd6af79 --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/const/stdlibConstFun.antlrtree.txt @@ -0,0 +1,2296 @@ +File: stdlibConstFun.kt - 7e41f7f0bccb4dd643c80730b31fecbc + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("byte") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("short") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Short") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("int") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("long") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + LongLiteral("4L") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("float") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("5f") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("double") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + RealLiteral("6.0") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("byteFloorByte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("byteFloorShort") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("short") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("byteFloorInt") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("int") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("byteFloorLong") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("long") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("shortFloorByte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("shortFloorShort") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("short") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("shortFloorInt") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("int") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("shortFloorLong") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("long") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("intFloorByte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("intFloorShort") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("short") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("intFloorInt") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("int") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("intFloorLong") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("long") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("longFloorByte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("longFloorShort") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("short") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("longFloorInt") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("int") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("longFloorLong") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("long") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("byteModByte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("byteModShort") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("short") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("byteModInt") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("int") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("byteModLong") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("long") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("shortModByte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("shortModShort") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("short") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("shortModInt") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("int") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("shortModLong") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("long") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("intModByte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("intModShort") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("short") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("intModInt") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("int") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("intModLong") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("long") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("longModByte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("longModShort") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("short") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("longModInt") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("int") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("longModLong") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byte") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("long") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("floatModFloat") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("float") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("float") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("floatModDouble") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("float") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("double") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("doubleModFloat") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("double") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("float") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("doubleModDouble") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("double") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("double") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/modifiers/const/types.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/types.antlrtree.txt index 4f2840fa8..a9d5a80db 100644 --- a/grammar/testData/diagnostics/modifiers/const/types.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/const/types.antlrtree.txt @@ -1,4 +1,5 @@ -File: types.kt - 325afd45d765752c583bc7ea16503ab7 +File: types.kt - 66b7cef230fa7c4ccc39b3f0204d9fbb + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/modifiers/const/unsigned.antlrtree.txt b/grammar/testData/diagnostics/modifiers/const/unsigned.antlrtree.txt new file mode 100644 index 000000000..dad2b769a --- /dev/null +++ b/grammar/testData/diagnostics/modifiers/const/unsigned.antlrtree.txt @@ -0,0 +1,3179 @@ +File: unsigned.kt - 18caabc598f296639eafdc45d3967368 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("byteVal") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("UByte") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + UnsignedLiteral("1u") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("shortVal") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("UShort") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + UnsignedLiteral("2u") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("intVal") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("UInt") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + UnsignedLiteral("3u") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("longVal") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ULong") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + UnsignedLiteral("4uL") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("compareTo1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("compareTo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("compareTo2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("compareTo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("shortVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("compareTo3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("compareTo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("compareTo4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("compareTo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("longVal") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("plus1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("plus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("plus2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("plus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("shortVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("plus3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("plus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("plus4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("plus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("longVal") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("minus1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("minus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("minus2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("minus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("shortVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("minus3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("minus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("minus4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("minus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("longVal") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("times1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("times") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("times2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("times") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("shortVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("times3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("times") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("times4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("times") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("longVal") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("div1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("div") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("div2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("div") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("shortVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("div3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("div") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("div4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("div") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("longVal") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("rem1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("rem") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("rem2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("rem") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("shortVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("rem3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("rem") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("rem4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("rem") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("longVal") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("floorDiv1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("floorDiv2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("shortVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("floorDiv3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("floorDiv4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("floorDiv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("longVal") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("mod1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("mod2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("shortVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("mod3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("mod4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("mod") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("longVal") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("and") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("and") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("or") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("or") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("xor") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("xor") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("inv") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("convert1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("convert2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("convert3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("convert4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("convert5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toFloat") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("convert6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toDouble") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("convert7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toUByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("convert8") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toUShort") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("convert9") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toUInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("convert10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toULong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("toString1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("toString2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("shortVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("toString3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("toString4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("longVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toString") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equals1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equals2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("shortVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equals3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intVal") + RPAREN(")") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("equals4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("byteVal") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("equals") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("longVal") + RPAREN(")") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/modifiers/defaultModifier.antlrtree.txt b/grammar/testData/diagnostics/modifiers/defaultModifier.antlrtree.txt index b04928738..d6ce0b247 100644 --- a/grammar/testData/diagnostics/modifiers/defaultModifier.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/defaultModifier.antlrtree.txt @@ -1,4 +1,5 @@ -File: defaultModifier.kt - d99e2b77e3d7e85f447698e63b0ea850 (WITH_ERRORS) +File: defaultModifier.kt - 5b759519859277e6ec48e6f5efb5e6aa (WITH_ERRORS) + NL("\n") COMPANION("companion") packageHeader importList @@ -347,6 +348,4 @@ File: defaultModifier.kt - d99e2b77e3d7e85f447698e63b0ea850 (WITH_ERRORS) simpleIdentifier Identifier("Int") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/modifiers/incompatibleVarianceModifiers.antlrtree.txt b/grammar/testData/diagnostics/modifiers/incompatibleVarianceModifiers.antlrtree.txt index c8feba733..f2974f669 100644 --- a/grammar/testData/diagnostics/modifiers/incompatibleVarianceModifiers.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/incompatibleVarianceModifiers.antlrtree.txt @@ -1,4 +1,4 @@ -File: incompatibleVarianceModifiers.kt - 1265939de67e4adeb46213ee23afab32 +File: incompatibleVarianceModifiers.kt - 4007313a49d245812851562c481bc49b NL("\n") NL("\n") packageHeader @@ -17,27 +17,6 @@ File: incompatibleVarianceModifiers.kt - 1265939de67e4adeb46213ee23afab32 RANGLE(">") semis NL("\n") - topLevelObject - declaration - classDeclaration - INTERFACE("interface") - simpleIdentifier - Identifier("Foo1") - typeParameters - LANGLE("<") - typeParameter - typeParameterModifiers - typeParameterModifier - varianceModifier - IN("in") - typeParameterModifier - varianceModifier - OUT("out") - simpleIdentifier - Identifier("T") - RANGLE(">") - semis - NL("\n") topLevelObject declaration classDeclaration diff --git a/grammar/testData/diagnostics/modifiers/inlineParameters.antlrtree.txt b/grammar/testData/diagnostics/modifiers/inlineParameters.antlrtree.txt index 9d0dfa88c..bfe434948 100644 --- a/grammar/testData/diagnostics/modifiers/inlineParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/inlineParameters.antlrtree.txt @@ -1,4 +1,5 @@ -File: inlineParameters.kt - 639ead9cdfdc7b8a556d0c8287ac8ec4 +File: inlineParameters.kt - e567e44f0ed5d56ae97a4d99a98d2385 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/modifiers/internalInInterface.antlrtree.txt b/grammar/testData/diagnostics/modifiers/internalInInterface.antlrtree.txt index d2cc15eb3..d177a8956 100644 --- a/grammar/testData/diagnostics/modifiers/internalInInterface.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/internalInInterface.antlrtree.txt @@ -1,4 +1,5 @@ -File: internalInInterface.kt - 13db64faf52c4e03370a11d1fe511968 +File: internalInInterface.kt - 56ab4f02694f1e16ec0329fa11c0a6ed + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/modifiers/modifierOnParameterInFunctionType.antlrtree.txt b/grammar/testData/diagnostics/modifiers/modifierOnParameterInFunctionType.antlrtree.txt index e2c9bcd4b..46d00a3a8 100644 --- a/grammar/testData/diagnostics/modifiers/modifierOnParameterInFunctionType.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/modifierOnParameterInFunctionType.antlrtree.txt @@ -460,6 +460,4 @@ File: modifierOnParameterInFunctionType.kt - 9bd7bc3dbaef0f13bb23ab2cdcbd6f2f (W ASSIGNMENT("=") LCURL("{") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/modifiers/operatorInfix/LocalFunctions.antlrtree.txt b/grammar/testData/diagnostics/modifiers/operatorInfix/LocalFunctions.antlrtree.txt index ad4257ea1..0ebb1fc18 100644 --- a/grammar/testData/diagnostics/modifiers/operatorInfix/LocalFunctions.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/operatorInfix/LocalFunctions.antlrtree.txt @@ -1,4 +1,5 @@ -File: LocalFunctions.kt - 69d32cef74f3051cb2a8c19f5ed4a12f +File: LocalFunctions.kt - ec9c6ba7fe34a4d3fcd6500841bec867 + NL("\n") NL("\n") NL("\n") packageHeader @@ -1038,6 +1039,4 @@ File: LocalFunctions.kt - 69d32cef74f3051cb2a8c19f5ed4a12f LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/modifiers/operatorInfix/MemberFunctions.antlrtree.txt b/grammar/testData/diagnostics/modifiers/operatorInfix/MemberFunctions.antlrtree.txt index becea4267..83f507f07 100644 --- a/grammar/testData/diagnostics/modifiers/operatorInfix/MemberFunctions.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/operatorInfix/MemberFunctions.antlrtree.txt @@ -1,4 +1,5 @@ -File: MemberFunctions.kt - 8c4ee389a0d81bc3e161698530fb2f2e +File: MemberFunctions.kt - b67010c646f89e24452b6b8d65a55e19 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/modifiers/operatorInfix/Simple.antlrtree.txt b/grammar/testData/diagnostics/modifiers/operatorInfix/Simple.antlrtree.txt index e8fc30125..67a07ccc9 100644 --- a/grammar/testData/diagnostics/modifiers/operatorInfix/Simple.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/operatorInfix/Simple.antlrtree.txt @@ -1,4 +1,5 @@ -File: Simple.kt - 9e450567040d00a549d2a929627c8f53 +File: Simple.kt - de427f0bba84a32279a636eb12f9fb22 + NL("\n") NL("\n") NL("\n") packageHeader @@ -1070,5 +1071,5 @@ File: Simple.kt - 9e450567040d00a549d2a929627c8f53 statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/modifiers/privateInInterface.antlrtree.txt b/grammar/testData/diagnostics/modifiers/privateInInterface.antlrtree.txt index da3647650..6830fd6ae 100644 --- a/grammar/testData/diagnostics/modifiers/privateInInterface.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/privateInInterface.antlrtree.txt @@ -1,4 +1,5 @@ -File: privateInInterface.kt - d1d4841cb2da623aff2142dcda7a3b59 +File: privateInInterface.kt - c445d21f668eb8adcd82454a9d4d7929 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/modifiers/protected.antlrtree.txt b/grammar/testData/diagnostics/modifiers/protected.antlrtree.txt index a1bde87b3..3f3c97ee5 100644 --- a/grammar/testData/diagnostics/modifiers/protected.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/protected.antlrtree.txt @@ -1,4 +1,5 @@ -File: protected.kt - c1d8388366e35e8e0188151fad06b5fa +File: protected.kt - 2981b95073dd975847435d9b448d4545 + NL("\n") packageHeader importList topLevelObject @@ -323,6 +324,4 @@ File: protected.kt - c1d8388366e35e8e0188151fad06b5fa semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/modifiers/redundantTargets.antlrtree.txt b/grammar/testData/diagnostics/modifiers/redundantTargets.antlrtree.txt index 9afb66935..9852c631a 100644 --- a/grammar/testData/diagnostics/modifiers/redundantTargets.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/redundantTargets.antlrtree.txt @@ -1,4 +1,5 @@ -File: redundantTargets.kt - b69f5ce97cbf66efc154a9dd0af9c7ad +File: redundantTargets.kt - f641a0d94a1d98b8647979d2714217fc + NL("\n") packageHeader importList topLevelObject @@ -67,6 +68,4 @@ File: redundantTargets.kt - b69f5ce97cbf66efc154a9dd0af9c7ad OBJECT("object") simpleIdentifier Identifier("Sixth") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/modifiers/repeatedModifiers.antlrtree.txt b/grammar/testData/diagnostics/modifiers/repeatedModifiers.antlrtree.txt index 88ba30f6a..53115d04d 100644 --- a/grammar/testData/diagnostics/modifiers/repeatedModifiers.antlrtree.txt +++ b/grammar/testData/diagnostics/modifiers/repeatedModifiers.antlrtree.txt @@ -868,6 +868,4 @@ File: repeatedModifiers.kt - eb24352f10b9002245583a0801100f26 literalConstant IntegerLiteral("0") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateClass/differentGenericArguments.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateClass/differentGenericArguments.b.antlrtree.txt index f0fbfe071..3fbcb07ff 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateClass/differentGenericArguments.b.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateClass/differentGenericArguments.b.antlrtree.txt @@ -82,6 +82,4 @@ File: differentGenericArguments.b.kt - 044b9b1042629a4a6b3546bee167aaf8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateClass/differentGenericArgumentsReversed.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateClass/differentGenericArgumentsReversed.b.antlrtree.txt index 0cc0f6162..2c31b187d 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateClass/differentGenericArgumentsReversed.b.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateClass/differentGenericArgumentsReversed.b.antlrtree.txt @@ -82,6 +82,4 @@ File: differentGenericArgumentsReversed.b.kt - 044b9b1042629a4a6b3546bee167aaf8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateClass/duplicateClass.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateClass/duplicateClass.b.antlrtree.txt index f11926bf4..8fdce3e80 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateClass/duplicateClass.b.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateClass/duplicateClass.b.antlrtree.txt @@ -82,6 +82,4 @@ File: duplicateClass.b.kt - f62ece249b077bbd4c4eda0e15733320 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateClass/duplicateNestedClasses.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateClass/duplicateNestedClasses.b.antlrtree.txt index 155f9906f..1a08ba498 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateClass/duplicateNestedClasses.b.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateClass/duplicateNestedClasses.b.antlrtree.txt @@ -394,6 +394,4 @@ File: duplicateNestedClasses.b.kt - 984bb348e00c975a385d764db6e77282 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateClass/duplicateSuperClass.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateClass/duplicateSuperClass.b.antlrtree.txt index 9f4703bcf..dfa3dcf75 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateClass/duplicateSuperClass.b.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateClass/duplicateSuperClass.b.antlrtree.txt @@ -82,6 +82,4 @@ File: duplicateSuperClass.b.kt - 9c0d166812f2b392f5bad337461d8004 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateClass/genericArgumentNumberMismatch.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateClass/genericArgumentNumberMismatch.b.antlrtree.txt index fa0ae8754..3ad331803 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateClass/genericArgumentNumberMismatch.b.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateClass/genericArgumentNumberMismatch.b.antlrtree.txt @@ -127,6 +127,4 @@ File: genericArgumentNumberMismatch.b.kt - cf77088eece0ca37b97cf36304049434 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateClass/genericSuperClass.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateClass/genericSuperClass.b.antlrtree.txt index e4e785abf..107101376 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateClass/genericSuperClass.b.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateClass/genericSuperClass.b.antlrtree.txt @@ -194,6 +194,4 @@ File: genericSuperClass.b.kt - 8b4fd479d8f98fe92be1ddab9b64b249 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateClass/inTheSameModuleWithUsage.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateClass/inTheSameModuleWithUsage.b.antlrtree.txt index 3259b61ff..dc599fab4 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateClass/inTheSameModuleWithUsage.b.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateClass/inTheSameModuleWithUsage.b.antlrtree.txt @@ -131,6 +131,4 @@ File: inTheSameModuleWithUsage.b.kt - 29a94f3d16004d486d7a7d272f7dd284 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateClass/inTheSameModuleWithUsageNoTypeAnnotation.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateClass/inTheSameModuleWithUsageNoTypeAnnotation.b.antlrtree.txt index 0eb4d1816..81777234f 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateClass/inTheSameModuleWithUsageNoTypeAnnotation.b.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateClass/inTheSameModuleWithUsageNoTypeAnnotation.b.antlrtree.txt @@ -124,6 +124,4 @@ File: inTheSameModuleWithUsageNoTypeAnnotation.b.kt - 8b767c30837af6aa1daa6d13c9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateClass/members.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateClass/members.b.antlrtree.txt index e7007b470..26b242735 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateClass/members.b.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateClass/members.b.antlrtree.txt @@ -157,6 +157,4 @@ File: members.b.kt - 789b09038603863e1b1aa84dedb395f7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateClass/sameClassNameDifferentPackages.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateClass/sameClassNameDifferentPackages.b.antlrtree.txt index b8bd98f9a..a872c4177 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateClass/sameClassNameDifferentPackages.b.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateClass/sameClassNameDifferentPackages.b.antlrtree.txt @@ -80,6 +80,4 @@ File: sameClassNameDifferentPackages.b.kt - 4ee35d6ad688b3fbb52a28b1895592cc Identifier("a") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateClass/sameGenericArguments.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateClass/sameGenericArguments.b.antlrtree.txt index 255d5fcf4..82e444625 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateClass/sameGenericArguments.b.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateClass/sameGenericArguments.b.antlrtree.txt @@ -82,6 +82,4 @@ File: sameGenericArguments.b.kt - 044b9b1042629a4a6b3546bee167aaf8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateMethod/classGenericsInParamsIndexMismatch.c.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateMethod/classGenericsInParamsIndexMismatch.c.antlrtree.txt index 7a9000d0e..984448775 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateMethod/classGenericsInParamsIndexMismatch.c.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateMethod/classGenericsInParamsIndexMismatch.c.antlrtree.txt @@ -1,4 +1,4 @@ -File: classGenericsInParamsIndexMismatch.c.kt - 86b7b615a805db849bbced71a6386975 +File: classGenericsInParamsIndexMismatch.c.kt - 3d343489f66ba0e29305d3e51554afc0 packageHeader importList importHeader @@ -195,5 +195,5 @@ File: classGenericsInParamsIndexMismatch.c.kt - 86b7b615a805db849bbced71a6386975 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateMethod/differentGenericsInParams.c.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateMethod/differentGenericsInParams.c.antlrtree.txt index 3562b00d7..404013743 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateMethod/differentGenericsInParams.c.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateMethod/differentGenericsInParams.c.antlrtree.txt @@ -1,4 +1,4 @@ -File: differentGenericsInParams.c.kt - 11fbce5fd3885c512bb9fc3abcd5fb01 +File: differentGenericsInParams.c.kt - 1bab361d6ac90195c16e87ca7a194378 packageHeader importList importHeader @@ -169,5 +169,5 @@ File: differentGenericsInParams.c.kt - 11fbce5fd3885c512bb9fc3abcd5fb01 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateMethod/differentNumberOfParams.c.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateMethod/differentNumberOfParams.c.antlrtree.txt index 7224aa6af..aac858a51 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateMethod/differentNumberOfParams.c.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateMethod/differentNumberOfParams.c.antlrtree.txt @@ -1,4 +1,4 @@ -File: differentNumberOfParams.c.kt - bbd2002697374ac220cadfa607fc513f +File: differentNumberOfParams.c.kt - ceb9baaf2a818309a9ba361643bab613 packageHeader importList importHeader @@ -171,5 +171,5 @@ File: differentNumberOfParams.c.kt - bbd2002697374ac220cadfa607fc513f NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateMethod/differentReturnTypes.c.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateMethod/differentReturnTypes.c.antlrtree.txt index 24b1e778a..d1d98b222 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateMethod/differentReturnTypes.c.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateMethod/differentReturnTypes.c.antlrtree.txt @@ -1,4 +1,4 @@ -File: differentReturnTypes.c.kt - 9019779b3000f9a48903a4826e3a82ad +File: differentReturnTypes.c.kt - e32438f6a9965653b5fd9efab0b210a0 packageHeader importList importHeader @@ -130,5 +130,5 @@ File: differentReturnTypes.c.kt - 9019779b3000f9a48903a4826e3a82ad NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateMethod/functionGenericsInParamsBoundsMismatch.c.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateMethod/functionGenericsInParamsBoundsMismatch.c.antlrtree.txt index 515345f1a..42e379862 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateMethod/functionGenericsInParamsBoundsMismatch.c.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateMethod/functionGenericsInParamsBoundsMismatch.c.antlrtree.txt @@ -1,4 +1,4 @@ -File: functionGenericsInParamsBoundsMismatch.c.kt - 71b0a0037a9ccb52c63f6ae1e25dcf9f +File: functionGenericsInParamsBoundsMismatch.c.kt - 7381ed8dd7287b7816f000dc48182f2e packageHeader importList importHeader @@ -132,5 +132,5 @@ File: functionGenericsInParamsBoundsMismatch.c.kt - 71b0a0037a9ccb52c63f6ae1e25d NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateMethod/functionGenericsInParamsEqNull.c.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateMethod/functionGenericsInParamsEqNull.c.antlrtree.txt index 1d4290b6d..b3617aab5 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateMethod/functionGenericsInParamsEqNull.c.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateMethod/functionGenericsInParamsEqNull.c.antlrtree.txt @@ -1,4 +1,4 @@ -File: functionGenericsInParamsEqNull.c.kt - efad2cf48232048e5744a7b91a409eb9 +File: functionGenericsInParamsEqNull.c.kt - cdcb74cbcf96984b4ef1b4860fdec7d2 packageHeader importList importHeader @@ -659,5 +659,5 @@ File: functionGenericsInParamsEqNull.c.kt - efad2cf48232048e5744a7b91a409eb9 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateMethod/functionGenericsInParamsReturnFooT.c.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateMethod/functionGenericsInParamsReturnFooT.c.antlrtree.txt index 7a4bd9bc6..7b05c0bf1 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateMethod/functionGenericsInParamsReturnFooT.c.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateMethod/functionGenericsInParamsReturnFooT.c.antlrtree.txt @@ -1,4 +1,4 @@ -File: functionGenericsInParamsReturnFooT.c.kt - 33f794c4098475ebbe5f174d491c32bf +File: functionGenericsInParamsReturnFooT.c.kt - 68a62275f6f106fddc174c121bc82255 packageHeader importList importHeader @@ -332,5 +332,5 @@ File: functionGenericsInParamsReturnFooT.c.kt - 33f794c4098475ebbe5f174d491c32bf NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateSuper/differentSuperTraits.x.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateSuper/differentSuperTraits.x.antlrtree.txt index 2a3c61afb..a1f284c6e 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateSuper/differentSuperTraits.x.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateSuper/differentSuperTraits.x.antlrtree.txt @@ -32,6 +32,4 @@ File: differentSuperTraits.x.kt - be3dbf55c744ae05620fc168878c90f3 simpleUserType simpleIdentifier Identifier("B") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateSuper/sameSuperTrait.x.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateSuper/sameSuperTrait.x.antlrtree.txt index 0f63867fd..d8d52fcdf 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateSuper/sameSuperTrait.x.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateSuper/sameSuperTrait.x.antlrtree.txt @@ -32,6 +32,4 @@ File: sameSuperTrait.x.kt - 1e17cd2613fd63cea9ad5115205912da simpleUserType simpleIdentifier Identifier("B") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateSuper/sameSuperTraitDifferentBounds.x.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateSuper/sameSuperTraitDifferentBounds.x.antlrtree.txt index e4cad05f5..72f468bd3 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateSuper/sameSuperTraitDifferentBounds.x.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateSuper/sameSuperTraitDifferentBounds.x.antlrtree.txt @@ -1,4 +1,4 @@ -File: sameSuperTraitDifferentBounds.x.kt - aefeade3baf641d19010be0e6804f22e +File: sameSuperTraitDifferentBounds.x.kt - 2f59ee2f59a084b45cf8e54813823c21 packageHeader importList importHeader @@ -139,5 +139,5 @@ File: sameSuperTraitDifferentBounds.x.kt - aefeade3baf641d19010be0e6804f22e NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/duplicateSuper/sameSuperTraitGenerics.x.antlrtree.txt b/grammar/testData/diagnostics/multimodule/duplicateSuper/sameSuperTraitGenerics.x.antlrtree.txt index a7e1e45b1..1675e7465 100644 --- a/grammar/testData/diagnostics/multimodule/duplicateSuper/sameSuperTraitGenerics.x.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/duplicateSuper/sameSuperTraitGenerics.x.antlrtree.txt @@ -42,6 +42,4 @@ File: sameSuperTraitGenerics.x.kt - ec397b2dbc8c426750beaf8cce0a2c4c simpleUserType simpleIdentifier Identifier("B") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/packagePrivate.a.antlrtree.txt b/grammar/testData/diagnostics/multimodule/packagePrivate.a.antlrtree.txt index e88140dcd..d43b4d55b 100644 --- a/grammar/testData/diagnostics/multimodule/packagePrivate.a.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/packagePrivate.a.antlrtree.txt @@ -40,6 +40,4 @@ File: packagePrivate.a.kt - 145058a76981b345a9a079eaa83d1202 IntegerLiteral("1") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/packagePrivate.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/packagePrivate.b.antlrtree.txt index c7b2e348c..862cd582f 100644 --- a/grammar/testData/diagnostics/multimodule/packagePrivate.b.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/packagePrivate.b.antlrtree.txt @@ -37,6 +37,4 @@ File: packagePrivate.b.kt - a72a73556dfca2404ce0b001f869b519 NL("\n") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/packagePrivate.c.antlrtree.txt b/grammar/testData/diagnostics/multimodule/packagePrivate.c.antlrtree.txt index 56955dec4..3c1ebfe30 100644 --- a/grammar/testData/diagnostics/multimodule/packagePrivate.c.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/packagePrivate.c.antlrtree.txt @@ -35,6 +35,4 @@ File: packagePrivate.c.kt - e55737f43a571e0bfe47d235ee43e16d simpleIdentifier Identifier("a") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/redundantElseInWhen.b.antlrtree.txt b/grammar/testData/diagnostics/multimodule/redundantElseInWhen.b.antlrtree.txt index 1291e9531..1b2c8458b 100644 --- a/grammar/testData/diagnostics/multimodule/redundantElseInWhen.b.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/redundantElseInWhen.b.antlrtree.txt @@ -782,6 +782,4 @@ File: redundantElseInWhen.b.kt - 1c61cd6128c9d0519362b9eda76aa2d6 semi NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multimodule/samWithSuspendFunctionFromAnotherModule.antlrtree.txt b/grammar/testData/diagnostics/multimodule/samWithSuspendFunctionFromAnotherModule.antlrtree.txt new file mode 100644 index 000000000..f5d975e4d --- /dev/null +++ b/grammar/testData/diagnostics/multimodule/samWithSuspendFunctionFromAnotherModule.antlrtree.txt @@ -0,0 +1,164 @@ +File: samWithSuspendFunctionFromAnotherModule.kt - cfe812177c87a76aee5ad474941f02ba + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeA") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeA") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multimodule/varargConflict.c.antlrtree.txt b/grammar/testData/diagnostics/multimodule/varargConflict.c.antlrtree.txt index 0dd172b05..3231f4306 100644 --- a/grammar/testData/diagnostics/multimodule/varargConflict.c.antlrtree.txt +++ b/grammar/testData/diagnostics/multimodule/varargConflict.c.antlrtree.txt @@ -79,6 +79,4 @@ File: varargConflict.c.kt - 428a24d72afee9b930c98c05ac41ff82 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/defaultArguments/annotationArgumentEquality.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/defaultArguments/annotationArgumentEquality.common.antlrtree.txt index a1da8410c..023cab842 100644 --- a/grammar/testData/diagnostics/multiplatform/defaultArguments/annotationArgumentEquality.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/defaultArguments/annotationArgumentEquality.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: annotationArgumentEquality.common.kt - d9b86322c376a5e36dbed57b1e064038 +File: annotationArgumentEquality.common.kt - 817106f390973528889233d5c7f10d07 packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/multiplatform/defaultArguments/annotations.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/defaultArguments/annotations.common.antlrtree.txt index 8cb58d806..7345d5854 100644 --- a/grammar/testData/diagnostics/multiplatform/defaultArguments/annotations.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/defaultArguments/annotations.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: annotations.common.kt - c87559c2cce1089b040ba793ddc3759e +File: annotations.common.kt - e3760e394951ea538da02e5311cb354d packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/defaultArguments/annotationsViaActualTypeAlias.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/defaultArguments/annotationsViaActualTypeAlias.common.antlrtree.txt index 7642e5c9d..843b48fea 100644 --- a/grammar/testData/diagnostics/multiplatform/defaultArguments/annotationsViaActualTypeAlias.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/defaultArguments/annotationsViaActualTypeAlias.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: annotationsViaActualTypeAlias.common.kt - c87559c2cce1089b040ba793ddc3759e +File: annotationsViaActualTypeAlias.common.kt - e3760e394951ea538da02e5311cb354d packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/defaultArguments/annotationsViaActualTypeAlias2.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/defaultArguments/annotationsViaActualTypeAlias2.common.antlrtree.txt index 2031d9eaa..0292b936f 100644 --- a/grammar/testData/diagnostics/multiplatform/defaultArguments/annotationsViaActualTypeAlias2.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/defaultArguments/annotationsViaActualTypeAlias2.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: annotationsViaActualTypeAlias2.common.kt - ee6ade7eed69a5d27e33b4d10e117a48 +File: annotationsViaActualTypeAlias2.common.kt - f9e5e25383152756eabd48c9941d2071 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/multiplatform/defaultArguments/constructor.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/defaultArguments/constructor.common.antlrtree.txt index d567ef995..6e24b029e 100644 --- a/grammar/testData/diagnostics/multiplatform/defaultArguments/constructor.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/defaultArguments/constructor.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: constructor.common.kt - 3ee7de287862810e16128406229bb1a3 +File: constructor.common.kt - a19c57084f951739f6c9a0562f7073c3 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/defaultArguments/expectedDeclaresDefaultArguments.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/defaultArguments/expectedDeclaresDefaultArguments.common.antlrtree.txt index 49722bdcb..59ba4033f 100644 --- a/grammar/testData/diagnostics/multiplatform/defaultArguments/expectedDeclaresDefaultArguments.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/defaultArguments/expectedDeclaresDefaultArguments.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: expectedDeclaresDefaultArguments.common.kt - 37a85242a289834a43f929d7d35cc0c6 +File: expectedDeclaresDefaultArguments.common.kt - f0b40415e1e4f782de5b09cc6d7e85bf packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/defaultArguments/expectedInheritsDefaultArguments.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/defaultArguments/expectedInheritsDefaultArguments.common.antlrtree.txt index a9d367cb7..e316967f0 100644 --- a/grammar/testData/diagnostics/multiplatform/defaultArguments/expectedInheritsDefaultArguments.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/defaultArguments/expectedInheritsDefaultArguments.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: expectedInheritsDefaultArguments.common.kt - e0705c4eed8ecf9d79e54ba0623d7fe5 +File: expectedInheritsDefaultArguments.common.kt - 6f26dac4ff1c2589fb864369eb8c2835 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/defaultArguments/expectedVsNonExpectedWithDefaults.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/defaultArguments/expectedVsNonExpectedWithDefaults.common.antlrtree.txt index b6c35c777..66145c2ef 100644 --- a/grammar/testData/diagnostics/multiplatform/defaultArguments/expectedVsNonExpectedWithDefaults.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/defaultArguments/expectedVsNonExpectedWithDefaults.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: expectedVsNonExpectedWithDefaults.common.kt - 05aa002a917936aa4ee65a15f4abe636 +File: expectedVsNonExpectedWithDefaults.common.kt - 47d12dbbe72fc5433cf7ccde6bf981d5 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/deprecated/header.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/deprecated/header.common.antlrtree.txt index 17f77ae51..d67a60665 100644 --- a/grammar/testData/diagnostics/multiplatform/deprecated/header.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/deprecated/header.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: header.common.kt - 987efb596e2fd8d4aa9ad625b89620a7 (WITH_ERRORS) +File: header.common.kt - c56e64f19a97510300540c9af8bec578 (WITH_ERRORS) Identifier("header") packageHeader importList diff --git a/grammar/testData/diagnostics/multiplatform/enum/additionalEntriesInImpl.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/enum/additionalEntriesInImpl.common.antlrtree.txt index 9b17480f0..6ac051b30 100644 --- a/grammar/testData/diagnostics/multiplatform/enum/additionalEntriesInImpl.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/enum/additionalEntriesInImpl.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: additionalEntriesInImpl.common.kt - 872d53d0ac5fcf5fca59845d249dc2d4 +File: additionalEntriesInImpl.common.kt - 9bb361e893940919c620fad76920c86d packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/enum/differentEntryOrder.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/enum/differentEntryOrder.common.antlrtree.txt index 46acd6061..973c5681c 100644 --- a/grammar/testData/diagnostics/multiplatform/enum/differentEntryOrder.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/enum/differentEntryOrder.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: differentEntryOrder.common.kt - 872d53d0ac5fcf5fca59845d249dc2d4 +File: differentEntryOrder.common.kt - 9bb361e893940919c620fad76920c86d packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/enum/javaEnum.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/enum/javaEnum.common.antlrtree.txt index 4fcd1cb6c..de12b6920 100644 --- a/grammar/testData/diagnostics/multiplatform/enum/javaEnum.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/enum/javaEnum.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: javaEnum.common.kt - 6e1887ef5920efef60e119382bcce95e +File: javaEnum.common.kt - 583b5610579793690af40980a82bfbc4 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/enum/simpleEnum.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/enum/simpleEnum.common.antlrtree.txt index effe9015f..adfa7eef8 100644 --- a/grammar/testData/diagnostics/multiplatform/enum/simpleEnum.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/enum/simpleEnum.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: simpleEnum.common.kt - b7ff9cd488b4cb2fbadab186a8f12426 +File: simpleEnum.common.kt - 0fd2a53edd8e7ffb484a524bb03e5434 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/exhaustiveness/commonSealedWithPlatformInheritor.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/exhaustiveness/commonSealedWithPlatformInheritor.antlrtree.txt new file mode 100644 index 000000000..819d6a6fa --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/exhaustiveness/commonSealedWithPlatformInheritor.antlrtree.txt @@ -0,0 +1,265 @@ +File: commonSealedWithPlatformInheritor.kt - 50b37496e0d0a0d16656bcd7ed485fa8 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("Base") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("PlatfromDerived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/exhaustiveness/expectEnum.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/exhaustiveness/expectEnum.common.antlrtree.txt index 7cebcbdfb..f51333556 100644 --- a/grammar/testData/diagnostics/multiplatform/exhaustiveness/expectEnum.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/exhaustiveness/expectEnum.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: expectEnum.common.kt - d187f919f674846cc5ffb2fde24f599d +File: expectEnum.common.kt - 9cff468e5bdf6c70447e65ad3c775838 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/exhaustiveness/expectSealedClass.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/exhaustiveness/expectSealedClass.common.antlrtree.txt index d96eb206a..0fdf6d9f5 100644 --- a/grammar/testData/diagnostics/multiplatform/exhaustiveness/expectSealedClass.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/exhaustiveness/expectSealedClass.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: expectSealedClass.common.kt - 79706d8bcf930c71755a3301db617f66 +File: expectSealedClass.common.kt - a6a7719459c4c24a6579f2b9f0bca394 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/exhaustiveness/expectSealedClassWithActualTypealias.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/exhaustiveness/expectSealedClassWithActualTypealias.antlrtree.txt new file mode 100644 index 000000000..9b792bd89 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/exhaustiveness/expectSealedClassWithActualTypealias.antlrtree.txt @@ -0,0 +1,325 @@ +File: expectSealedClassWithActualTypealias.kt - 292a1c0b6c88273de2786f3c30cb0dec + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("SealedClass") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derived1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SealedClass") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + modifiers + modifier + platformModifier + ACTUAL("actual") + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("SealedClass") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MySealedClass") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("MySealedClass") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derived2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SealedClass") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derived3") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("MySealedClass") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("whenForSealed") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SealedClass") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived1") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived2") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived3") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/exhaustiveness/expectSealedInterface.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/exhaustiveness/expectSealedInterface.common.antlrtree.txt index 179cee6af..55e6f8d16 100644 --- a/grammar/testData/diagnostics/multiplatform/exhaustiveness/expectSealedInterface.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/exhaustiveness/expectSealedInterface.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: expectSealedInterface.common.kt - 11546127a781ce39464e7828264a0418 +File: expectSealedInterface.common.kt - 75bdbcc7018e7aa310eb1ba985996de5 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/exhaustiveness/kt45796.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/exhaustiveness/kt45796.antlrtree.txt new file mode 100644 index 000000000..679a51e5f --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/exhaustiveness/kt45796.antlrtree.txt @@ -0,0 +1,501 @@ +File: kt45796.kt - 5e42f2b8ead670a0ec349621d0c5e35b + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("SealedClass") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SealedClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("NestedDeeper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SealedClass") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("whenForExpectSealed") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SealedClass") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SealedClass") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Nested") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("NestedDeeper") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("7") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SealedClass") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Nested") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("8") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("SealedClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("Nested") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SealedClass") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + CLASS("class") + simpleIdentifier + Identifier("NestedDeeper") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SealedClass") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("whenForSealed") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SealedClass") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SealedClass") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Nested") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("NestedDeeper") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("7") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SealedClass") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Nested") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("8") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/expectInterfaceApplicability.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/expectInterfaceApplicability.common.antlrtree.txt index 5a7977ca4..7d5dfc5fb 100644 --- a/grammar/testData/diagnostics/multiplatform/expectInterfaceApplicability.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/expectInterfaceApplicability.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: expectInterfaceApplicability.common.kt - b2e1ee7c0fc65755d74cbfb60587f3db +File: expectInterfaceApplicability.common.kt - 1714bf8f008bd1f686239ed738da389f NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/multiplatform/expectObjectWithAbstractMember.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/expectObjectWithAbstractMember.common.antlrtree.txt new file mode 100644 index 000000000..ec1a2ab8e --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/expectObjectWithAbstractMember.common.antlrtree.txt @@ -0,0 +1,51 @@ +File: expectObjectWithAbstractMember.common.kt - e6e29f0f6540b99ef4e3b0d2fdd1a697 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + OBJECT("object") + simpleIdentifier + Identifier("Implementation") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Base") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/expectObjectWithAbstractMember.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/expectObjectWithAbstractMember.jvm.antlrtree.txt new file mode 100644 index 000000000..9d2ab5c16 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/expectObjectWithAbstractMember.jvm.antlrtree.txt @@ -0,0 +1,81 @@ +File: expectObjectWithAbstractMember.jvm.kt - b7d931cdf0f5c22d7782e58c74873af1 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("RealImplementation") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + OBJECT("object") + simpleIdentifier + Identifier("Implementation") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("RealImplementation") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Base") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/generic/functionTypeParameterBounds.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/generic/functionTypeParameterBounds.common.antlrtree.txt index 445280834..b42aace14 100644 --- a/grammar/testData/diagnostics/multiplatform/generic/functionTypeParameterBounds.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/generic/functionTypeParameterBounds.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: functionTypeParameterBounds.common.kt - 1183d6f8caee81af8ebe19468be50e23 +File: functionTypeParameterBounds.common.kt - 67d19c1f3f41f3da9aa55c78daa01b94 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/generic/genericMemberBounds.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/generic/genericMemberBounds.common.antlrtree.txt index 13bf4a563..83e57f9e2 100644 --- a/grammar/testData/diagnostics/multiplatform/generic/genericMemberBounds.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/generic/genericMemberBounds.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: genericMemberBounds.common.kt - 2505def15b6aec4ba81bb839ac5d5be6 +File: genericMemberBounds.common.kt - 7e664eeb1b3ec8b7d9153b82ccc1c1f0 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/generic/membersInGenericClass.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/generic/membersInGenericClass.common.antlrtree.txt index 7d8754de0..c92400411 100644 --- a/grammar/testData/diagnostics/multiplatform/generic/membersInGenericClass.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/generic/membersInGenericClass.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: membersInGenericClass.common.kt - dbec4a8a0b48a73439447cb9d192e986 +File: membersInGenericClass.common.kt - 802712d93e1bd2603763c9e56ba845b1 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/generic/typeParameterBoundsDifferentOrderActualMissing.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/generic/typeParameterBoundsDifferentOrderActualMissing.common.antlrtree.txt index 4fe66b868..db44d849e 100644 --- a/grammar/testData/diagnostics/multiplatform/generic/typeParameterBoundsDifferentOrderActualMissing.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/generic/typeParameterBoundsDifferentOrderActualMissing.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: typeParameterBoundsDifferentOrderActualMissing.common.kt - 83a9c9d4c25ea7a10da2b689c73fce2c +File: typeParameterBoundsDifferentOrderActualMissing.common.kt - 7c096f87a2e33cc4f67e786a45ac0b29 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/actualClassWithDefaultValuesInAnnotationViaTypealias.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/actualClassWithDefaultValuesInAnnotationViaTypealias.common.antlrtree.txt index 3a6537fe2..c62ad17cf 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/actualClassWithDefaultValuesInAnnotationViaTypealias.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/actualClassWithDefaultValuesInAnnotationViaTypealias.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: actualClassWithDefaultValuesInAnnotationViaTypealias.common.kt - 42305640e5c73ab27ab43e9b9d8f589e +File: actualClassWithDefaultValuesInAnnotationViaTypealias.common.kt - 9c56fd5595f1f2d8d11cca3a7ba2eeb2 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/actualClassWithDefaultValuesInAnnotationViaTypealias.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/actualClassWithDefaultValuesInAnnotationViaTypealias.jvm.antlrtree.txt index 1bba92deb..52d89d7eb 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/actualClassWithDefaultValuesInAnnotationViaTypealias.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/actualClassWithDefaultValuesInAnnotationViaTypealias.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: actualClassWithDefaultValuesInAnnotationViaTypealias.jvm.kt - d9e0312ea7ff91d1c55a52fbe7faff7c +File: actualClassWithDefaultValuesInAnnotationViaTypealias.jvm.kt - 381587ce58112ffb28c4cfb1ea9e97bd packageHeader importList topLevelObject @@ -272,5 +272,5 @@ File: actualClassWithDefaultValuesInAnnotationViaTypealias.jvm.kt - d9e0312ea7ff simpleIdentifier Identifier("Bar2") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/actualClassWithDifferentConstructors.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/actualClassWithDifferentConstructors.common.antlrtree.txt index ea7e7295e..3120e08d4 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/actualClassWithDifferentConstructors.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/actualClassWithDifferentConstructors.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: actualClassWithDifferentConstructors.common.kt - 89c4d4e7ce1c7fa6c71a6dd765c5e8f8 +File: actualClassWithDifferentConstructors.common.kt - 65d1d0210f657115694aa983f6def5f7 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/actualMissing.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/actualMissing.common.antlrtree.txt index cae395345..5f1a578bb 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/actualMissing.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/actualMissing.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: actualMissing.common.kt - b10ad60d47e04b27d6178a9966fbdd93 +File: actualMissing.common.kt - b678276a36bb0a146312ef44f5b20e16 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/baseExpectClassWithoutConstructor.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/baseExpectClassWithoutConstructor.common.antlrtree.txt index 4b471f7fe..55432c8fe 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/baseExpectClassWithoutConstructor.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/baseExpectClassWithoutConstructor.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: baseExpectClassWithoutConstructor.common.kt - 7b3b90389acf2bd22c5a1f84d524d6c7 +File: baseExpectClassWithoutConstructor.common.kt - 1936ea297d0f92c761d14aba02f911b4 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/classKinds.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/classKinds.common.antlrtree.txt index 3e412ad0d..e2c4fcbaa 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/classKinds.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/classKinds.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: classKinds.common.kt - 54aba9191f47b1da5ce6ded1de7b0c49 +File: classKinds.common.kt - b891a383234aac5721de34122cb028d2 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/dontOverrideMethodsFromInterfaceInCommonCode.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/dontOverrideMethodsFromInterfaceInCommonCode.common.antlrtree.txt index c72c5dd42..7a123bf0b 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/dontOverrideMethodsFromInterfaceInCommonCode.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/dontOverrideMethodsFromInterfaceInCommonCode.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: dontOverrideMethodsFromInterfaceInCommonCode.common.kt - f783e63c5fe775583a079c0d70a6df5d +File: dontOverrideMethodsFromInterfaceInCommonCode.common.kt - 0f77ffbd030a131d2dc52a998c2554af packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/dontOverrideMethodsFromInterfaceInCommonCode.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/dontOverrideMethodsFromInterfaceInCommonCode.jvm.antlrtree.txt index 8870a4ce4..c2dab30d3 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/dontOverrideMethodsFromInterfaceInCommonCode.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/dontOverrideMethodsFromInterfaceInCommonCode.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: dontOverrideMethodsFromInterfaceInCommonCode.jvm.kt - 0da7c6f81de49a40af629595c1233551 +File: dontOverrideMethodsFromInterfaceInCommonCode.jvm.kt - d5c5d2efffd8355acebd99e7145c034f packageHeader importList topLevelObject @@ -115,5 +115,5 @@ File: dontOverrideMethodsFromInterfaceInCommonCode.jvm.kt - 0da7c6f81de49a40af62 simpleIdentifier Identifier("Foo") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/equalsOverrideInActualInterface.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/equalsOverrideInActualInterface.antlrtree.txt new file mode 100644 index 000000000..700a739de --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/headerClass/equalsOverrideInActualInterface.antlrtree.txt @@ -0,0 +1,73 @@ +File: equalsOverrideInActualInterface.kt - fef9b1d550661604339cf5fbab998362 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + INTERFACE("interface") + simpleIdentifier + Identifier("Base") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + INTERFACE("interface") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("equals") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/expectClassWithExplicitAbstractMember.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/expectClassWithExplicitAbstractMember.common.antlrtree.txt index e6141f3b2..d28c8d68d 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/expectClassWithExplicitAbstractMember.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/expectClassWithExplicitAbstractMember.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: expectClassWithExplicitAbstractMember.common.kt - 8b24513af91c348d34e78d2c77a9e0bb +File: expectClassWithExplicitAbstractMember.common.kt - caea12bf47e2c882dbc9bb492418ac38 packageHeader importList topLevelObject @@ -187,5 +187,5 @@ File: expectClassWithExplicitAbstractMember.common.kt - 8b24513af91c348d34e78d2c NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/expectClassWithoutConstructor.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/expectClassWithoutConstructor.common.antlrtree.txt index 51d886946..4e2e5c515 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/expectClassWithoutConstructor.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/expectClassWithoutConstructor.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: expectClassWithoutConstructor.common.kt - 1328281bfb0b8c03233c361b1eb66efb +File: expectClassWithoutConstructor.common.kt - 54f9a87318221ce19666ae0c81b37634 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/expectClassWithoutConstructor.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/expectClassWithoutConstructor.jvm.antlrtree.txt index 362a75646..dfb0061a1 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/expectClassWithoutConstructor.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/expectClassWithoutConstructor.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: expectClassWithoutConstructor.jvm.kt - c3eca1f52864d6a583408db6341573c4 +File: expectClassWithoutConstructor.jvm.kt - 40b0e9d9d490e2b9d3cc56e175b703a6 packageHeader importList topLevelObject @@ -48,5 +48,5 @@ File: expectClassWithoutConstructor.jvm.kt - c3eca1f52864d6a583408db6341573c4 simpleIdentifier Identifier("FooBar") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/expectDeclarationWithStrongIncompatibilities.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/expectDeclarationWithStrongIncompatibilities.common.antlrtree.txt index 43783e36b..6a473edd8 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/expectDeclarationWithStrongIncompatibilities.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/expectDeclarationWithStrongIncompatibilities.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: expectDeclarationWithStrongIncompatibilities.common.kt - fbaa273ace37749d9c4f1ef856b73a31 +File: expectDeclarationWithStrongIncompatibilities.common.kt - c81296c43c11df82aadcd970c3f3cec9 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/expectDeclarationWithWeakIncompatibilities.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/expectDeclarationWithWeakIncompatibilities.common.antlrtree.txt index 80f2b16bc..fea7857f3 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/expectDeclarationWithWeakIncompatibilities.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/expectDeclarationWithWeakIncompatibilities.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: expectDeclarationWithWeakIncompatibilities.common.kt - da9ca646bb2ac132c08ce0e87c1fbac0 +File: expectDeclarationWithWeakIncompatibilities.common.kt - 80d279081a250d4ef7f08040f75d04e8 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/expectFinalActualOpen.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/expectFinalActualOpen.common.antlrtree.txt index 34f4e13af..94e1a0856 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/expectFinalActualOpen.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/expectFinalActualOpen.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: expectFinalActualOpen.common.kt - 92971a79c2064201173bfa686cde76e7 +File: expectFinalActualOpen.common.kt - 360da444b3337e419150c4a25caa811d packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/extendExpectedClassWithoutExplicitOverrideOfMethod.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/extendExpectedClassWithoutExplicitOverrideOfMethod.common.antlrtree.txt index 9c8030031..08c58ada2 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/extendExpectedClassWithoutExplicitOverrideOfMethod.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/extendExpectedClassWithoutExplicitOverrideOfMethod.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: extendExpectedClassWithoutExplicitOverrideOfMethod.common.kt - 5533934fb46a6d668ad8f3a298eff34b +File: extendExpectedClassWithoutExplicitOverrideOfMethod.common.kt - b7e3aa86b719b91fb587a959a21ced94 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/extendExpectedClassWithoutExplicitOverrideOfMethod.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/extendExpectedClassWithoutExplicitOverrideOfMethod.jvm.antlrtree.txt index 62cb81b12..226e9c55e 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/extendExpectedClassWithoutExplicitOverrideOfMethod.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/extendExpectedClassWithoutExplicitOverrideOfMethod.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: extendExpectedClassWithoutExplicitOverrideOfMethod.jvm.kt - 503d5e906890fd2b140cbce5487c578f +File: extendExpectedClassWithoutExplicitOverrideOfMethod.jvm.kt - a831513bcccf874ccc89bbba15342382 packageHeader importList topLevelObject @@ -191,5 +191,5 @@ File: extendExpectedClassWithoutExplicitOverrideOfMethod.jvm.kt - 503d5e906890fd NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/extraHeaderOnMembers.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/extraHeaderOnMembers.common.antlrtree.txt index 21a502086..76ab3fdf2 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/extraHeaderOnMembers.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/extraHeaderOnMembers.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: extraHeaderOnMembers.common.kt - 05b1b9c5922060e7cff7eea296c8d94f +File: extraHeaderOnMembers.common.kt - 7b5d67323c3429c19f9cb4a74714dca4 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/functionAndPropertyWithSameName.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/functionAndPropertyWithSameName.common.antlrtree.txt index 9bc21f424..facf76c14 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/functionAndPropertyWithSameName.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/functionAndPropertyWithSameName.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: functionAndPropertyWithSameName.common.kt - aa3b7dedb8357dfbe0745ff5721899f4 +File: functionAndPropertyWithSameName.common.kt - 1705142672404c05a075b7ad4d0c5229 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/genericClassImplTypeAlias.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/genericClassImplTypeAlias.common.antlrtree.txt index 03c7fe52b..f727f0430 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/genericClassImplTypeAlias.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/genericClassImplTypeAlias.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: genericClassImplTypeAlias.common.kt - 2adf314764fe72fdc7593e8ae8bd7c26 +File: genericClassImplTypeAlias.common.kt - b4b5c5c341fe39ebe4765b106bc78a82 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/headerClassMember.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/headerClassMember.common.antlrtree.txt index cf40244ad..f7acd85b4 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/headerClassMember.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/headerClassMember.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: headerClassMember.common.kt - 8f6e19ab6fcd9df508bdc3b2660e9ae4 +File: headerClassMember.common.kt - 1bc362c57a2cb8fb71e63646c40caf03 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/headerClassMember.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/headerClassMember.jvm.antlrtree.txt index 8d83f548b..1b5cbc52e 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/headerClassMember.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/headerClassMember.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: headerClassMember.jvm.kt - 22da26e257079586801734102a2947d6 +File: headerClassMember.jvm.kt - 29ec9df91f59a30ebb925781e971bd81 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/implDataClass.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/implDataClass.common.antlrtree.txt index 0f54727d4..b2dee15cd 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/implDataClass.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/implDataClass.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: implDataClass.common.kt - b42b91f45518130d29cdd1a38c377ede +File: implDataClass.common.kt - 6b8c50e6a7406ff46d9c65d3e9762666 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/implOpenClass.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/implOpenClass.common.antlrtree.txt index 7a9c41fab..54d78095f 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/implOpenClass.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/implOpenClass.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: implOpenClass.common.kt - 31c5c768678fa904efa61575e6575d12 +File: implOpenClass.common.kt - a8e2f1c88fb77e823f494d6b914cfb5a packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/inheritanceByDelegationInExpectClass.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/inheritanceByDelegationInExpectClass.common.antlrtree.txt index 2766c528c..0c18edb04 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/inheritanceByDelegationInExpectClass.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/inheritanceByDelegationInExpectClass.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: inheritanceByDelegationInExpectClass.common.kt - 6341c199b4014c9c535276dc97a12389 +File: inheritanceByDelegationInExpectClass.common.kt - 9969c5fa3798e95e4f347f8f5defc5f3 packageHeader importList topLevelObject @@ -125,5 +125,5 @@ File: inheritanceByDelegationInExpectClass.common.kt - 6341c199b4014c9c535276dc9 LPAREN("(") RPAREN(")") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/modalityCheckForExplicitAndImplicitOverride.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/modalityCheckForExplicitAndImplicitOverride.common.antlrtree.txt index c53e9abd8..25c38467d 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/modalityCheckForExplicitAndImplicitOverride.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/modalityCheckForExplicitAndImplicitOverride.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: modalityCheckForExplicitAndImplicitOverride.common.kt - b9504218a2f17bda383a0728e6c762d9 +File: modalityCheckForExplicitAndImplicitOverride.common.kt - 6dec0976f3bb41433e35d97153191172 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/morePermissiveVisibilityOnActual.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/morePermissiveVisibilityOnActual.common.antlrtree.txt index d375828ca..e944dabe4 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/morePermissiveVisibilityOnActual.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/morePermissiveVisibilityOnActual.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: morePermissiveVisibilityOnActual.common.kt - 8f1189f63bf9ce935691a81c572aac77 +File: morePermissiveVisibilityOnActual.common.kt - 9cbb5797e61ee51e3f653ef18bada9ac packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/morePermissiveVisibilityOnActual.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/morePermissiveVisibilityOnActual.jvm.antlrtree.txt index 087f83034..499c20cba 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/morePermissiveVisibilityOnActual.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/morePermissiveVisibilityOnActual.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: morePermissiveVisibilityOnActual.jvm.kt - 5ae510f6296bc6ed081f65afd72b97a9 +File: morePermissiveVisibilityOnActual.jvm.kt - d2e93e2a8e808c5030d8f4a2ce09f44a packageHeader importList topLevelObject @@ -222,5 +222,5 @@ File: morePermissiveVisibilityOnActual.jvm.kt - 5ae510f6296bc6ed081f65afd72b97a9 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/morePermissiveVisibilityOnActualViaTypeAlias.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/morePermissiveVisibilityOnActualViaTypeAlias.common.antlrtree.txt index 5dc3ed79d..595882575 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/morePermissiveVisibilityOnActualViaTypeAlias.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/morePermissiveVisibilityOnActualViaTypeAlias.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: morePermissiveVisibilityOnActualViaTypeAlias.common.kt - 97a891bc8553492c6a251b87af707917 +File: morePermissiveVisibilityOnActualViaTypeAlias.common.kt - 1160cfdfd46ed6e063c4cf21d8399d88 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/morePermissiveVisibilityOnActualViaTypeAlias.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/morePermissiveVisibilityOnActualViaTypeAlias.jvm.antlrtree.txt index 05f8389e4..daece4334 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/morePermissiveVisibilityOnActualViaTypeAlias.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/morePermissiveVisibilityOnActualViaTypeAlias.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: morePermissiveVisibilityOnActualViaTypeAlias.jvm.kt - 875e38c2a77f81866c6664c13e431c55 +File: morePermissiveVisibilityOnActualViaTypeAlias.jvm.kt - acec59386895cf40703f712957442c58 packageHeader importList topLevelObject @@ -23,5 +23,5 @@ File: morePermissiveVisibilityOnActualViaTypeAlias.jvm.kt - 875e38c2a77f81866c66 simpleIdentifier Identifier("Foo") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/nestedClasses.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/nestedClasses.common.antlrtree.txt index 5c9d8b713..8176c0534 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/nestedClasses.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/nestedClasses.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: nestedClasses.common.kt - ad4d260e2d1e81138e600c556dc849ad +File: nestedClasses.common.kt - add33765f4695249a21f0e9506508ade packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/nestedClassesWithErrors.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/nestedClassesWithErrors.common.antlrtree.txt index 9b3d81f10..52ac73672 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/nestedClassesWithErrors.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/nestedClassesWithErrors.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: nestedClassesWithErrors.common.kt - 4d785b524510028d15d7219da70b2336 +File: nestedClassesWithErrors.common.kt - 93092dbd315cf30e04124c770b5e2d21 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/noImplKeywordOnMember.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/noImplKeywordOnMember.common.antlrtree.txt index 9548dfce0..11d5e52d4 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/noImplKeywordOnMember.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/noImplKeywordOnMember.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: noImplKeywordOnMember.common.kt - d18e0176d0020475b6c6553582dd7d1d +File: noImplKeywordOnMember.common.kt - e6546174643fe99bb166a7d9a3a001cb packageHeader importList topLevelObject @@ -33,6 +33,28 @@ File: noImplKeywordOnMember.common.kt - d18e0176d0020475b6c6553582dd7d1d Identifier("String") semis NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bas") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") RCURL("}") semis NL("\n") diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/noImplKeywordOnMember.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/noImplKeywordOnMember.jvm.antlrtree.txt index 8a7fcb6c1..ec70d9f9e 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/noImplKeywordOnMember.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/noImplKeywordOnMember.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: noImplKeywordOnMember.jvm.kt - 73d10fea335d8060b165a41b0ec779c3 +File: noImplKeywordOnMember.jvm.kt - 945ebdd55f681c12316ccc366fdd721f packageHeader importList topLevelObject @@ -57,6 +57,33 @@ File: noImplKeywordOnMember.jvm.kt - 73d10fea335d8060b165a41b0ec779c3 QUOTE_CLOSE(""") semis NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bas") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("g") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") RCURL("}") semis NL("\n") diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/privateMembers.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/privateMembers.common.antlrtree.txt index 9e09ad650..d31fa01cb 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/privateMembers.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/privateMembers.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: privateMembers.common.kt - 42f9be9237eb7888ee13ca9245113db4 +File: privateMembers.common.kt - 6ee5cd3c6b7d6d1601471fafede30b77 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/simpleHeaderClass.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/simpleHeaderClass.common.antlrtree.txt index 895e6508c..e15ef859f 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/simpleHeaderClass.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/simpleHeaderClass.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: simpleHeaderClass.common.kt - 9cae4f7f8379da9d788f9d5fe302c4a6 +File: simpleHeaderClass.common.kt - 3b191efd9c84e7cc446ed11e19ab4415 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/simpleHeaderClass.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/simpleHeaderClass.jvm.antlrtree.txt index a5f250299..94564ba8d 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/simpleHeaderClass.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/simpleHeaderClass.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: simpleHeaderClass.jvm.kt - 68f12a346a4adb600cee592ca11e6817 +File: simpleHeaderClass.jvm.kt - d7ee8282389a6d081a433eee8bbe401e packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/superClass.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/superClass.common.antlrtree.txt index 3e26a5d14..397c12dfe 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/superClass.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/superClass.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: superClass.common.kt - 461b084cfc595088f3a42e7bc9c922fc +File: superClass.common.kt - 301fbee83b3aca3a8d60c45cd114dd4b packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerClass/superClass.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerClass/superClass.jvm.antlrtree.txt index 69b5cf266..3cb8d8fc7 100644 --- a/grammar/testData/diagnostics/multiplatform/headerClass/superClass.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerClass/superClass.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: superClass.jvm.kt - ec5f1e40e11c5e45d90d527331f03364 +File: superClass.jvm.kt - 2f94d90f90dd6a0e542dd9aa0226419f packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/headerFunInNonHeaderClass.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/headerFunInNonHeaderClass.common.antlrtree.txt index 958060f3a..fe618607c 100644 --- a/grammar/testData/diagnostics/multiplatform/headerFunInNonHeaderClass.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/headerFunInNonHeaderClass.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: headerFunInNonHeaderClass.common.kt - caedcb8e7af761e289cf3ea420b58feb +File: headerFunInNonHeaderClass.common.kt - f58603af7cddf86f578610d00c4a8c23 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/hmpp/sealedInheritorsInComplexModuleStructure.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/hmpp/sealedInheritorsInComplexModuleStructure.antlrtree.txt new file mode 100644 index 000000000..139800f9e --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/hmpp/sealedInheritorsInComplexModuleStructure.antlrtree.txt @@ -0,0 +1,142 @@ +File: sealedInheritorsInComplexModuleStructure.kt - 4c1e81cd4113a2af8a8293a0b1270394 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("foo") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("SealedWithSharedActual") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("SealedWithPlatformActuals") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SealedWithSharedActual") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + PACKAGE("package") + Identifier("foo") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("SealedWithSharedActual") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SimpleShared") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SealedWithPlatformActuals") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + PACKAGE("package") + Identifier("foo") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("SealedWithPlatformActuals") + primaryConstructor + modifiers + modifier + platformModifier + ACTUAL("actual") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SealedWithSharedActual") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/hmpp/sealedInheritorsInComplexModuleStructure.diff b/grammar/testData/diagnostics/multiplatform/hmpp/sealedInheritorsInComplexModuleStructure.diff new file mode 100644 index 000000000..242547db6 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/hmpp/sealedInheritorsInComplexModuleStructure.diff @@ -0,0 +1 @@ +Needs support for HMPP single-file multi-module tests \ No newline at end of file diff --git a/grammar/testData/diagnostics/multiplatform/hmpp/simple.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/hmpp/simple.antlrtree.txt new file mode 100644 index 000000000..f461e9350 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/hmpp/simple.antlrtree.txt @@ -0,0 +1,348 @@ +File: simple.kt - ac5881b6fe5c633e511a45485b2d39a5 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + EXPECT("expect") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("O") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("getB") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + platformModifier + ACTUAL("actual") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + modifiers + modifier + platformModifier + ACTUAL("actual") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("K") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("getB") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/implDelegatedMember.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/implDelegatedMember.common.antlrtree.txt index d30b8b7c9..1750d1fa8 100644 --- a/grammar/testData/diagnostics/multiplatform/implDelegatedMember.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/implDelegatedMember.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: implDelegatedMember.common.kt - e8d80d10b47dac1502efe89ce262d095 +File: implDelegatedMember.common.kt - 714a6be0507c0a0ee189d70856434e82 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/implDynamic.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/implDynamic.common.antlrtree.txt index cc47cdef8..89e9e8f7e 100644 --- a/grammar/testData/diagnostics/multiplatform/implDynamic.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/implDynamic.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: implDynamic.common.kt - dd3c97f6fe9555f11d891dae98870256 +File: implDynamic.common.kt - 72d9bc64dcffd1c91a6b0401a6e80356 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/implFakeOverride.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/implFakeOverride.common.antlrtree.txt index 902957766..b23a298f0 100644 --- a/grammar/testData/diagnostics/multiplatform/implFakeOverride.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/implFakeOverride.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: implFakeOverride.common.kt - d18e0176d0020475b6c6553582dd7d1d +File: implFakeOverride.common.kt - 3362d0a5946cd43b911d9cafbf205945 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/incompatibles.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/incompatibles.antlrtree.txt index ec73015ac..f3d194b62 100644 --- a/grammar/testData/diagnostics/multiplatform/incompatibles.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/incompatibles.antlrtree.txt @@ -1,5 +1,4 @@ -File: incompatibles.kt - e63d4e2378a316b966eb58117d6914c6 (WITH_ERRORS) - NL("\n") +File: incompatibles.kt - 61d44c892028568674cd9a11f123b5f5 (WITH_ERRORS) NL("\n") Identifier("header") Identifier("impl") @@ -84,5 +83,5 @@ File: incompatibles.kt - e63d4e2378a316b966eb58117d6914c6 (WITH_ERRORS) simpleIdentifier Identifier("Sixth") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/inlineClasses/expectActualInlineClass.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/inlineClasses/expectActualInlineClass.common.antlrtree.txt index 6b9686217..7c50380c8 100644 --- a/grammar/testData/diagnostics/multiplatform/inlineClasses/expectActualInlineClass.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/inlineClasses/expectActualInlineClass.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: expectActualInlineClass.common.kt - cc324946f86ebdeb63efb2f0041d9ee2 +File: expectActualInlineClass.common.kt - 5c607988527a0602b1a44b023dc37bd2 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/inlineClasses/jvmInlineExpectValueClass.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/inlineClasses/jvmInlineExpectValueClass.common.antlrtree.txt index c1777ebc7..0128e8435 100644 --- a/grammar/testData/diagnostics/multiplatform/inlineClasses/jvmInlineExpectValueClass.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/inlineClasses/jvmInlineExpectValueClass.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: jvmInlineExpectValueClass.common.kt - b2eaecec69fac63977b9c404b11bf0cd +File: jvmInlineExpectValueClass.common.kt - e4bb7645d5c43788b99d88854d680349 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/multiplatform/java/flexibleTypes.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/java/flexibleTypes.common.antlrtree.txt index 117f7f1ae..9194f7ea7 100644 --- a/grammar/testData/diagnostics/multiplatform/java/flexibleTypes.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/java/flexibleTypes.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: flexibleTypes.common.kt - 7546901af1a5aec1fd9c035ac101866a +File: flexibleTypes.common.kt - b9db5f9d5a16dd41a1c621c3c95b6d32 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/java/parameterNames.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/java/parameterNames.common.antlrtree.txt index f8d5aeb2d..111b21a41 100644 --- a/grammar/testData/diagnostics/multiplatform/java/parameterNames.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/java/parameterNames.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: parameterNames.common.kt - fbba9d760933d949de853ff8c045c7dc +File: parameterNames.common.kt - cddceff185b2cf4ecac3a7c062e56b9a packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/namedArguments.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/namedArguments.common.antlrtree.txt index bc16ccf07..cffd65e9e 100644 --- a/grammar/testData/diagnostics/multiplatform/namedArguments.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/namedArguments.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: namedArguments.common.kt - f41eb0ac8c4efd6854d2c1d6d23bb078 +File: namedArguments.common.kt - ccb5fd9b058a9cb635590dbc98c6085d packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/privateTopLevelDeclarations.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/privateTopLevelDeclarations.common.antlrtree.txt index cde369b5b..c8ca358f8 100644 --- a/grammar/testData/diagnostics/multiplatform/privateTopLevelDeclarations.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/privateTopLevelDeclarations.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: privateTopLevelDeclarations.common.kt - df6ebedb0370073c5cf671aa5246988c +File: privateTopLevelDeclarations.common.kt - 48abb6b18f3897593089792379095868 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/sealedTypeAlias.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/sealedTypeAlias.common.antlrtree.txt index 35b4d669d..fc6d32730 100644 --- a/grammar/testData/diagnostics/multiplatform/sealedTypeAlias.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/sealedTypeAlias.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: sealedTypeAlias.common.kt - ccad727af39daebd589e036715f16fea +File: sealedTypeAlias.common.kt - c30d884ee8910f01ca323c4a48792970 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/sealedTypeAlias.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/sealedTypeAlias.jvm.antlrtree.txt index c8183e633..e6ea16c7f 100644 --- a/grammar/testData/diagnostics/multiplatform/sealedTypeAlias.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/sealedTypeAlias.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: sealedTypeAlias.jvm.kt - c5b1352a3a7520ed003fe2b29b0c90ac +File: sealedTypeAlias.jvm.kt - 2de4fd676cbaa091f4430d0b2f94d69a packageHeader importList topLevelObject @@ -76,5 +76,5 @@ File: sealedTypeAlias.jvm.kt - c5b1352a3a7520ed003fe2b29b0c90ac NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/sealedTypeAliasTopLevel.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/sealedTypeAliasTopLevel.common.antlrtree.txt index 610d2c436..21b6d7e62 100644 --- a/grammar/testData/diagnostics/multiplatform/sealedTypeAliasTopLevel.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/sealedTypeAliasTopLevel.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: sealedTypeAliasTopLevel.common.kt - 339ee449be74f21879cde46201a364b8 +File: sealedTypeAliasTopLevel.common.kt - 57e586994991a083046b23e55f47f2d6 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/smartcastOnMemberPropertyFromCommonClass.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/smartcastOnMemberPropertyFromCommonClass.antlrtree.txt new file mode 100644 index 000000000..2a874cc96 --- /dev/null +++ b/grammar/testData/diagnostics/multiplatform/smartcastOnMemberPropertyFromCommonClass.antlrtree.txt @@ -0,0 +1,341 @@ +File: smartcastOnMemberPropertyFromCommonClass.kt - a960ec3c2e87e59553d916d744a6b178 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Some") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("e") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeEnum") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("B") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Some") + DOT(".") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("e") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("e") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("a") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("B") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/topLevelFun/callHeaderFun.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelFun/callHeaderFun.common.antlrtree.txt index 0fbcc08ee..6fd0e26dc 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelFun/callHeaderFun.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelFun/callHeaderFun.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: callHeaderFun.common.kt - eb78b78eacc7c5201302005c546fdc44 +File: callHeaderFun.common.kt - c8165646a7a1825310021778d1ac7698 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/topLevelFun/callHeaderFun.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelFun/callHeaderFun.jvm.antlrtree.txt index efbd28615..cb1b29bbf 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelFun/callHeaderFun.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelFun/callHeaderFun.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: callHeaderFun.jvm.kt - 602f124621ef3a315f13af429dc37156 +File: callHeaderFun.jvm.kt - 0e711d9d0c9a1fc2b16bed038f7f6f7f packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/topLevelFun/callableReferenceOnExpectFun.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelFun/callableReferenceOnExpectFun.common.antlrtree.txt index c1cd19d8d..2fc8a6f20 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelFun/callableReferenceOnExpectFun.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelFun/callableReferenceOnExpectFun.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: callableReferenceOnExpectFun.common.kt - 619beaf2e23985d472386c24dd0c93ff +File: callableReferenceOnExpectFun.common.kt - 352eaf9e65c197c8ed065eb738c5fd59 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/multiplatform/topLevelFun/conflictingImplDeclarations.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelFun/conflictingImplDeclarations.common.antlrtree.txt index 05dc2c5bc..143974fbd 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelFun/conflictingImplDeclarations.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelFun/conflictingImplDeclarations.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: conflictingImplDeclarations.common.kt - 25ad3a0837b8d8b546486ca7a66e883b +File: conflictingImplDeclarations.common.kt - a47552c05b15cbc7b31c2d180fff0c91 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/topLevelFun/conflictingImplDeclarations.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelFun/conflictingImplDeclarations.jvm.antlrtree.txt index 7d7746a42..f515c3c98 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelFun/conflictingImplDeclarations.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelFun/conflictingImplDeclarations.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: conflictingImplDeclarations.jvm.kt - 5f14e3bdb7c093ad58e2be6efe57292c +File: conflictingImplDeclarations.jvm.kt - dec492fbca6abd1f5b8578a52d3d87de packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/topLevelFun/functionModifiers.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelFun/functionModifiers.common.antlrtree.txt index 3cb0f6215..cbc65d76b 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelFun/functionModifiers.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelFun/functionModifiers.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: functionModifiers.common.kt - 0b37b4914d6b2cbad7d080fc23005017 +File: functionModifiers.common.kt - ac619e9f3ca3021afb2f347b4132fff0 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/topLevelFun/headerAndImplInDIfferentPackages.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelFun/headerAndImplInDIfferentPackages.common.antlrtree.txt index 463e1613f..310458674 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelFun/headerAndImplInDIfferentPackages.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelFun/headerAndImplInDIfferentPackages.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: headerAndImplInDIfferentPackages.common.kt - 26f2d9d8780e817a35790baeacb529a5 +File: headerAndImplInDIfferentPackages.common.kt - b834972df3dad52ee9a737f3b675eed9 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/multiplatform/topLevelFun/headerAndImplInDIfferentPackages.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelFun/headerAndImplInDIfferentPackages.jvm.antlrtree.txt index a7e472124..da5c147b7 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelFun/headerAndImplInDIfferentPackages.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelFun/headerAndImplInDIfferentPackages.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: headerAndImplInDIfferentPackages.jvm.kt - b0496a67b39fa7cc3391ce4c22c99ab0 +File: headerAndImplInDIfferentPackages.jvm.kt - f063b0b355c6e343a34fdf3b3479f040 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/multiplatform/topLevelFun/implDeclarationWithoutBody.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelFun/implDeclarationWithoutBody.common.antlrtree.txt index 4d980a9fa..14fe6765b 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelFun/implDeclarationWithoutBody.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelFun/implDeclarationWithoutBody.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: implDeclarationWithoutBody.common.kt - 25ad3a0837b8d8b546486ca7a66e883b +File: implDeclarationWithoutBody.common.kt - a47552c05b15cbc7b31c2d180fff0c91 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/topLevelFun/inlineFun.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelFun/inlineFun.common.antlrtree.txt index 24796c76c..6ca352679 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelFun/inlineFun.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelFun/inlineFun.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: inlineFun.common.kt - 0db1db18a4da5e0178d01b7ad1aae7e3 +File: inlineFun.common.kt - 171c6b789951da29b746ee953ec54acd packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/topLevelFun/inlineFun.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelFun/inlineFun.jvm.antlrtree.txt index 2ebedad71..b2ceb3d85 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelFun/inlineFun.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelFun/inlineFun.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: inlineFun.jvm.kt - 7c2a84926c50162b0b0c36e3a28558aa +File: inlineFun.jvm.kt - 456c3da159ddf44466aa1a71a60ef68b packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/topLevelFun/simpleHeaderFun.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelFun/simpleHeaderFun.common.antlrtree.txt index 3c0411dbf..439ba5970 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelFun/simpleHeaderFun.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelFun/simpleHeaderFun.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: simpleHeaderFun.common.kt - 25ad3a0837b8d8b546486ca7a66e883b +File: simpleHeaderFun.common.kt - a47552c05b15cbc7b31c2d180fff0c91 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/topLevelFun/simpleHeaderFun.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelFun/simpleHeaderFun.jvm.antlrtree.txt index a837d1bc5..909a2d8c2 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelFun/simpleHeaderFun.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelFun/simpleHeaderFun.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: simpleHeaderFun.jvm.kt - 14eb3b5b12288616a51362923c4c269d +File: simpleHeaderFun.jvm.kt - 44b3d1bc651c1580b7040735eb7abf6c packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/topLevelFun/valueParameterModifiers.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelFun/valueParameterModifiers.common.antlrtree.txt index 9bc28a384..d942738ca 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelFun/valueParameterModifiers.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelFun/valueParameterModifiers.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: valueParameterModifiers.common.kt - 2cabed2926851578f8dac9dc03a81b50 +File: valueParameterModifiers.common.kt - fb374631daf8be72ac422d5ce49aa904 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/multiplatform/topLevelProperty/simpleHeaderVar.common.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelProperty/simpleHeaderVar.common.antlrtree.txt index 886f537f7..06ab81038 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelProperty/simpleHeaderVar.common.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelProperty/simpleHeaderVar.common.antlrtree.txt @@ -1,4 +1,4 @@ -File: simpleHeaderVar.common.kt - c2cad4683e72598e57d765a2c3ba6730 +File: simpleHeaderVar.common.kt - e9731ca4b954735dbebbe6bd54cc740c packageHeader importList topLevelObject @@ -22,6 +22,4 @@ File: simpleHeaderVar.common.kt - c2cad4683e72598e57d765a2c3ba6730 NL("\n") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/topLevelProperty/simpleHeaderVar.js.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelProperty/simpleHeaderVar.js.antlrtree.txt index e804e287d..0aaa53c62 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelProperty/simpleHeaderVar.js.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelProperty/simpleHeaderVar.js.antlrtree.txt @@ -43,6 +43,4 @@ File: simpleHeaderVar.js.kt - b4194587d8d819be6a048395389fcdcc LineStrText("JS") QUOTE_CLOSE(""") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/multiplatform/topLevelProperty/simpleHeaderVar.jvm.antlrtree.txt b/grammar/testData/diagnostics/multiplatform/topLevelProperty/simpleHeaderVar.jvm.antlrtree.txt index 8fa810856..8d7d41efd 100644 --- a/grammar/testData/diagnostics/multiplatform/topLevelProperty/simpleHeaderVar.jvm.antlrtree.txt +++ b/grammar/testData/diagnostics/multiplatform/topLevelProperty/simpleHeaderVar.jvm.antlrtree.txt @@ -1,4 +1,4 @@ -File: simpleHeaderVar.jvm.kt - fe53daa1c75575bdc90a3f87189cc55a +File: simpleHeaderVar.jvm.kt - 492c7662ce241009a9ec46267946fb99 packageHeader importList topLevelObject @@ -45,6 +45,4 @@ File: simpleHeaderVar.jvm.kt - fe53daa1c75575bdc90a3f87189cc55a NL("\n") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/namedArguments/ambiguousNamedArguments1.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/ambiguousNamedArguments1.antlrtree.txt index b7a00de7b..93f8f02b1 100644 --- a/grammar/testData/diagnostics/namedArguments/ambiguousNamedArguments1.antlrtree.txt +++ b/grammar/testData/diagnostics/namedArguments/ambiguousNamedArguments1.antlrtree.txt @@ -686,6 +686,4 @@ File: ambiguousNamedArguments1.kt - cba78df58a6038f3f402a266cce5a965 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/namedArguments/ambiguousNamedArguments2.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/ambiguousNamedArguments2.antlrtree.txt index c562f7755..91efdda28 100644 --- a/grammar/testData/diagnostics/namedArguments/ambiguousNamedArguments2.antlrtree.txt +++ b/grammar/testData/diagnostics/namedArguments/ambiguousNamedArguments2.antlrtree.txt @@ -1094,6 +1094,4 @@ File: ambiguousNamedArguments2.kt - dff04668105671ad56dcac138e4906bd semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/namedArguments/ambiguousNamedArgumentsWithGenerics1.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/ambiguousNamedArgumentsWithGenerics1.antlrtree.txt index 14da23d3e..f9469f2a3 100644 --- a/grammar/testData/diagnostics/namedArguments/ambiguousNamedArgumentsWithGenerics1.antlrtree.txt +++ b/grammar/testData/diagnostics/namedArguments/ambiguousNamedArgumentsWithGenerics1.antlrtree.txt @@ -252,6 +252,4 @@ File: ambiguousNamedArgumentsWithGenerics1.kt - 56da74a48f5b83589ba89d236ec0bc09 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/namedArguments/ambiguousNamedArgumentsWithGenerics2.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/ambiguousNamedArgumentsWithGenerics2.antlrtree.txt index 242d0395e..5221010cf 100644 --- a/grammar/testData/diagnostics/namedArguments/ambiguousNamedArgumentsWithGenerics2.antlrtree.txt +++ b/grammar/testData/diagnostics/namedArguments/ambiguousNamedArgumentsWithGenerics2.antlrtree.txt @@ -248,6 +248,4 @@ File: ambiguousNamedArgumentsWithGenerics2.kt - f403d7840e062d6d6691768f0e040e68 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/namedArguments/ambiguousNamedArgumentsWithGenerics3.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/ambiguousNamedArgumentsWithGenerics3.antlrtree.txt index def2efc1c..49463bae3 100644 --- a/grammar/testData/diagnostics/namedArguments/ambiguousNamedArgumentsWithGenerics3.antlrtree.txt +++ b/grammar/testData/diagnostics/namedArguments/ambiguousNamedArgumentsWithGenerics3.antlrtree.txt @@ -284,6 +284,4 @@ File: ambiguousNamedArgumentsWithGenerics3.kt - 3075cc22e99471ee5f33606e7a80ff89 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/namedArguments/disallowForJavaConstructor.1.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/disallowForJavaConstructor.1.antlrtree.txt index 09f1441b1..478cdc38c 100644 --- a/grammar/testData/diagnostics/namedArguments/disallowForJavaConstructor.1.antlrtree.txt +++ b/grammar/testData/diagnostics/namedArguments/disallowForJavaConstructor.1.antlrtree.txt @@ -82,6 +82,4 @@ File: disallowForJavaConstructor.1.kt - 4bfb42524a7b97b7775ecc4c77a483b2 QUOTE_CLOSE(""") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/namedArguments/namedArgumentsAndDefaultValues.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/namedArgumentsAndDefaultValues.antlrtree.txt index 117895a87..88e30018a 100644 --- a/grammar/testData/diagnostics/namedArguments/namedArgumentsAndDefaultValues.antlrtree.txt +++ b/grammar/testData/diagnostics/namedArguments/namedArgumentsAndDefaultValues.antlrtree.txt @@ -1,4 +1,4 @@ -File: namedArgumentsAndDefaultValues.kt - 1f862716508cd59a887c7a8185e434a4 +File: namedArgumentsAndDefaultValues.kt - 999d018f63b4132847c23f57b3e4b4d8 packageHeader importList topLevelObject @@ -1190,5 +1190,5 @@ File: namedArgumentsAndDefaultValues.kt - 1f862716508cd59a887c7a8185e434a4 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/namedArguments/namedArgumentsInOverloads.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/namedArgumentsInOverloads.antlrtree.txt index c6f11c526..cc3edd17a 100644 --- a/grammar/testData/diagnostics/namedArguments/namedArgumentsInOverloads.antlrtree.txt +++ b/grammar/testData/diagnostics/namedArguments/namedArgumentsInOverloads.antlrtree.txt @@ -308,6 +308,4 @@ File: namedArgumentsInOverloads.kt - b4cc07b4c6a9bf6f7534814ac0aea883 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/namedArguments/namedArgumentsInOverrides.antlrtree.txt b/grammar/testData/diagnostics/namedArguments/namedArgumentsInOverrides.antlrtree.txt index 8cb0a4118..7ac2ce028 100644 --- a/grammar/testData/diagnostics/namedArguments/namedArgumentsInOverrides.antlrtree.txt +++ b/grammar/testData/diagnostics/namedArguments/namedArgumentsInOverrides.antlrtree.txt @@ -395,6 +395,4 @@ File: namedArgumentsInOverrides.kt - bdcee85c93812f6445117550c9f9ed3f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/AssertNotNull.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/AssertNotNull.antlrtree.txt index 41da96700..205190874 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/AssertNotNull.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/AssertNotNull.antlrtree.txt @@ -1,5 +1,4 @@ -File: AssertNotNull.kt - 1bb4a47aef389a5c205a6fbc9e19e068 - NL("\n") +File: AssertNotNull.kt - 57663cbe236d7acf3ec6d2b79d8bea85 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/InfixCallNullability.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/InfixCallNullability.antlrtree.txt index d8f0fc3c6..16540af13 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/InfixCallNullability.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/InfixCallNullability.antlrtree.txt @@ -1,4 +1,4 @@ -File: InfixCallNullability.kt - 71bf25b517b93ed8d150678e184ac94d +File: InfixCallNullability.kt - 55a4af7f878d587710ea5474d8b36f99 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/QualifiedExpressionNullability.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/QualifiedExpressionNullability.antlrtree.txt index 44fe4810c..d90f6308d 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/QualifiedExpressionNullability.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/QualifiedExpressionNullability.antlrtree.txt @@ -1,4 +1,4 @@ -File: QualifiedExpressionNullability.kt - 7262372b533c7a33dd9a484ddbb5943e +File: QualifiedExpressionNullability.kt - 3fe5a6cf6ad30ddf5eb667bad5119fcd (WITH_ERRORS) NL("\n") packageHeader importList @@ -61,6 +61,43 @@ File: QualifiedExpressionNullability.kt - 7262372b533c7a33dd9a484ddbb5943e Identifier("a") semis NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("f") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") RCURL("}") semis NL("\n") @@ -74,1237 +111,510 @@ File: QualifiedExpressionNullability.kt - 7262372b533c7a33dd9a484ddbb5943e functionValueParameters LPAREN("(") RPAREN(")") - functionBody - block - LCURL("{") - NL("\n") - statements - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("x") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Foo") - quest - QUEST_WS("? ") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - semis - NL("\n") - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("y") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Foo") - quest - QUEST_WS("? ") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - NL("\n") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("x") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("y") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - RPAREN(")") - semis - NL("\n") - NL("\n") - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("a") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Foo") - quest - QUEST_WS("? ") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - semis - NL("\n") - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("b") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Foo") - quest - QUEST_WS("? ") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - semis - NL("\n") - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("c") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Foo") - quest - QUEST_WS("? ") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - NL("\n") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("b") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("c") - RPAREN(")") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("a") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("b") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("c") - RPAREN(")") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("b") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("c") - RPAREN(")") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("a") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("b") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("c") - RPAREN(")") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("b") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("c") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - RPAREN(")") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("a") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("b") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("c") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - RPAREN(")") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("a") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("b") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("c") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - RPAREN(")") - RPAREN(")") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("a") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("b") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("c") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - RPAREN(")") - RPAREN(")") - semis - NL("\n") - NL("\n") - statement - declaration - propertyDeclaration - VAL("val") - variableDeclaration - simpleIdentifier - Identifier("z") - COLON(":") - type - nullableType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Foo") - quest - QUEST_WS("? ") - ASSIGNMENT("=") - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - NullLiteral("null") - semis - NL("\n") - statement - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("z") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - postfixUnarySuffix - navigationSuffix - memberAccessOperator - DOT(".") - simpleIdentifier - Identifier("foo") - postfixUnarySuffix - callSuffix - valueArguments - LPAREN("(") - valueArgument - expression - disjunction - conjunction - equality - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - simpleIdentifier - Identifier("z") - postfixUnarySuffix - postfixUnaryOperator - EXCL_NO_WS("!") - excl - EXCL_NO_WS("!") - RPAREN(")") - semis - NL("\n") - RCURL("}") + LCURL("{") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") semis NL("\n") + NL("\n") + Identifier("x") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("y") + RPAREN(")") + NL("\n") + Identifier("x") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("y") + RPAREN(")") + NL("\n") + Identifier("x") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("y") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + RPAREN(")") + NL("\n") + Identifier("x") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("y") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + NL("\n") + Identifier("a") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("b") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("c") + RPAREN(")") + RPAREN(")") + NL("\n") + Identifier("a") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("b") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("c") + RPAREN(")") + RPAREN(")") + NL("\n") + Identifier("a") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("b") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("c") + RPAREN(")") + RPAREN(")") + NL("\n") + Identifier("a") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("b") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("c") + RPAREN(")") + RPAREN(")") + NL("\n") + Identifier("a") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("b") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("c") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + RPAREN(")") + RPAREN(")") + NL("\n") + Identifier("a") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("b") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("c") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + RPAREN(")") + RPAREN(")") + NL("\n") + Identifier("a") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("b") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("c") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + RPAREN(")") + RPAREN(")") + NL("\n") + Identifier("a") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("b") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("c") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + RPAREN(")") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + Identifier("z") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + DOT(".") + Identifier("foo") + LPAREN("(") + Identifier("z") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("w") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + Identifier("w") + DOT(".") + Identifier("f") + ASSIGNMENT("=") + Identifier("z") + NL("\n") + LPAREN("(") + Identifier("w") + DOT(".") + Identifier("f") + RPAREN(")") + ASSIGNMENT("=") + Identifier("z") + NL("\n") + LPAREN("(") + Identifier("label") + AT_POST_WS("@ ") + Identifier("w") + DOT(".") + Identifier("f") + RPAREN(")") + ASSIGNMENT("=") + Identifier("z") + NL("\n") + Identifier("w") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + DOT(".") + Identifier("f") + ASSIGNMENT("=") + Identifier("z") + NL("\n") + Identifier("w") + DOT(".") + Identifier("f") + ASSIGNMENT("=") + Identifier("z") + NL("\n") + Identifier("w") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + DOT(".") + Identifier("f") + ASSIGNMENT("=") + Identifier("z") + NL("\n") + Identifier("w") + DOT(".") + Identifier("f") + DOT(".") + Identifier("f") + ASSIGNMENT("=") + Identifier("z") + NL("\n") + Identifier("w") + DOT(".") + Identifier("f") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + DOT(".") + Identifier("f") + ASSIGNMENT("=") + Identifier("z") + NL("\n") + RCURL("}") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/QualifiedExpressionNullability.diff b/grammar/testData/diagnostics/nullabilityAndSmartCasts/QualifiedExpressionNullability.diff new file mode 100644 index 000000000..716e07b5b --- /dev/null +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/QualifiedExpressionNullability.diff @@ -0,0 +1 @@ +Needs labels on arbitrary expressions to parse correctly \ No newline at end of file diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/ReceiverNullability.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/ReceiverNullability.antlrtree.txt index fced5ac8d..7286149ca 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/ReceiverNullability.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/ReceiverNullability.antlrtree.txt @@ -1,4 +1,5 @@ -File: ReceiverNullability.kt - 20d6b28bf89ca958de75ebe6d6db147a +File: ReceiverNullability.kt - a66108e904581aa63824b7885cc29a0e + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/SenselessNullInWhen.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/SenselessNullInWhen.antlrtree.txt index ac1ffc8f2..e060cdecf 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/SenselessNullInWhen.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/SenselessNullInWhen.antlrtree.txt @@ -1,4 +1,5 @@ -File: SenselessNullInWhen.kt - c83123519495226ba68cd990771765d2 +File: SenselessNullInWhen.kt - 71615e3c08ae69828c177844d3990850 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/augmentedAssignment.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/augmentedAssignment.antlrtree.txt new file mode 100644 index 000000000..a738c1c52 --- /dev/null +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/augmentedAssignment.antlrtree.txt @@ -0,0 +1,298 @@ +File: augmentedAssignment.kt - 9a9ff728c778f3345bd016092936b398 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("plusAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("plus") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/dataFlowInfoAfterExclExcl.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/dataFlowInfoAfterExclExcl.antlrtree.txt index a91942239..7d44e694a 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/dataFlowInfoAfterExclExcl.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/dataFlowInfoAfterExclExcl.antlrtree.txt @@ -202,6 +202,4 @@ File: dataFlowInfoAfterExclExcl.kt - b09b742daddc67144c8107da6cbdff9b primaryExpression simpleIdentifier Identifier("s") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/equalityUnderNotNullCheck.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/equalityUnderNotNullCheck.antlrtree.txt index 4413d9a74..a852346f3 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/equalityUnderNotNullCheck.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/equalityUnderNotNullCheck.antlrtree.txt @@ -125,6 +125,4 @@ File: equalityUnderNotNullCheck.kt - 18efc5dac231cecf45341198fa339d73 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/funcLiteralArgsInsideAmbiguity.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/funcLiteralArgsInsideAmbiguity.antlrtree.txt index 35d57d0e6..5a5a5e3aa 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/funcLiteralArgsInsideAmbiguity.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/funcLiteralArgsInsideAmbiguity.antlrtree.txt @@ -263,6 +263,4 @@ File: funcLiteralArgsInsideAmbiguity.kt - 8b4d89ebc217a3aae0bb7cbae591a5b9 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/funcLiteralArgsInsideUnresolvedFunction.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/funcLiteralArgsInsideUnresolvedFunction.antlrtree.txt index 1f2fb86c9..08908f2fd 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/funcLiteralArgsInsideUnresolvedFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/funcLiteralArgsInsideUnresolvedFunction.antlrtree.txt @@ -1,4 +1,4 @@ -File: funcLiteralArgsInsideUnresolvedFunction.kt - b78ecc8fed8680c547ee57be1f8758e8 +File: funcLiteralArgsInsideUnresolvedFunction.kt - d34898e3d27de58652d8b5ee1ca41eb6 packageHeader PACKAGE("package") identifier @@ -190,5 +190,5 @@ File: funcLiteralArgsInsideUnresolvedFunction.kt - b78ecc8fed8680c547ee57be1f875 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt1680.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt1680.antlrtree.txt index 0c79a1d24..0f2b44626 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt1680.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt1680.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt1680.kt - a62d99a88ab1aa29d273a9ef66e71a32 +File: kt1680.kt - 83017aafc49c940d2cb69d70c7b314e5 + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -463,6 +464,4 @@ File: kt1680.kt - a62d99a88ab1aa29d273a9ef66e71a32 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt1778.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt1778.antlrtree.txt index 37af44549..b446aa5f3 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt1778.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt1778.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt1778.kt - 424bf7b75de31195be1ffb67c1cd1780 +File: kt1778.kt - 42ceb4acc84eb83fbfd2528da064b245 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2125.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2125.antlrtree.txt index d3eaa67dc..f97b03119 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2125.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2125.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2125.kt - 56e2348b0198b0551305d74f63d50cdf +File: kt2125.kt - 7809db2d52541bf2ecf41988a2508d9c + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2146.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2146.antlrtree.txt index a341b8432..587f4360e 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2146.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2146.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt2146.kt - 5935495f5a51a1b0feab084d080e4c62 - NL("\n") +File: kt2146.kt - 3aa6ef5521d3abae6ecba272615d7445 NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2164.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2164.antlrtree.txt index beca46629..dc8cbc90a 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2164.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2164.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt2164.kt - e18a470a477376622c064b5305255ebb - NL("\n") +File: kt2164.kt - 0694b249ec3ac57ab22cca4810e4d0a0 NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2195.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2195.antlrtree.txt index ba0eff9d1..89b906dcd 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2195.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2195.antlrtree.txt @@ -166,6 +166,4 @@ File: kt2195.kt - c2feac5d207ddbdb741776a8413ea66a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2216.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2216.antlrtree.txt index 07bc4be52..6f20406c5 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2216.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2216.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt2216.kt - 533868fb37ff6800208204fe3a9de5a6 - NL("\n") +File: kt2216.kt - 46cdaa165700163eeca3b1139cc6203f NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2223.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2223.antlrtree.txt index cb7a9c9bf..eda089e1c 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2223.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt2223.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2223.kt - f0d77948868fcbd79d56e32079de1abd +File: kt2223.kt - b9231bee10da2c328506dd4162ae2698 + NL("\n") NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt30734.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt30734.antlrtree.txt index dbb7a1539..ffa2ba4b3 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt30734.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/kt30734.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt30734.kt - 3bcff65b467eea22df8a9a59e751650b - NL("\n") +File: kt30734.kt - 4d017751dc5e3ac6230614857c13a9e9 NL("\n") NL("\n") NL("\n") @@ -273,6 +272,4 @@ File: kt30734.kt - 3bcff65b467eea22df8a9a59e751650b RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/noUnnecessaryNotNullAssertionOnErrorType.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/noUnnecessaryNotNullAssertionOnErrorType.antlrtree.txt index 3785bd521..8eafe1024 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/noUnnecessaryNotNullAssertionOnErrorType.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/noUnnecessaryNotNullAssertionOnErrorType.antlrtree.txt @@ -87,6 +87,4 @@ File: noUnnecessaryNotNullAssertionOnErrorType.kt - de3f84d3c50701801ee5323b40d7 primaryExpression simpleIdentifier Identifier("aa") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/notnullTypesFromJavaWithSmartcast.test.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/notnullTypesFromJavaWithSmartcast.test.antlrtree.txt index 59bb67401..61a3d9b92 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/notnullTypesFromJavaWithSmartcast.test.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/notnullTypesFromJavaWithSmartcast.test.antlrtree.txt @@ -200,6 +200,4 @@ File: notnullTypesFromJavaWithSmartcast.test.kt - 20f6d1b1aca85a9a27a35de1b09935 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/senslessComparisonWithNullOnTypeParameters.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/senslessComparisonWithNullOnTypeParameters.antlrtree.txt index 6e0d5d2b5..9eb1f4490 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/senslessComparisonWithNullOnTypeParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/senslessComparisonWithNullOnTypeParameters.antlrtree.txt @@ -1,4 +1,5 @@ -File: senslessComparisonWithNullOnTypeParameters.kt - 888679761066df0c85cb0ad7f7f78fc6 +File: senslessComparisonWithNullOnTypeParameters.kt - cca320b07fe38f5a6263d5a80d3cf3ca + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/smartCastReceiverWithGenerics.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/smartCastReceiverWithGenerics.antlrtree.txt index 3e09df743..7d0da49aa 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/smartCastReceiverWithGenerics.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/smartCastReceiverWithGenerics.antlrtree.txt @@ -200,6 +200,4 @@ File: smartCastReceiverWithGenerics.kt - 32d909de2e0af2a0fa5d5ce183d540bd primaryExpression simpleIdentifier Identifier("t") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/unnecessaryNotNullAssertion.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/unnecessaryNotNullAssertion.antlrtree.txt index 2c097f1ab..0b971269a 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/unnecessaryNotNullAssertion.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/unnecessaryNotNullAssertion.antlrtree.txt @@ -1,5 +1,4 @@ -File: unnecessaryNotNullAssertion.kt - 769d7c74d15b33cf24bc5035b9d9c907 - NL("\n") +File: unnecessaryNotNullAssertion.kt - 2d7fbfd51a5ee9e37761fa89d8108094 NL("\n") NL("\n") packageHeader @@ -1042,6 +1041,4 @@ File: unnecessaryNotNullAssertion.kt - 769d7c74d15b33cf24bc5035b9d9c907 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/unstableSmartcastWhenOpenGetterWithOverloading.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/unstableSmartcastWhenOpenGetterWithOverloading.antlrtree.txt index 48432900b..ce79160d4 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/unstableSmartcastWhenOpenGetterWithOverloading.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/unstableSmartcastWhenOpenGetterWithOverloading.antlrtree.txt @@ -1,4 +1,5 @@ -File: unstableSmartcastWhenOpenGetterWithOverloading.kt - f15d2d82bdce790da3d0c172f888213c +File: unstableSmartcastWhenOpenGetterWithOverloading.kt - 779793d1877126f60211530e94b939fe + NL("\n") NL("\n") NL("\n") packageHeader @@ -247,6 +248,4 @@ File: unstableSmartcastWhenOpenGetterWithOverloading.kt - f15d2d82bdce790da3d0c1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/nullabilityAndSmartCasts/unstableSmartcastWithOverloadedExtensions.antlrtree.txt b/grammar/testData/diagnostics/nullabilityAndSmartCasts/unstableSmartcastWithOverloadedExtensions.antlrtree.txt index 4184d08ee..5f5c6e598 100644 --- a/grammar/testData/diagnostics/nullabilityAndSmartCasts/unstableSmartcastWithOverloadedExtensions.antlrtree.txt +++ b/grammar/testData/diagnostics/nullabilityAndSmartCasts/unstableSmartcastWithOverloadedExtensions.antlrtree.txt @@ -1,4 +1,5 @@ -File: unstableSmartcastWithOverloadedExtensions.kt - f3b418350dd823d4b4c8ebb52fd682aa +File: unstableSmartcastWithOverloadedExtensions.kt - dd4db00782d8c321dfac262350a1ead9 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/nullableTypes/baseWithNullableUpperBound.antlrtree.txt b/grammar/testData/diagnostics/nullableTypes/baseWithNullableUpperBound.antlrtree.txt index 2c77083a1..707ab4fd3 100644 --- a/grammar/testData/diagnostics/nullableTypes/baseWithNullableUpperBound.antlrtree.txt +++ b/grammar/testData/diagnostics/nullableTypes/baseWithNullableUpperBound.antlrtree.txt @@ -1,4 +1,6 @@ -File: baseWithNullableUpperBound.kt - df580750641fa0133763d9208faf18bf +File: baseWithNullableUpperBound.kt - 922c16c4a4414029fc62ea8dc80d62a0 + NL("\n") + NL("\n") packageHeader importList topLevelObject @@ -212,5 +214,5 @@ File: baseWithNullableUpperBound.kt - df580750641fa0133763d9208faf18bf statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/nullableTypes/definitelyNotNullWithNullableBound.antlrtree.txt b/grammar/testData/diagnostics/nullableTypes/definitelyNotNullWithNullableBound.antlrtree.txt index e05183232..f80b3a74b 100644 --- a/grammar/testData/diagnostics/nullableTypes/definitelyNotNullWithNullableBound.antlrtree.txt +++ b/grammar/testData/diagnostics/nullableTypes/definitelyNotNullWithNullableBound.antlrtree.txt @@ -1,4 +1,5 @@ -File: definitelyNotNullWithNullableBound.kt - feb771dfb16b90f0f06144c9b0d4139e +File: definitelyNotNullWithNullableBound.kt - b10d01dc663043393c6e41a544661307 + NL("\n") NL("\n") NL("\n") NL("\n") @@ -428,5 +429,5 @@ File: definitelyNotNullWithNullableBound.kt - feb771dfb16b90f0f06144c9b0d4139e NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/nullableTypes/elvisOnUnit.antlrtree.txt b/grammar/testData/diagnostics/nullableTypes/elvisOnUnit.antlrtree.txt index 6223f25a9..581bcb28d 100644 --- a/grammar/testData/diagnostics/nullableTypes/elvisOnUnit.antlrtree.txt +++ b/grammar/testData/diagnostics/nullableTypes/elvisOnUnit.antlrtree.txt @@ -132,6 +132,4 @@ File: elvisOnUnit.kt - e083f7554f553be891036825b23b67dc semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/nullableTypes/nullAssertOnTypeWithNullableUpperBound.antlrtree.txt b/grammar/testData/diagnostics/nullableTypes/nullAssertOnTypeWithNullableUpperBound.antlrtree.txt index 829157a08..ca814be10 100644 --- a/grammar/testData/diagnostics/nullableTypes/nullAssertOnTypeWithNullableUpperBound.antlrtree.txt +++ b/grammar/testData/diagnostics/nullableTypes/nullAssertOnTypeWithNullableUpperBound.antlrtree.txt @@ -1,5 +1,4 @@ -File: nullAssertOnTypeWithNullableUpperBound.kt - 4654be2e6a60b266bd40201bad2bfcac - NL("\n") +File: nullAssertOnTypeWithNullableUpperBound.kt - 683e02e932e2bf8479932021f3d4d7b3 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/nullableTypes/nullableArgumentForIn.antlrtree.txt b/grammar/testData/diagnostics/nullableTypes/nullableArgumentForIn.antlrtree.txt index 2a935b989..bdb633ad3 100644 --- a/grammar/testData/diagnostics/nullableTypes/nullableArgumentForIn.antlrtree.txt +++ b/grammar/testData/diagnostics/nullableTypes/nullableArgumentForIn.antlrtree.txt @@ -73,6 +73,4 @@ File: nullableArgumentForIn.kt - e39b1439d5a4fa50c29cf8a9c8d515fa semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/nullableTypes/nullableArgumentToNonNullParameterSimple.antlrtree.txt b/grammar/testData/diagnostics/nullableTypes/nullableArgumentToNonNullParameterSimple.antlrtree.txt index 59ee47543..bc965eabc 100644 --- a/grammar/testData/diagnostics/nullableTypes/nullableArgumentToNonNullParameterSimple.antlrtree.txt +++ b/grammar/testData/diagnostics/nullableTypes/nullableArgumentToNonNullParameterSimple.antlrtree.txt @@ -1,5 +1,4 @@ -File: nullableArgumentToNonNullParameterSimple.kt - 2f757e31b379f9b34addce4418f354d7 - NL("\n") +File: nullableArgumentToNonNullParameterSimple.kt - 17c37f9029dc6446e20875119befd3e8 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/nullableTypes/redundantNullable.antlrtree.txt b/grammar/testData/diagnostics/nullableTypes/redundantNullable.antlrtree.txt index af1ea5ef7..39fad01b8 100644 --- a/grammar/testData/diagnostics/nullableTypes/redundantNullable.antlrtree.txt +++ b/grammar/testData/diagnostics/nullableTypes/redundantNullable.antlrtree.txt @@ -1,4 +1,5 @@ -File: redundantNullable.kt - d5253e4248371e96ed249f7cd9b0e487 +File: redundantNullable.kt - 210cbeb20adb3d180ebeb38a6eae4473 + NL("\n") packageHeader importList topLevelObject @@ -121,5 +122,5 @@ File: redundantNullable.kt - d5253e4248371e96ed249f7cd9b0e487 statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/nullableTypes/redundantNullableInSupertype.antlrtree.txt b/grammar/testData/diagnostics/nullableTypes/redundantNullableInSupertype.antlrtree.txt index 46add62d3..a3b061815 100644 --- a/grammar/testData/diagnostics/nullableTypes/redundantNullableInSupertype.antlrtree.txt +++ b/grammar/testData/diagnostics/nullableTypes/redundantNullableInSupertype.antlrtree.txt @@ -1,4 +1,5 @@ -File: redundantNullableInSupertype.kt - 39fd98aecca3fc2e242fbd58bcbb7df5 (WITH_ERRORS) +File: redundantNullableInSupertype.kt - 9ace418e7e62441b1c0549a1c11f3bcd (WITH_ERRORS) + NL("\n") packageHeader importList topLevelObject @@ -126,6 +127,4 @@ File: redundantNullableInSupertype.kt - 39fd98aecca3fc2e242fbd58bcbb7df5 (WITH_E NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/nullableTypes/safeAccessOnUnit.antlrtree.txt b/grammar/testData/diagnostics/nullableTypes/safeAccessOnUnit.antlrtree.txt index 932f4a6ec..a60c5a371 100644 --- a/grammar/testData/diagnostics/nullableTypes/safeAccessOnUnit.antlrtree.txt +++ b/grammar/testData/diagnostics/nullableTypes/safeAccessOnUnit.antlrtree.txt @@ -158,6 +158,4 @@ File: safeAccessOnUnit.kt - fe7421b48333e14d96777d29732cfcda semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/nullableTypes/safeCallOnNotNullableType.antlrtree.txt b/grammar/testData/diagnostics/nullableTypes/safeCallOnNotNullableType.antlrtree.txt new file mode 100644 index 000000000..100a365d2 --- /dev/null +++ b/grammar/testData/diagnostics/nullableTypes/safeCallOnNotNullableType.antlrtree.txt @@ -0,0 +1,512 @@ +File: safeCallOnNotNullableType.kt - 1676ae357a70382323ed62dd88dbc9aa + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + NL("\n") + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("length") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + NL("\n") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + NL("\n") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + NL("\n") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + NL("\n") + simpleIdentifier + Identifier("length") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/nullableTypes/safeCallOnTypeWithNullableUpperBound.antlrtree.txt b/grammar/testData/diagnostics/nullableTypes/safeCallOnTypeWithNullableUpperBound.antlrtree.txt index 67a3ccd69..f4d7752d6 100644 --- a/grammar/testData/diagnostics/nullableTypes/safeCallOnTypeWithNullableUpperBound.antlrtree.txt +++ b/grammar/testData/diagnostics/nullableTypes/safeCallOnTypeWithNullableUpperBound.antlrtree.txt @@ -1,5 +1,4 @@ -File: safeCallOnTypeWithNullableUpperBound.kt - 770cf8bdc2bb6c8a7977c8ec433b396a - NL("\n") +File: safeCallOnTypeWithNullableUpperBound.kt - b70475a7c3204d71fdb22bb09659da9a packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/nullableTypes/uselessElvis.antlrtree.txt b/grammar/testData/diagnostics/nullableTypes/uselessElvis.antlrtree.txt index 0281531d9..96929b7bf 100644 --- a/grammar/testData/diagnostics/nullableTypes/uselessElvis.antlrtree.txt +++ b/grammar/testData/diagnostics/nullableTypes/uselessElvis.antlrtree.txt @@ -1,4 +1,5 @@ -File: uselessElvis.kt - 1aba54239a2e6e848406bf5a7d83b863 +File: uselessElvis.kt - 7748833ba384689e734bc043f4dadb23 + NL("\n") NL("\n") NL("\n") packageHeader @@ -1716,6 +1717,4 @@ File: uselessElvis.kt - 1aba54239a2e6e848406bf5a7d83b863 primaryExpression simpleIdentifier Identifier("unresolved") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/numbers/characterIsNotANumber.antlrtree.txt b/grammar/testData/diagnostics/numbers/characterIsNotANumber.antlrtree.txt index 9ab15c641..011d0cce3 100644 --- a/grammar/testData/diagnostics/numbers/characterIsNotANumber.antlrtree.txt +++ b/grammar/testData/diagnostics/numbers/characterIsNotANumber.antlrtree.txt @@ -1,5 +1,4 @@ -File: characterIsNotANumber.kt - 13ec7a773f81db0d50f4b2a8cc16f3aa - NL("\n") +File: characterIsNotANumber.kt - 1632bfcd4c07e73c46dffc21759697f9 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/numbers/doublesInSimpleConstraints.antlrtree.txt b/grammar/testData/diagnostics/numbers/doublesInSimpleConstraints.antlrtree.txt index cd9bca199..8c6d0c80c 100644 --- a/grammar/testData/diagnostics/numbers/doublesInSimpleConstraints.antlrtree.txt +++ b/grammar/testData/diagnostics/numbers/doublesInSimpleConstraints.antlrtree.txt @@ -1,5 +1,4 @@ -File: doublesInSimpleConstraints.kt - b824c21a276fb52851b0cf7f22029923 - NL("\n") +File: doublesInSimpleConstraints.kt - 714ed4ed45df4f982be9fcec1ea81363 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/numbers/intValuesOutOfRange.antlrtree.txt b/grammar/testData/diagnostics/numbers/intValuesOutOfRange.antlrtree.txt index 350213067..0561cc243 100644 --- a/grammar/testData/diagnostics/numbers/intValuesOutOfRange.antlrtree.txt +++ b/grammar/testData/diagnostics/numbers/intValuesOutOfRange.antlrtree.txt @@ -1,5 +1,4 @@ -File: intValuesOutOfRange.kt - ee75f287ac4001c150bdb7716620abbb - NL("\n") +File: intValuesOutOfRange.kt - ed053290d21691cb5a738dd8d8a7bfad packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/numbers/kt41679.antlrtree.txt b/grammar/testData/diagnostics/numbers/kt41679.antlrtree.txt new file mode 100644 index 000000000..9e5bf646d --- /dev/null +++ b/grammar/testData/diagnostics/numbers/kt41679.antlrtree.txt @@ -0,0 +1,353 @@ +File: kt41679.kt - 3edf52992d3db25928077eb8447b603d + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mutableListOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("MH") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("19") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + assignableSuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("value4") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mutableListOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("MH") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + assignableSuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("value4") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/numbers/kt47447.antlrtree.txt b/grammar/testData/diagnostics/numbers/kt47447.antlrtree.txt new file mode 100644 index 000000000..9861b9959 --- /dev/null +++ b/grammar/testData/diagnostics/numbers/kt47447.antlrtree.txt @@ -0,0 +1,91 @@ +File: kt47447.kt - d6064a860dac75d1d08dd70cae657cf8 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("java") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("util") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Objects") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("requireNonNull") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/numbers/kt47729.antlrtree.txt b/grammar/testData/diagnostics/numbers/kt47729.antlrtree.txt new file mode 100644 index 000000000..09e570a8c --- /dev/null +++ b/grammar/testData/diagnostics/numbers/kt47729.antlrtree.txt @@ -0,0 +1,698 @@ +File: kt47729.kt - 84f42d0d9005eb5561e3291ba6c0ec9e + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeLong") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeInt") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeAny") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeLongX") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeIntX") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeAnyX") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + RANGLE(">") + simpleIdentifier + Identifier("takeGeneric") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + RANGLE(">") + simpleIdentifier + Identifier("takeGenericX") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeAny") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLongX") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeIntX") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeAnyX") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeGeneric") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeGenericX") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/numbers/kt47729_parenthesis.antlrtree.txt b/grammar/testData/diagnostics/numbers/kt47729_parenthesis.antlrtree.txt new file mode 100644 index 000000000..d2fdf7230 --- /dev/null +++ b/grammar/testData/diagnostics/numbers/kt47729_parenthesis.antlrtree.txt @@ -0,0 +1,467 @@ +File: kt47729_parenthesis.kt - a3b98ffce9f9edc797f5a3ee52223d0b + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeLong") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("longProperty") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INFIX("infix") + FUN("fun") + simpleIdentifier + Identifier("infixOperator") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("longProperty") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("longProperty") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + simpleIdentifier + Identifier("infixOperator") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + simpleIdentifier + Identifier("infixOperator") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/numbers/kt48361_disabled.antlrtree.txt b/grammar/testData/diagnostics/numbers/kt48361_disabled.antlrtree.txt new file mode 100644 index 000000000..68177206b --- /dev/null +++ b/grammar/testData/diagnostics/numbers/kt48361_disabled.antlrtree.txt @@ -0,0 +1,116 @@ +File: kt48361_disabled.kt - 5a90994e517b39c33f62a886fc32901e + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("ttlMillis") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("60") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1000") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("cacheSize") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4096") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/numbers/kt48361_enabled.antlrtree.txt b/grammar/testData/diagnostics/numbers/kt48361_enabled.antlrtree.txt new file mode 100644 index 000000000..9ee6be8cf --- /dev/null +++ b/grammar/testData/diagnostics/numbers/kt48361_enabled.antlrtree.txt @@ -0,0 +1,116 @@ +File: kt48361_enabled.kt - 7f82c03bf1e738a01f3719895f2ff90e + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("ttlMillis") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("60") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1000") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("cacheSize") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4096") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/numbers/literalReceiverWithIntegerValueType.antlrtree.txt b/grammar/testData/diagnostics/numbers/literalReceiverWithIntegerValueType.antlrtree.txt index e45b09cca..cf021053f 100644 --- a/grammar/testData/diagnostics/numbers/literalReceiverWithIntegerValueType.antlrtree.txt +++ b/grammar/testData/diagnostics/numbers/literalReceiverWithIntegerValueType.antlrtree.txt @@ -1,4 +1,5 @@ -File: literalReceiverWithIntegerValueType.kt - bfc18b6d0c7a94d8f05b3b005f29baf3 +File: literalReceiverWithIntegerValueType.kt - 2053379b71af214d2d7190cabc6777ee + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/numbers/newLiteralOperatorsResolution_newResolve.antlrtree.txt b/grammar/testData/diagnostics/numbers/newLiteralOperatorsResolution_newResolve.antlrtree.txt new file mode 100644 index 000000000..84729b1f0 --- /dev/null +++ b/grammar/testData/diagnostics/numbers/newLiteralOperatorsResolution_newResolve.antlrtree.txt @@ -0,0 +1,4480 @@ +File: newLiteralOperatorsResolution_newResolve.kt - 8eb2abcbf91ead9e86c5801618f7c22e + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeByte") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeInt") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeLong") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testByteBinaryOperators") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("plus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("minus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("times") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("div") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("rem") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("shl") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("shr") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("ushr") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("and") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("or") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("xor") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testByteUnaryOperators") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + ADD("+") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryPlus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryMinus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inc") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("dec") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testLongBinaryOperators") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("plus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("minus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("times") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("div") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("rem") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("shl") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("shr") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("ushr") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("and") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("or") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("xor") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("100000000000") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testLongUnaryOperators") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + ADD("+") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryPlus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryMinus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inc") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("dec") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testIntBinaryOperators") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("plus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("minus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("times") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("div") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("rem") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("shl") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("shr") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("ushr") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("and") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("or") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("xor") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testIntUnaryOperators") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + ADD("+") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryPlus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryMinus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inc") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("dec") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testNoOperators") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/numbers/newLiteralOperatorsResolution_warning.antlrtree.txt b/grammar/testData/diagnostics/numbers/newLiteralOperatorsResolution_warning.antlrtree.txt new file mode 100644 index 000000000..aabca294f --- /dev/null +++ b/grammar/testData/diagnostics/numbers/newLiteralOperatorsResolution_warning.antlrtree.txt @@ -0,0 +1,4480 @@ +File: newLiteralOperatorsResolution_warning.kt - f84a0edde777aa70c8e276de19d713d8 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeByte") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Byte") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeInt") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeLong") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testByteBinaryOperators") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("plus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("minus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("times") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("div") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("rem") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("shl") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("shr") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("ushr") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("and") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("or") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("xor") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testByteUnaryOperators") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + ADD("+") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryPlus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryMinus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inc") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("dec") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testLongBinaryOperators") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("plus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("minus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("times") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("div") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("rem") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("shl") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("shr") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("ushr") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("and") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("or") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("xor") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("100000000000") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testLongUnaryOperators") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + ADD("+") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryPlus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryMinus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inc") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("dec") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testIntBinaryOperators") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("plus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("minus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("times") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("div") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("rem") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("shl") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("shr") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("ushr") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("and") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("or") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("xor") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testIntUnaryOperators") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + ADD("+") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + SUB("-") + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryPlus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryMinus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("inc") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("dec") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testNoOperators") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeByte") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeLong") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/numbers/numberAsUnionAndIntersection.antlrtree.txt b/grammar/testData/diagnostics/numbers/numberAsUnionAndIntersection.antlrtree.txt index 740ca6655..631138bb0 100644 --- a/grammar/testData/diagnostics/numbers/numberAsUnionAndIntersection.antlrtree.txt +++ b/grammar/testData/diagnostics/numbers/numberAsUnionAndIntersection.antlrtree.txt @@ -319,6 +319,4 @@ File: numberAsUnionAndIntersection.kt - 4ee9993eabf6bc451b23da05de02f9c5 primaryExpression literalConstant IntegerLiteral("1") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/numbers/numbersInSimpleConstraints.antlrtree.txt b/grammar/testData/diagnostics/numbers/numbersInSimpleConstraints.antlrtree.txt index 3ddc2d4c8..e626d982e 100644 --- a/grammar/testData/diagnostics/numbers/numbersInSimpleConstraints.antlrtree.txt +++ b/grammar/testData/diagnostics/numbers/numbersInSimpleConstraints.antlrtree.txt @@ -1,5 +1,4 @@ -File: numbersInSimpleConstraints.kt - ba83a5a91446171da6119897ab8c0276 - NL("\n") +File: numbersInSimpleConstraints.kt - 6b1e8036e4aa4358223587d10f3c7620 NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/objects/Objects.antlrtree.txt b/grammar/testData/diagnostics/objects/Objects.antlrtree.txt index 8f3b59eed..d527311d1 100644 --- a/grammar/testData/diagnostics/objects/Objects.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/Objects.antlrtree.txt @@ -1,4 +1,5 @@ -File: Objects.kt - 2f6a1aef2b4ef705fab5f1f16ba64d0e +File: Objects.kt - 0d08c8f90e010c1aa2acbea0052775ba + NL("\n") packageHeader PACKAGE("package") identifier @@ -481,6 +482,5 @@ File: Objects.kt - 2f6a1aef2b4ef705fab5f1f16ba64d0e valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/objects/ObjectsInheritance.antlrtree.txt b/grammar/testData/diagnostics/objects/ObjectsInheritance.antlrtree.txt index 3d2f7124b..05e77ea55 100644 --- a/grammar/testData/diagnostics/objects/ObjectsInheritance.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/ObjectsInheritance.antlrtree.txt @@ -1,4 +1,5 @@ -File: ObjectsInheritance.kt - 595ca17b6699e09695ae362ec699fcec +File: ObjectsInheritance.kt - 551e814236a5ffb49f3e92d095f8fd10 + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/objects/ObjectsLocal.antlrtree.txt b/grammar/testData/diagnostics/objects/ObjectsLocal.antlrtree.txt index 934a83e1e..1d16de059 100644 --- a/grammar/testData/diagnostics/objects/ObjectsLocal.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/ObjectsLocal.antlrtree.txt @@ -335,6 +335,4 @@ File: ObjectsLocal.kt - 0ad23f07566b1cd98043c937b798a8df valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/ObjectsNested.antlrtree.txt b/grammar/testData/diagnostics/objects/ObjectsNested.antlrtree.txt index 87fdc6c56..5731c5e45 100644 --- a/grammar/testData/diagnostics/objects/ObjectsNested.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/ObjectsNested.antlrtree.txt @@ -540,6 +540,4 @@ File: ObjectsNested.kt - 1a560c2682d1a656667d6417c6aa36cd DOT(".") simpleIdentifier Identifier("B") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/callableReferenceComplexCasesWithImportsOld.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/callableReferenceComplexCasesWithImportsOld.antlrtree.txt index 558c3390d..201b4e10c 100644 --- a/grammar/testData/diagnostics/objects/kt21515/callableReferenceComplexCasesWithImportsOld.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/callableReferenceComplexCasesWithImportsOld.antlrtree.txt @@ -1,4 +1,5 @@ -File: callableReferenceComplexCasesWithImportsOld.kt - be8fcd3b7486e4921cd248ffb2ebe36d +File: callableReferenceComplexCasesWithImportsOld.kt - a3ad51bd2a64b8ce38a7dab363df2b97 + NL("\n") NL("\n") NL("\n") packageHeader @@ -675,6 +676,4 @@ File: callableReferenceComplexCasesWithImportsOld.kt - be8fcd3b7486e4921cd248ffb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/callableReferencesComplexCasesWithQualificationOld.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/callableReferencesComplexCasesWithQualificationOld.antlrtree.txt index b202bf5c9..74461dc09 100644 --- a/grammar/testData/diagnostics/objects/kt21515/callableReferencesComplexCasesWithQualificationOld.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/callableReferencesComplexCasesWithQualificationOld.antlrtree.txt @@ -1,4 +1,5 @@ -File: callableReferencesComplexCasesWithQualificationOld.kt - c22f0c8e32c6edc4e8967ab718cecf1f +File: callableReferencesComplexCasesWithQualificationOld.kt - 8b44fd07ff54a90479d238b8fd62a7cd + NL("\n") NL("\n") NL("\n") NL("\n") @@ -682,6 +683,4 @@ File: callableReferencesComplexCasesWithQualificationOld.kt - c22f0c8e32c6edc4e8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/callableReferencesWithQualificationNew.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/callableReferencesWithQualificationNew.antlrtree.txt index 06c85749a..c7d597fdf 100644 --- a/grammar/testData/diagnostics/objects/kt21515/callableReferencesWithQualificationNew.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/callableReferencesWithQualificationNew.antlrtree.txt @@ -1992,6 +1992,4 @@ File: callableReferencesWithQualificationNew.kt - e9384dfc12ca0aab141b9e74500aff Identifier("foo") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/callableReferencesWithQualificationOld.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/callableReferencesWithQualificationOld.antlrtree.txt index 82aa82cf6..7e18c54f0 100644 --- a/grammar/testData/diagnostics/objects/kt21515/callableReferencesWithQualificationOld.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/callableReferencesWithQualificationOld.antlrtree.txt @@ -1980,6 +1980,4 @@ File: callableReferencesWithQualificationOld.kt - 949bcd340638cba597112876c1628d Identifier("foo") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/classifierFromCompanionObjectNew.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/classifierFromCompanionObjectNew.antlrtree.txt index 349f7bbed..7821a6484 100644 --- a/grammar/testData/diagnostics/objects/kt21515/classifierFromCompanionObjectNew.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/classifierFromCompanionObjectNew.antlrtree.txt @@ -1,4 +1,5 @@ -File: classifierFromCompanionObjectNew.kt - c59b18f35bd9bceff0a50c205a3fa1af +File: classifierFromCompanionObjectNew.kt - 8cf0a493e6150c8a12db930c49698e05 + NL("\n") NL("\n") NL("\n") NL("\n") @@ -1070,6 +1071,4 @@ File: classifierFromCompanionObjectNew.kt - c59b18f35bd9bceff0a50c205a3fa1af NullLiteral("null") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/classifierFromCompanionObjectOld.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/classifierFromCompanionObjectOld.antlrtree.txt index bf96b1ddf..da8a622e2 100644 --- a/grammar/testData/diagnostics/objects/kt21515/classifierFromCompanionObjectOld.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/classifierFromCompanionObjectOld.antlrtree.txt @@ -1069,6 +1069,4 @@ File: classifierFromCompanionObjectOld.kt - 18bf82728bf4653b2a2bc5dff75d11f1 NullLiteral("null") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/classifierFromCompanionObjectWithQualificationNew.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/classifierFromCompanionObjectWithQualificationNew.antlrtree.txt index 2f9d8193f..5210d4934 100644 --- a/grammar/testData/diagnostics/objects/kt21515/classifierFromCompanionObjectWithQualificationNew.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/classifierFromCompanionObjectWithQualificationNew.antlrtree.txt @@ -1203,6 +1203,4 @@ File: classifierFromCompanionObjectWithQualificationNew.kt - 03891d9f4fa6e0ee779 NullLiteral("null") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/classifierFromCompanionObjectWithQualificationOld.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/classifierFromCompanionObjectWithQualificationOld.antlrtree.txt index 8747c220e..230d64a2b 100644 --- a/grammar/testData/diagnostics/objects/kt21515/classifierFromCompanionObjectWithQualificationOld.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/classifierFromCompanionObjectWithQualificationOld.antlrtree.txt @@ -1202,6 +1202,4 @@ File: classifierFromCompanionObjectWithQualificationOld.kt - 242a4dc6764fcb69c19 NullLiteral("null") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/classifierIsVisibleByTwoPaths.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/classifierIsVisibleByTwoPaths.antlrtree.txt index efc051d66..e24d9f06e 100644 --- a/grammar/testData/diagnostics/objects/kt21515/classifierIsVisibleByTwoPaths.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/classifierIsVisibleByTwoPaths.antlrtree.txt @@ -216,6 +216,4 @@ File: classifierIsVisibleByTwoPaths.kt - e7f3b61199fcee6ec9a3ea0f3b6f3779 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/inheritedFromDeprecatedNew.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/inheritedFromDeprecatedNew.antlrtree.txt index 95fe1976c..777b2bd2e 100644 --- a/grammar/testData/diagnostics/objects/kt21515/inheritedFromDeprecatedNew.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/inheritedFromDeprecatedNew.antlrtree.txt @@ -907,6 +907,4 @@ File: inheritedFromDeprecatedNew.kt - d0cef9091ac763e3071f7a8f1da52452 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/inheritedFromDeprecatedWithQualificationNew.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/inheritedFromDeprecatedWithQualificationNew.antlrtree.txt index c813712ba..07e07dc88 100644 --- a/grammar/testData/diagnostics/objects/kt21515/inheritedFromDeprecatedWithQualificationNew.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/inheritedFromDeprecatedWithQualificationNew.antlrtree.txt @@ -1039,6 +1039,4 @@ File: inheritedFromDeprecatedWithQualificationNew.kt - b6381506f264edefe535609fc semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/inheritedFromDeprecatedWithQualificationOld.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/inheritedFromDeprecatedWithQualificationOld.antlrtree.txt index 54fc7163b..13d5b7d4f 100644 --- a/grammar/testData/diagnostics/objects/kt21515/inheritedFromDeprecatedWithQualificationOld.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/inheritedFromDeprecatedWithQualificationOld.antlrtree.txt @@ -1039,6 +1039,4 @@ File: inheritedFromDeprecatedWithQualificationOld.kt - 4fee44ff40cb6612f536adac9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/staticsFromJavaNew.Kotlin.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/staticsFromJavaNew.Kotlin.antlrtree.txt index dd27e0631..73b371cdf 100644 --- a/grammar/testData/diagnostics/objects/kt21515/staticsFromJavaNew.Kotlin.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/staticsFromJavaNew.Kotlin.antlrtree.txt @@ -341,6 +341,4 @@ File: staticsFromJavaNew.Kotlin.kt - 3302add84c3788b657fab4d86db37e9d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/staticsFromJavaWithQualificationNew.Kotlin.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/staticsFromJavaWithQualificationNew.Kotlin.antlrtree.txt index 984c1451b..d3adc6e80 100644 --- a/grammar/testData/diagnostics/objects/kt21515/staticsFromJavaWithQualificationNew.Kotlin.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/staticsFromJavaWithQualificationNew.Kotlin.antlrtree.txt @@ -394,6 +394,4 @@ File: staticsFromJavaWithQualificationNew.Kotlin.kt - 0b9992e010d90bd67ec368344b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/staticsFromJavaWithQualificationOld.Kotlin.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/staticsFromJavaWithQualificationOld.Kotlin.antlrtree.txt index 8bd5989d0..25b99647f 100644 --- a/grammar/testData/diagnostics/objects/kt21515/staticsFromJavaWithQualificationOld.Kotlin.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/staticsFromJavaWithQualificationOld.Kotlin.antlrtree.txt @@ -394,6 +394,4 @@ File: staticsFromJavaWithQualificationOld.Kotlin.kt - 0b9992e010d90bd67ec368344b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/useDeprecatedConstructorNew.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/useDeprecatedConstructorNew.antlrtree.txt index c668eae5b..9d74b1983 100644 --- a/grammar/testData/diagnostics/objects/kt21515/useDeprecatedConstructorNew.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/useDeprecatedConstructorNew.antlrtree.txt @@ -987,6 +987,4 @@ File: useDeprecatedConstructorNew.kt - e86fe6b9aaeafb84eb2f71bcfb6dc616 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/useDeprecatedConstructorWithQualificationNew.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/useDeprecatedConstructorWithQualificationNew.antlrtree.txt index 4d4d4d14b..ebf5a3c16 100644 --- a/grammar/testData/diagnostics/objects/kt21515/useDeprecatedConstructorWithQualificationNew.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/useDeprecatedConstructorWithQualificationNew.antlrtree.txt @@ -1185,6 +1185,4 @@ File: useDeprecatedConstructorWithQualificationNew.kt - 8e2ef343af4f7e6d8bf8964e RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt21515/useDeprecatedConstructorWithQualificationOld.antlrtree.txt b/grammar/testData/diagnostics/objects/kt21515/useDeprecatedConstructorWithQualificationOld.antlrtree.txt index f247983a7..5b1446eb4 100644 --- a/grammar/testData/diagnostics/objects/kt21515/useDeprecatedConstructorWithQualificationOld.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt21515/useDeprecatedConstructorWithQualificationOld.antlrtree.txt @@ -1185,6 +1185,4 @@ File: useDeprecatedConstructorWithQualificationOld.kt - 5a2f7ad79d291495398e87d6 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt2240.antlrtree.txt b/grammar/testData/diagnostics/objects/kt2240.antlrtree.txt index fce6ed874..ca199ffec 100644 --- a/grammar/testData/diagnostics/objects/kt2240.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt2240.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2240.kt - 59d3dd96c8f90a4cb0afaff3e3183554 +File: kt2240.kt - d39ccecf2fc990b60cc66a0d7da18753 + NL("\n") packageHeader PACKAGE("package") identifier @@ -185,6 +186,5 @@ File: kt2240.kt - 59d3dd96c8f90a4cb0afaff3e3183554 semis NL("\n") RCURL("}") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/objects/kt5527.antlrtree.txt b/grammar/testData/diagnostics/objects/kt5527.antlrtree.txt index b775ae5a0..a82dd01a6 100644 --- a/grammar/testData/diagnostics/objects/kt5527.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/kt5527.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt5527.kt - cda5e6a3b15d51bc114ab24ad4e6f783 - NL("\n") +File: kt5527.kt - 21192c2d8a42d7361caa9fc71ff63fca NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/objects/localObjectInsideObject.antlrtree.txt b/grammar/testData/diagnostics/objects/localObjectInsideObject.antlrtree.txt index 6a4e038b9..352901c9e 100644 --- a/grammar/testData/diagnostics/objects/localObjectInsideObject.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/localObjectInsideObject.antlrtree.txt @@ -180,6 +180,4 @@ File: localObjectInsideObject.kt - 39cf38004fb9cde7bff17d9c55e1976e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/objectInsideFun.antlrtree.txt b/grammar/testData/diagnostics/objects/objectInsideFun.antlrtree.txt index 14423ea4a..c9be70edd 100644 --- a/grammar/testData/diagnostics/objects/objectInsideFun.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/objectInsideFun.antlrtree.txt @@ -193,6 +193,4 @@ File: objectInsideFun.kt - 61df68bf48d78850ea61794bea7a3449 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/objectLiteralExpressionTypeMismatch.antlrtree.txt b/grammar/testData/diagnostics/objects/objectLiteralExpressionTypeMismatch.antlrtree.txt index 0977ef979..6e9eae25a 100644 --- a/grammar/testData/diagnostics/objects/objectLiteralExpressionTypeMismatch.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/objectLiteralExpressionTypeMismatch.antlrtree.txt @@ -112,6 +112,4 @@ File: objectLiteralExpressionTypeMismatch.kt - 1183e8cd6439fa683a80568aeb2d6f6b NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/objects/upperBoundViolated.antlrtree.txt b/grammar/testData/diagnostics/objects/upperBoundViolated.antlrtree.txt index 437172627..040d89bab 100644 --- a/grammar/testData/diagnostics/objects/upperBoundViolated.antlrtree.txt +++ b/grammar/testData/diagnostics/objects/upperBoundViolated.antlrtree.txt @@ -1,4 +1,5 @@ -File: upperBoundViolated.kt - 8a5c19ec8b7dda3cbd8bc286feb03c38 +File: upperBoundViolated.kt - 36612cc198e805a3a1826e7b79f79ac2 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/operatorRem/DeprecatedModAssignOperatorConventions.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/DeprecatedModAssignOperatorConventions.antlrtree.txt index 289487552..76b9a3f4a 100644 --- a/grammar/testData/diagnostics/operatorRem/DeprecatedModAssignOperatorConventions.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/DeprecatedModAssignOperatorConventions.antlrtree.txt @@ -1,5 +1,4 @@ -File: DeprecatedModAssignOperatorConventions.kt - 0738597518a15c1e239e4c1a2a78945c - NL("\n") +File: DeprecatedModAssignOperatorConventions.kt - ea02381525a5fb33564fe1cafc977d9e NL("\n") NL("\n") NL("\n") @@ -694,6 +693,4 @@ File: DeprecatedModAssignOperatorConventions.kt - 0738597518a15c1e239e4c1a2a7894 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/DeprecatedModOperatorConventions.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/DeprecatedModOperatorConventions.antlrtree.txt index 2efb16520..91d38112d 100644 --- a/grammar/testData/diagnostics/operatorRem/DeprecatedModOperatorConventions.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/DeprecatedModOperatorConventions.antlrtree.txt @@ -1,5 +1,4 @@ -File: DeprecatedModOperatorConventions.kt - c7b7c6a868b8e7c6808cd9153f3e5be1 - NL("\n") +File: DeprecatedModOperatorConventions.kt - b4d48f8050a355b6a84b9703aac3f85e NL("\n") NL("\n") NL("\n") @@ -608,6 +607,4 @@ File: DeprecatedModOperatorConventions.kt - c7b7c6a868b8e7c6808cd9153f3e5be1 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/doNotResolveToInapplicableRem.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/doNotResolveToInapplicableRem.antlrtree.txt index 06920c3dc..7f78ba2d0 100644 --- a/grammar/testData/diagnostics/operatorRem/doNotResolveToInapplicableRem.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/doNotResolveToInapplicableRem.antlrtree.txt @@ -1,5 +1,4 @@ -File: doNotResolveToInapplicableRem.kt - 242874710135606ae1018d0745c2c529 - NL("\n") +File: doNotResolveToInapplicableRem.kt - c6ab6361baf02e784deffce59c294df4 NL("\n") NL("\n") NL("\n") @@ -141,6 +140,4 @@ File: doNotResolveToInapplicableRem.kt - 242874710135606ae1018d0745c2c529 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/forbiddenModOperatorConvention.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/forbiddenModOperatorConvention.antlrtree.txt index d71479976..50be3f41e 100644 --- a/grammar/testData/diagnostics/operatorRem/forbiddenModOperatorConvention.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/forbiddenModOperatorConvention.antlrtree.txt @@ -666,6 +666,4 @@ File: forbiddenModOperatorConvention.kt - 5df57c17e516f2b49d8cf4ddd46dd8d4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/modWithRemAssign.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/modWithRemAssign.antlrtree.txt index 27de81da2..621d082b1 100644 --- a/grammar/testData/diagnostics/operatorRem/modWithRemAssign.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/modWithRemAssign.antlrtree.txt @@ -357,6 +357,4 @@ File: modWithRemAssign.kt - d4cfc30afda16944960a46059d337c89 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/operatorRem.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/operatorRem.antlrtree.txt index 0bc43c9c1..02161915a 100644 --- a/grammar/testData/diagnostics/operatorRem/operatorRem.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/operatorRem.antlrtree.txt @@ -240,6 +240,4 @@ File: operatorRem.kt - ba99e552a3aa8f905759cf2e6b1b68c0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/preferRemAsExtentionOverMod.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/preferRemAsExtentionOverMod.antlrtree.txt index 15c4d153f..7be1bc2b6 100644 --- a/grammar/testData/diagnostics/operatorRem/preferRemAsExtentionOverMod.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/preferRemAsExtentionOverMod.antlrtree.txt @@ -244,6 +244,4 @@ File: preferRemAsExtentionOverMod.kt - 2999627c2031ed6b9aa9c955c7ddcee8 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/preferRemAsMemberOverMod.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/preferRemAsMemberOverMod.antlrtree.txt index 7337d1a3f..241024da7 100644 --- a/grammar/testData/diagnostics/operatorRem/preferRemAsMemberOverMod.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/preferRemAsMemberOverMod.antlrtree.txt @@ -230,6 +230,4 @@ File: preferRemAsMemberOverMod.kt - 9a53da720bef8bfa93b32582eb186034 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/preferRemFromCompanionObjectOverRem.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/preferRemFromCompanionObjectOverRem.antlrtree.txt index 1abae69c3..43870c8c6 100644 --- a/grammar/testData/diagnostics/operatorRem/preferRemFromCompanionObjectOverRem.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/preferRemFromCompanionObjectOverRem.antlrtree.txt @@ -239,6 +239,4 @@ File: preferRemFromCompanionObjectOverRem.kt - c82d92bb7ea48c8c624fb47ea78dc695 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/preferRemOverModInLocalFunctions.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/preferRemOverModInLocalFunctions.antlrtree.txt index 33de1547a..b6827476e 100644 --- a/grammar/testData/diagnostics/operatorRem/preferRemOverModInLocalFunctions.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/preferRemOverModInLocalFunctions.antlrtree.txt @@ -538,6 +538,4 @@ File: preferRemOverModInLocalFunctions.kt - 1af6451822b7e87ead9fffabea1828cf LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/prefereRemAsExtensionOverMemberMod.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/prefereRemAsExtensionOverMemberMod.antlrtree.txt index 98a6b0697..c80fd8e14 100644 --- a/grammar/testData/diagnostics/operatorRem/prefereRemAsExtensionOverMemberMod.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/prefereRemAsExtensionOverMemberMod.antlrtree.txt @@ -239,6 +239,4 @@ File: prefereRemAsExtensionOverMemberMod.kt - 7c53ea76014b4788a90f47189bb666c3 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/remAndRemAssignAmbiguity.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/remAndRemAssignAmbiguity.antlrtree.txt index c844f5439..ec230f095 100644 --- a/grammar/testData/diagnostics/operatorRem/remAndRemAssignAmbiguity.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/remAndRemAssignAmbiguity.antlrtree.txt @@ -1,4 +1,5 @@ -File: remAndRemAssignAmbiguity.kt - f72f86673658328d331fd6239ac11a9e +File: remAndRemAssignAmbiguity.kt - 3c12e7490e06046f03d84dc6d857562f + NL("\n") NL("\n") NL("\n") packageHeader @@ -175,6 +176,4 @@ File: remAndRemAssignAmbiguity.kt - f72f86673658328d331fd6239ac11a9e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/remWithModAndModAssign.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/remWithModAndModAssign.antlrtree.txt index a300e70fb..1dc5755e5 100644 --- a/grammar/testData/diagnostics/operatorRem/remWithModAndModAssign.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/remWithModAndModAssign.antlrtree.txt @@ -377,6 +377,4 @@ File: remWithModAndModAssign.kt - 48b1eaa861f3b8066804115864b94958 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/remWithModAssign.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/remWithModAssign.antlrtree.txt index 5cbaa9a46..9b83b44fc 100644 --- a/grammar/testData/diagnostics/operatorRem/remWithModAssign.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/remWithModAssign.antlrtree.txt @@ -168,6 +168,4 @@ File: remWithModAssign.kt - e45321ebb00d29086d3f9f0a62a18fcb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorRem/resolveModIfRemIsHidden.antlrtree.txt b/grammar/testData/diagnostics/operatorRem/resolveModIfRemIsHidden.antlrtree.txt index c4e9a913f..925f9e106 100644 --- a/grammar/testData/diagnostics/operatorRem/resolveModIfRemIsHidden.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorRem/resolveModIfRemIsHidden.antlrtree.txt @@ -319,6 +319,4 @@ File: resolveModIfRemIsHidden.kt - 6f5a4e42ef639a5433735501a565f0ba LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/AssignOperatorAmbiguity.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/AssignOperatorAmbiguity.antlrtree.txt index 0e603a67e..0fcad9e90 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/AssignOperatorAmbiguity.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/AssignOperatorAmbiguity.antlrtree.txt @@ -1,4 +1,5 @@ -File: AssignOperatorAmbiguity.kt - e783225875c94042ad8c05fb5950bbda +File: AssignOperatorAmbiguity.kt - d9ce55b99856e8de786f2a69a516d048 + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -286,6 +287,4 @@ File: AssignOperatorAmbiguity.kt - e783225875c94042ad8c05fb5950bbda RCURL("}") semis NL("\n") - NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/AssignmentOperations.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/AssignmentOperations.antlrtree.txt index 57be3cfa0..46f3a8cf0 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/AssignmentOperations.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/AssignmentOperations.antlrtree.txt @@ -1,4 +1,5 @@ -File: AssignmentOperations.kt - 83ec9d8af2e8c9d4950175a4e4381aaf +File: AssignmentOperations.kt - 930076031528f09a085895a96a418483 + NL("\n") packageHeader importList topLevelObject @@ -1059,5 +1060,5 @@ File: AssignmentOperations.kt - 83ec9d8af2e8c9d4950175a4e4381aaf NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/IteratorAmbiguity.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/IteratorAmbiguity.antlrtree.txt index ef0a5f1e2..2333c8028 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/IteratorAmbiguity.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/IteratorAmbiguity.antlrtree.txt @@ -1,4 +1,5 @@ -File: IteratorAmbiguity.kt - 951939256174c66f92811f1ec0714bd0 +File: IteratorAmbiguity.kt - 7af87b7ef289100b0aa609b753f97880 + NL("\n") NL("\n") NL("\n") packageHeader @@ -339,6 +340,4 @@ File: IteratorAmbiguity.kt - 951939256174c66f92811f1ec0714bd0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/compareToNullable.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/compareToNullable.antlrtree.txt index d6bb64d7b..1071c2cd6 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/compareToNullable.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/compareToNullable.antlrtree.txt @@ -243,6 +243,4 @@ File: compareToNullable.kt - 3653619131a6ea243e9bd6d214552455 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/incForAssignmentSmartCast.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/incForAssignmentSmartCast.antlrtree.txt new file mode 100644 index 000000000..5d6e29e2d --- /dev/null +++ b/grammar/testData/diagnostics/operatorsOverloading/incForAssignmentSmartCast.antlrtree.txt @@ -0,0 +1,264 @@ +File: incForAssignmentSmartCast.kt - 39baa1174a69985c805a1498fb778c35 + NL("\n") + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("nullable") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("nullable") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + postfixUnaryOperator + INCR("++") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/kt1028.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/kt1028.antlrtree.txt index 4bba9f310..64395d526 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/kt1028.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/kt1028.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt1028.kt - 98ff9984b0c7377d09d44ac3fed4de65 +File: kt1028.kt - d0d93ffb6fd6a35f58ff440edfbeafef + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -807,6 +808,4 @@ File: kt1028.kt - 98ff9984b0c7377d09d44ac3fed4de65 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/kt11300.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/kt11300.antlrtree.txt index 6a77ea128..efa370811 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/kt11300.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/kt11300.antlrtree.txt @@ -1,6 +1,4 @@ -File: kt11300.kt - 1d054a66d57abd39e12aaae0df95f0d0 - NL("\n") - NL("\n") +File: kt11300.kt - f63a8dbfcc6327e2d0170104b6ef3b14 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/operatorsOverloading/kt13330.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/kt13330.antlrtree.txt index b55cafb99..aaedf8ab5 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/kt13330.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/kt13330.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt13330.kt - ada8555640773f5cc5b4388a76be6a44 - NL("\n") +File: kt13330.kt - 3e1feb007e325650d853056c83f7ff60 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/operatorsOverloading/kt13349.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/kt13349.antlrtree.txt index 55afa3e70..d3fa53d15 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/kt13349.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/kt13349.antlrtree.txt @@ -94,6 +94,4 @@ File: kt13349.kt - d6938b9bfc4e784e0d1ec01de7b757a4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/kt3450.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/kt3450.antlrtree.txt index 5e6cd4713..acf7261eb 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/kt3450.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/kt3450.antlrtree.txt @@ -945,6 +945,4 @@ File: kt3450.kt - 422cf7e0db98aa4d0c281fb9447a7e24 simpleIdentifier Identifier("that") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/kt45503_1.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/kt45503_1.antlrtree.txt new file mode 100644 index 000000000..7bb072ecc --- /dev/null +++ b/grammar/testData/diagnostics/operatorsOverloading/kt45503_1.antlrtree.txt @@ -0,0 +1,373 @@ +File: kt45503_1.kt - 940b8fd6d3eed09311e89bcd98817ef4 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + SET("set") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RSQUARE("]") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/kt45503_2.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/kt45503_2.antlrtree.txt new file mode 100644 index 000000000..52ac0db03 --- /dev/null +++ b/grammar/testData/diagnostics/operatorsOverloading/kt45503_2.antlrtree.txt @@ -0,0 +1,354 @@ +File: kt45503_2.kt - f159936bc84843136a860e40d2383c25 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAR("var") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("k") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RANGLE(">") + simpleIdentifier + SET("set") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("k") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("v") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mutableListOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + RSQUARE("]") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/kt45503_3.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/kt45503_3.antlrtree.txt new file mode 100644 index 000000000..058c2fef2 --- /dev/null +++ b/grammar/testData/diagnostics/operatorsOverloading/kt45503_3.antlrtree.txt @@ -0,0 +1,393 @@ +File: kt45503_3.kt - 675fde3358211c661ffd3c4e6b7fdd70 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("E") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RANGLE(">") + simpleIdentifier + SET("set") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + SET("set") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("k") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("v") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("E") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RSQUARE("]") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/plusAssignOnArray.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/plusAssignOnArray.antlrtree.txt index d9628f553..bcd5d7ae3 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/plusAssignOnArray.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/plusAssignOnArray.antlrtree.txt @@ -1,4 +1,5 @@ -File: plusAssignOnArray.kt - f9ec310da5f09157d6bfc02b1bbfc4cd +File: plusAssignOnArray.kt - 3ce874619362480b0afad51fb30341be + NL("\n") NL("\n") NL("\n") packageHeader @@ -473,6 +474,4 @@ File: plusAssignOnArray.kt - f9ec310da5f09157d6bfc02b1bbfc4cd semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/plusAssignOnLocal.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/plusAssignOnLocal.antlrtree.txt index ee0a76eb1..50bc8329b 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/plusAssignOnLocal.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/plusAssignOnLocal.antlrtree.txt @@ -1,4 +1,5 @@ -File: plusAssignOnLocal.kt - de644de1c5a041aa2bfedc1841f8af04 +File: plusAssignOnLocal.kt - c89dd90a5f38ec9f5f1a884c703902d5 + NL("\n") NL("\n") NL("\n") packageHeader @@ -256,6 +257,4 @@ File: plusAssignOnLocal.kt - de644de1c5a041aa2bfedc1841f8af04 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/plusAssignOnProperty.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/plusAssignOnProperty.antlrtree.txt index d941b8c44..4cb5b11a1 100644 --- a/grammar/testData/diagnostics/operatorsOverloading/plusAssignOnProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/operatorsOverloading/plusAssignOnProperty.antlrtree.txt @@ -1,4 +1,5 @@ -File: plusAssignOnProperty.kt - fdb9ee6cf87a3125ac953ed7539ddfaf +File: plusAssignOnProperty.kt - 1bf2c47c8b3d93302ceaa9e376634354 + NL("\n") NL("\n") NL("\n") packageHeader @@ -365,6 +366,4 @@ File: plusAssignOnProperty.kt - fdb9ee6cf87a3125ac953ed7539ddfaf semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/plusAssignOnVarAndCollections.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/plusAssignOnVarAndCollections.antlrtree.txt new file mode 100644 index 000000000..7c903ea76 --- /dev/null +++ b/grammar/testData/diagnostics/operatorsOverloading/plusAssignOnVarAndCollections.antlrtree.txt @@ -0,0 +1,621 @@ +File: plusAssignOnVarAndCollections.kt - 37a9cd77b84a9116e93bba7e80c99f14 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("list") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ArrayList") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("list") + assignmentAndOperator + SUB_ASSIGNMENT("-=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + SET("set") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("HashMap") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + SET("set") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + SET("set") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("HashSet") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + SET("set") + assignmentAndOperator + SUB_ASSIGNMENT("-=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("list") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mutableListOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("list") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("map") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mutableMapOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("map") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + simpleIdentifier + Identifier("to") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test6") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + SET("set") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mutableSetOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + assignment + assignableExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + SET("set") + assignmentAndOperator + ADD_ASSIGNMENT("+=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/until/custom.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/until/custom.antlrtree.txt new file mode 100644 index 000000000..e8c1171d8 --- /dev/null +++ b/grammar/testData/diagnostics/operatorsOverloading/until/custom.antlrtree.txt @@ -0,0 +1,139 @@ +File: custom.kt - 05470931525d9faf2a6e9c2c5ef8a8b4 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("rangeUntil") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("n") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + LCURL("{") + NL("\n") + FOR("for") + LPAREN("(") + Identifier("i") + IN("in") + Identifier("f") + RANGE("..") + LANGLE("<") + Identifier("n") + RPAREN(")") + LCURL("{") + NL("\n") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/until/customDefault.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/until/customDefault.antlrtree.txt new file mode 100644 index 000000000..cc82390fe --- /dev/null +++ b/grammar/testData/diagnostics/operatorsOverloading/until/customDefault.antlrtree.txt @@ -0,0 +1,136 @@ +File: customDefault.kt - 9e12681033486432f758d06b905c9c59 (WITH_ERRORS) + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("rangeUntil") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("n") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + LCURL("{") + NL("\n") + FOR("for") + LPAREN("(") + Identifier("i") + IN("in") + Identifier("f") + RANGE("..") + LANGLE("<") + Identifier("n") + RPAREN(")") + LCURL("{") + NL("\n") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/until/customDisabled.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/until/customDisabled.antlrtree.txt new file mode 100644 index 000000000..05b7e85f9 --- /dev/null +++ b/grammar/testData/diagnostics/operatorsOverloading/until/customDisabled.antlrtree.txt @@ -0,0 +1,138 @@ +File: customDisabled.kt - 29caf09d063dc7ba1537934369585d00 (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("rangeUntil") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("n") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + LCURL("{") + NL("\n") + FOR("for") + LPAREN("(") + Identifier("i") + IN("in") + Identifier("f") + RANGE("..") + LANGLE("<") + Identifier("n") + RPAREN(")") + LCURL("{") + NL("\n") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/until/simple.antlrtree.txt b/grammar/testData/diagnostics/operatorsOverloading/until/simple.antlrtree.txt new file mode 100644 index 000000000..e7b27a496 --- /dev/null +++ b/grammar/testData/diagnostics/operatorsOverloading/until/simple.antlrtree.txt @@ -0,0 +1,43 @@ +File: simple.kt - cfed1acd087bd95b0b8e9ed460be7331 (WITH_ERRORS) + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("n") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + LCURL("{") + NL("\n") + FOR("for") + LPAREN("(") + Identifier("i") + IN("in") + IntegerLiteral("0") + RANGE("..") + LANGLE("<") + Identifier("n") + RPAREN(")") + LCURL("{") + NL("\n") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/operatorsOverloading/until/until.diff b/grammar/testData/diagnostics/operatorsOverloading/until/until.diff new file mode 100644 index 000000000..922c46c4e --- /dev/null +++ b/grammar/testData/diagnostics/operatorsOverloading/until/until.diff @@ -0,0 +1 @@ +Needs `until` operator support to parse correctly diff --git a/grammar/testData/diagnostics/overload/ConflictingOlverloadsGenericFunctions.antlrtree.txt b/grammar/testData/diagnostics/overload/ConflictingOlverloadsGenericFunctions.antlrtree.txt index b00a3e65e..8c8be29eb 100644 --- a/grammar/testData/diagnostics/overload/ConflictingOlverloadsGenericFunctions.antlrtree.txt +++ b/grammar/testData/diagnostics/overload/ConflictingOlverloadsGenericFunctions.antlrtree.txt @@ -1157,6 +1157,4 @@ File: ConflictingOlverloadsGenericFunctions.kt - a70648cdb0a94d0e30a5de1a714da8a LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/overload/ConflictingOverloadsFunsDifferentReturnInClass.antlrtree.txt b/grammar/testData/diagnostics/overload/ConflictingOverloadsFunsDifferentReturnInClass.antlrtree.txt index 63156bc1f..efacab8d1 100644 --- a/grammar/testData/diagnostics/overload/ConflictingOverloadsFunsDifferentReturnInClass.antlrtree.txt +++ b/grammar/testData/diagnostics/overload/ConflictingOverloadsFunsDifferentReturnInClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: ConflictingOverloadsFunsDifferentReturnInClass.kt - 3162aa3690ed111f29ced46ef028969f +File: ConflictingOverloadsFunsDifferentReturnInClass.kt - bff006ef6fec3bee635a9a5a5c8629ce + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/overload/ConflictingOverloadsFunsDifferentReturnInPackage.antlrtree.txt b/grammar/testData/diagnostics/overload/ConflictingOverloadsFunsDifferentReturnInPackage.antlrtree.txt index 1eeb6658f..3f8b20699 100644 --- a/grammar/testData/diagnostics/overload/ConflictingOverloadsFunsDifferentReturnInPackage.antlrtree.txt +++ b/grammar/testData/diagnostics/overload/ConflictingOverloadsFunsDifferentReturnInPackage.antlrtree.txt @@ -1,4 +1,5 @@ -File: ConflictingOverloadsFunsDifferentReturnInPackage.kt - 96fc7724d43b2905514b8db7b052f261 +File: ConflictingOverloadsFunsDifferentReturnInPackage.kt - e929412cf17d4cd03839873cc75fee74 + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/overload/ConflictingOverloadsIdenticalExtFunsInPackage.antlrtree.txt b/grammar/testData/diagnostics/overload/ConflictingOverloadsIdenticalExtFunsInPackage.antlrtree.txt index a7500a085..46e0dd592 100644 --- a/grammar/testData/diagnostics/overload/ConflictingOverloadsIdenticalExtFunsInPackage.antlrtree.txt +++ b/grammar/testData/diagnostics/overload/ConflictingOverloadsIdenticalExtFunsInPackage.antlrtree.txt @@ -1,4 +1,5 @@ -File: ConflictingOverloadsIdenticalExtFunsInPackage.kt - 22404ddc347323856abead465ec8013d +File: ConflictingOverloadsIdenticalExtFunsInPackage.kt - e1ce2b015319fc2562d2b9b90de712eb + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/overload/ConflictingOverloadsIdenticalValsInClass.antlrtree.txt b/grammar/testData/diagnostics/overload/ConflictingOverloadsIdenticalValsInClass.antlrtree.txt index 934770ebe..6d0b7a062 100644 --- a/grammar/testData/diagnostics/overload/ConflictingOverloadsIdenticalValsInClass.antlrtree.txt +++ b/grammar/testData/diagnostics/overload/ConflictingOverloadsIdenticalValsInClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: ConflictingOverloadsIdenticalValsInClass.kt - ea7d3076578ad511648511fc2fdabde2 +File: ConflictingOverloadsIdenticalValsInClass.kt - 56b3f04bec164e2d6e3b6ffa77256bab + NL("\n") packageHeader importList topLevelObject @@ -70,6 +71,4 @@ File: ConflictingOverloadsIdenticalValsInClass.kt - ea7d3076578ad511648511fc2fda IntegerLiteral("1") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/overload/ConflictingOverloadsValsDifferentTypeInClass.antlrtree.txt b/grammar/testData/diagnostics/overload/ConflictingOverloadsValsDifferentTypeInClass.antlrtree.txt index c177de6d3..8bdd3b09f 100644 --- a/grammar/testData/diagnostics/overload/ConflictingOverloadsValsDifferentTypeInClass.antlrtree.txt +++ b/grammar/testData/diagnostics/overload/ConflictingOverloadsValsDifferentTypeInClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: ConflictingOverloadsValsDifferentTypeInClass.kt - 2e48a71d539b3044ed477ecb574cbc94 +File: ConflictingOverloadsValsDifferentTypeInClass.kt - eae6c79d5ea6e6a29a833d30556d839f + NL("\n") packageHeader importList topLevelObject @@ -72,6 +73,4 @@ File: ConflictingOverloadsValsDifferentTypeInClass.kt - 2e48a71d539b3044ed477ecb QUOTE_CLOSE(""") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/overload/ConstructorVsFunOverload.antlrtree.txt b/grammar/testData/diagnostics/overload/ConstructorVsFunOverload.antlrtree.txt index 43e439601..7532e42f6 100644 --- a/grammar/testData/diagnostics/overload/ConstructorVsFunOverload.antlrtree.txt +++ b/grammar/testData/diagnostics/overload/ConstructorVsFunOverload.antlrtree.txt @@ -219,6 +219,4 @@ File: ConstructorVsFunOverload.kt - 9f10cd1d0a92d0eca26e803580403618 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/overload/EmptyArgumentListInLambda.antlrtree.txt b/grammar/testData/diagnostics/overload/EmptyArgumentListInLambda.antlrtree.txt index f48c61f03..80f8b38ba 100644 --- a/grammar/testData/diagnostics/overload/EmptyArgumentListInLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/overload/EmptyArgumentListInLambda.antlrtree.txt @@ -1,4 +1,5 @@ -File: EmptyArgumentListInLambda.kt - 715ebbc198021fd13460652f09dca86f +File: EmptyArgumentListInLambda.kt - 8702ee2fabb7db0898238a8afbcee4c2 + NL("\n") NL("\n") NL("\n") packageHeader @@ -139,6 +140,4 @@ File: EmptyArgumentListInLambda.kt - 715ebbc198021fd13460652f09dca86f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/overload/LocalFunctions.antlrtree.txt b/grammar/testData/diagnostics/overload/LocalFunctions.antlrtree.txt index fbd13668f..519e3a4d4 100644 --- a/grammar/testData/diagnostics/overload/LocalFunctions.antlrtree.txt +++ b/grammar/testData/diagnostics/overload/LocalFunctions.antlrtree.txt @@ -3856,6 +3856,4 @@ File: LocalFunctions.kt - 1b410374afedbbb772f441cd5f5110c5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/overload/SyntheticAndNotSynthetic.antlrtree.txt b/grammar/testData/diagnostics/overload/SyntheticAndNotSynthetic.antlrtree.txt index 5e6ebd143..bac45744c 100644 --- a/grammar/testData/diagnostics/overload/SyntheticAndNotSynthetic.antlrtree.txt +++ b/grammar/testData/diagnostics/overload/SyntheticAndNotSynthetic.antlrtree.txt @@ -154,6 +154,4 @@ File: SyntheticAndNotSynthetic.kt - 65ded060c5291a17c474b50beadd9e24 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/overload/defaultParameters.antlrtree.txt b/grammar/testData/diagnostics/overload/defaultParameters.antlrtree.txt index 52cff2da2..039eb7a6f 100644 --- a/grammar/testData/diagnostics/overload/defaultParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/overload/defaultParameters.antlrtree.txt @@ -1,5 +1,4 @@ -File: defaultParameters.kt - 987265361327b3a8b8a8e72d866040b1 - NL("\n") +File: defaultParameters.kt - 94e72853f788e36a5e235e150e1f5694 NL("\n") NL("\n") NL("\n") @@ -2351,6 +2350,4 @@ File: defaultParameters.kt - 987265361327b3a8b8a8e72d866040b1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/overload/kt10939.antlrtree.txt b/grammar/testData/diagnostics/overload/kt10939.antlrtree.txt index e0b8c61c4..3b0eba95d 100644 --- a/grammar/testData/diagnostics/overload/kt10939.antlrtree.txt +++ b/grammar/testData/diagnostics/overload/kt10939.antlrtree.txt @@ -586,6 +586,4 @@ File: kt10939.kt - 7c8d371988fa1223e5605737cfb289b2 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/overload/kt2493.antlrtree.txt b/grammar/testData/diagnostics/overload/kt2493.antlrtree.txt index df95e796e..218dcd301 100644 --- a/grammar/testData/diagnostics/overload/kt2493.antlrtree.txt +++ b/grammar/testData/diagnostics/overload/kt2493.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt2493.kt - 97c990e37016d39fa13bd3269d534341 +File: kt2493.kt - 3eb5823f36d158b927e3520ff83fd708 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/overload/kt7068.antlrtree.txt b/grammar/testData/diagnostics/overload/kt7068.antlrtree.txt index 1153682d0..715e1a9e9 100644 --- a/grammar/testData/diagnostics/overload/kt7068.antlrtree.txt +++ b/grammar/testData/diagnostics/overload/kt7068.antlrtree.txt @@ -246,6 +246,4 @@ File: kt7068.kt - 722acd68265cac28e764a27b11681df2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/overload/kt7068_2.antlrtree.txt b/grammar/testData/diagnostics/overload/kt7068_2.antlrtree.txt index 7425e49e3..3455eadd2 100644 --- a/grammar/testData/diagnostics/overload/kt7068_2.antlrtree.txt +++ b/grammar/testData/diagnostics/overload/kt7068_2.antlrtree.txt @@ -267,6 +267,4 @@ File: kt7068_2.kt - 5aba05b9f142aa63d5579e4a3592ef8e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/overload/kt7440.antlrtree.txt b/grammar/testData/diagnostics/overload/kt7440.antlrtree.txt index 13c38a7df..f646e7d29 100644 --- a/grammar/testData/diagnostics/overload/kt7440.antlrtree.txt +++ b/grammar/testData/diagnostics/overload/kt7440.antlrtree.txt @@ -659,6 +659,4 @@ File: kt7440.kt - d1f51855feb7f52e36be33be39c6f862 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/AbstractFunNotImplemented.antlrtree.txt b/grammar/testData/diagnostics/override/AbstractFunNotImplemented.antlrtree.txt index e7f35071b..28d6103ab 100644 --- a/grammar/testData/diagnostics/override/AbstractFunNotImplemented.antlrtree.txt +++ b/grammar/testData/diagnostics/override/AbstractFunNotImplemented.antlrtree.txt @@ -1,4 +1,5 @@ -File: AbstractFunNotImplemented.kt - 832d9c12b2f3e4dcd371bf6da4ddac20 +File: AbstractFunNotImplemented.kt - 9116a056ca1d93af701ecf3549e576be + NL("\n") packageHeader importList topLevelObject @@ -68,6 +69,4 @@ File: AbstractFunNotImplemented.kt - 832d9c12b2f3e4dcd371bf6da4ddac20 NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/AbstractValNotImplemented.antlrtree.txt b/grammar/testData/diagnostics/override/AbstractValNotImplemented.antlrtree.txt index 9a1165d21..e777097b5 100644 --- a/grammar/testData/diagnostics/override/AbstractValNotImplemented.antlrtree.txt +++ b/grammar/testData/diagnostics/override/AbstractValNotImplemented.antlrtree.txt @@ -1,4 +1,5 @@ -File: AbstractValNotImplemented.kt - e19212e98b15c0bc9d4ca44695dac08e +File: AbstractValNotImplemented.kt - a5878dd80e4fe0a9e868f8a1b04fe877 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/override/AbstractVarNotImplemented.antlrtree.txt b/grammar/testData/diagnostics/override/AbstractVarNotImplemented.antlrtree.txt index b41da8d2b..74e7e3dc8 100644 --- a/grammar/testData/diagnostics/override/AbstractVarNotImplemented.antlrtree.txt +++ b/grammar/testData/diagnostics/override/AbstractVarNotImplemented.antlrtree.txt @@ -1,4 +1,5 @@ -File: AbstractVarNotImplemented.kt - b23424f55ecad9d3bbd63659e8cdd100 +File: AbstractVarNotImplemented.kt - 80f2149c8d8690793dcd679404e2994a + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/override/ComplexValRedeclaration.antlrtree.txt b/grammar/testData/diagnostics/override/ComplexValRedeclaration.antlrtree.txt index b95a14a87..a93173018 100644 --- a/grammar/testData/diagnostics/override/ComplexValRedeclaration.antlrtree.txt +++ b/grammar/testData/diagnostics/override/ComplexValRedeclaration.antlrtree.txt @@ -152,6 +152,4 @@ File: ComplexValRedeclaration.kt - dbfd351507b39211d493d38389295671 Identifier("t") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/ConflictingPropertySignatureFromSuperclass.antlrtree.txt b/grammar/testData/diagnostics/override/ConflictingPropertySignatureFromSuperclass.antlrtree.txt index 0e24b2f58..efcd64fc6 100644 --- a/grammar/testData/diagnostics/override/ConflictingPropertySignatureFromSuperclass.antlrtree.txt +++ b/grammar/testData/diagnostics/override/ConflictingPropertySignatureFromSuperclass.antlrtree.txt @@ -119,6 +119,4 @@ File: ConflictingPropertySignatureFromSuperclass.kt - 960394762d8e3c31e52116b9ad QUOTE_CLOSE(""") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/DefaultParameterValues-NoErrorsWhenInheritingFromOneTypeTwice.antlrtree.txt b/grammar/testData/diagnostics/override/DefaultParameterValues-NoErrorsWhenInheritingFromOneTypeTwice.antlrtree.txt index 4baee9aca..9dcea1f1f 100644 --- a/grammar/testData/diagnostics/override/DefaultParameterValues-NoErrorsWhenInheritingFromOneTypeTwice.antlrtree.txt +++ b/grammar/testData/diagnostics/override/DefaultParameterValues-NoErrorsWhenInheritingFromOneTypeTwice.antlrtree.txt @@ -197,6 +197,4 @@ File: DefaultParameterValues-NoErrorsWhenInheritingFromOneTypeTwice.kt - e2d395a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/Delegation.antlrtree.txt b/grammar/testData/diagnostics/override/Delegation.antlrtree.txt index e0d7b49d4..c6adbea8f 100644 --- a/grammar/testData/diagnostics/override/Delegation.antlrtree.txt +++ b/grammar/testData/diagnostics/override/Delegation.antlrtree.txt @@ -958,6 +958,4 @@ File: Delegation.kt - 31156229338f4c37f9e57096aa92845e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/DuplicateMethod.antlrtree.txt b/grammar/testData/diagnostics/override/DuplicateMethod.antlrtree.txt index 864256b14..d08856514 100644 --- a/grammar/testData/diagnostics/override/DuplicateMethod.antlrtree.txt +++ b/grammar/testData/diagnostics/override/DuplicateMethod.antlrtree.txt @@ -86,6 +86,4 @@ File: DuplicateMethod.kt - 8d73b179f0d6df9f5303096793a7f11f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/ExtendFunctionClass.antlrtree.txt b/grammar/testData/diagnostics/override/ExtendFunctionClass.antlrtree.txt index 1ab1b66c0..cc33a7a03 100644 --- a/grammar/testData/diagnostics/override/ExtendFunctionClass.antlrtree.txt +++ b/grammar/testData/diagnostics/override/ExtendFunctionClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: ExtendFunctionClass.kt - da2570963892f148ae7a423f48370d47 +File: ExtendFunctionClass.kt - 17d0c56ef3082ae78cade64df8f4bfce + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/override/FakeOverrideDifferentDeclarationSignatures.antlrtree.txt b/grammar/testData/diagnostics/override/FakeOverrideDifferentDeclarationSignatures.antlrtree.txt index ab9278136..c4624731e 100644 --- a/grammar/testData/diagnostics/override/FakeOverrideDifferentDeclarationSignatures.antlrtree.txt +++ b/grammar/testData/diagnostics/override/FakeOverrideDifferentDeclarationSignatures.antlrtree.txt @@ -1,4 +1,5 @@ -File: FakeOverrideDifferentDeclarationSignatures.kt - fe1def51ff944545d57e5476062b52e5 +File: FakeOverrideDifferentDeclarationSignatures.kt - 368325d45f0bc2a42c07edc1152ad3ed + NL("\n") packageHeader importList topLevelObject @@ -206,6 +207,4 @@ File: FakeOverrideDifferentDeclarationSignatures.kt - fe1def51ff944545d57e547606 classMemberDeclarations RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/FakeOverrideModality1.antlrtree.txt b/grammar/testData/diagnostics/override/FakeOverrideModality1.antlrtree.txt index deed429de..40b645ef6 100644 --- a/grammar/testData/diagnostics/override/FakeOverrideModality1.antlrtree.txt +++ b/grammar/testData/diagnostics/override/FakeOverrideModality1.antlrtree.txt @@ -1,4 +1,5 @@ -File: FakeOverrideModality1.kt - cea80154980f673a0d3302da0fe5d1ee +File: FakeOverrideModality1.kt - 2a64b4b8ce8694e63c682834c15db2d8 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/override/FakeOverrideModality2.antlrtree.txt b/grammar/testData/diagnostics/override/FakeOverrideModality2.antlrtree.txt index e2af580d7..c23137f80 100644 --- a/grammar/testData/diagnostics/override/FakeOverrideModality2.antlrtree.txt +++ b/grammar/testData/diagnostics/override/FakeOverrideModality2.antlrtree.txt @@ -1,4 +1,5 @@ -File: FakeOverrideModality2.kt - 96911cc798f4e7f146895e14d0837424 +File: FakeOverrideModality2.kt - b8e33f78641005cfc62b1b48504d27e1 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/override/Generics.antlrtree.txt b/grammar/testData/diagnostics/override/Generics.antlrtree.txt index 1f73bc821..278ed2e50 100644 --- a/grammar/testData/diagnostics/override/Generics.antlrtree.txt +++ b/grammar/testData/diagnostics/override/Generics.antlrtree.txt @@ -1866,6 +1866,4 @@ File: Generics.kt - 5eb0e212bf70695f00c51c8171830210 Identifier("t") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/InvisiblePotentialOverride.antlrtree.txt b/grammar/testData/diagnostics/override/InvisiblePotentialOverride.antlrtree.txt index 5b4155381..9dfed0183 100644 --- a/grammar/testData/diagnostics/override/InvisiblePotentialOverride.antlrtree.txt +++ b/grammar/testData/diagnostics/override/InvisiblePotentialOverride.antlrtree.txt @@ -125,6 +125,4 @@ File: InvisiblePotentialOverride.kt - 7612824aac78fa286e3934e498aa1b8a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/MissingDelegate.antlrtree.txt b/grammar/testData/diagnostics/override/MissingDelegate.antlrtree.txt index b89428dcb..adadf7fe7 100644 --- a/grammar/testData/diagnostics/override/MissingDelegate.antlrtree.txt +++ b/grammar/testData/diagnostics/override/MissingDelegate.antlrtree.txt @@ -81,6 +81,4 @@ File: MissingDelegate.kt - 4489aa4190918d881a9fb2f836c9aeaa semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/MultipleDefaultParametersInSupertypes.antlrtree.txt b/grammar/testData/diagnostics/override/MultipleDefaultParametersInSupertypes.antlrtree.txt index 4c7be5f98..38a63ee49 100644 --- a/grammar/testData/diagnostics/override/MultipleDefaultParametersInSupertypes.antlrtree.txt +++ b/grammar/testData/diagnostics/override/MultipleDefaultParametersInSupertypes.antlrtree.txt @@ -228,6 +228,4 @@ File: MultipleDefaultParametersInSupertypes.kt - f8c7d51b7650acc4e0d9728df8570bb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/MultipleDefaultParametersInSupertypesNoOverride.antlrtree.txt b/grammar/testData/diagnostics/override/MultipleDefaultParametersInSupertypesNoOverride.antlrtree.txt index 297fa864a..f011d7b89 100644 --- a/grammar/testData/diagnostics/override/MultipleDefaultParametersInSupertypesNoOverride.antlrtree.txt +++ b/grammar/testData/diagnostics/override/MultipleDefaultParametersInSupertypesNoOverride.antlrtree.txt @@ -1,4 +1,5 @@ -File: MultipleDefaultParametersInSupertypesNoOverride.kt - 1d486d16eb8b0e38801352c40eb0885c +File: MultipleDefaultParametersInSupertypesNoOverride.kt - 6e5a4cb110bf48afac1140337eb85084 + NL("\n") packageHeader importList topLevelObject @@ -220,6 +221,4 @@ File: MultipleDefaultParametersInSupertypesNoOverride.kt - 1d486d16eb8b0e3880135 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/MultipleDefaultsAndNamesInSupertypes.antlrtree.txt b/grammar/testData/diagnostics/override/MultipleDefaultsAndNamesInSupertypes.antlrtree.txt index d46b0fdea..276175a60 100644 --- a/grammar/testData/diagnostics/override/MultipleDefaultsAndNamesInSupertypes.antlrtree.txt +++ b/grammar/testData/diagnostics/override/MultipleDefaultsAndNamesInSupertypes.antlrtree.txt @@ -218,6 +218,4 @@ File: MultipleDefaultsAndNamesInSupertypes.kt - 37318d5764797930ea816cf811d54d91 simpleUserType simpleIdentifier Identifier("C") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/MultipleDefaultsInSupertypesNoExplicitOverride.antlrtree.txt b/grammar/testData/diagnostics/override/MultipleDefaultsInSupertypesNoExplicitOverride.antlrtree.txt index 3110c4c0b..280b230e5 100644 --- a/grammar/testData/diagnostics/override/MultipleDefaultsInSupertypesNoExplicitOverride.antlrtree.txt +++ b/grammar/testData/diagnostics/override/MultipleDefaultsInSupertypesNoExplicitOverride.antlrtree.txt @@ -163,6 +163,4 @@ File: MultipleDefaultsInSupertypesNoExplicitOverride.kt - 0538464a04aaef78958b69 LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/ObjectDelegationManyImpl.antlrtree.txt b/grammar/testData/diagnostics/override/ObjectDelegationManyImpl.antlrtree.txt index b5dadee60..745dfc748 100644 --- a/grammar/testData/diagnostics/override/ObjectDelegationManyImpl.antlrtree.txt +++ b/grammar/testData/diagnostics/override/ObjectDelegationManyImpl.antlrtree.txt @@ -1,4 +1,5 @@ -File: ObjectDelegationManyImpl.kt - 57ccc016b2e182c63b5c8d59014b4a84 +File: ObjectDelegationManyImpl.kt - 7d2b2bc441decbf66dfa18d558485cbb + NL("\n") packageHeader importList topLevelObject @@ -200,6 +201,4 @@ File: ObjectDelegationManyImpl.kt - 57ccc016b2e182c63b5c8d59014b4a84 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/OverrideWithErrors.antlrtree.txt b/grammar/testData/diagnostics/override/OverrideWithErrors.antlrtree.txt index e9c89e045..6ea428514 100644 --- a/grammar/testData/diagnostics/override/OverrideWithErrors.antlrtree.txt +++ b/grammar/testData/diagnostics/override/OverrideWithErrors.antlrtree.txt @@ -112,6 +112,4 @@ File: OverrideWithErrors.kt - 2fd39088b1086fd27e527dc1ed84acee semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/ParameterDefaultValues-DefaultValueFromOnlyOneSupertype.antlrtree.txt b/grammar/testData/diagnostics/override/ParameterDefaultValues-DefaultValueFromOnlyOneSupertype.antlrtree.txt index d57713f21..d9a52bb9d 100644 --- a/grammar/testData/diagnostics/override/ParameterDefaultValues-DefaultValueFromOnlyOneSupertype.antlrtree.txt +++ b/grammar/testData/diagnostics/override/ParameterDefaultValues-DefaultValueFromOnlyOneSupertype.antlrtree.txt @@ -150,6 +150,4 @@ File: ParameterDefaultValues-DefaultValueFromOnlyOneSupertype.kt - 59b78ce7a9d40 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/ParentInheritsManyImplementations.antlrtree.txt b/grammar/testData/diagnostics/override/ParentInheritsManyImplementations.antlrtree.txt index 7c4e24651..380704e42 100644 --- a/grammar/testData/diagnostics/override/ParentInheritsManyImplementations.antlrtree.txt +++ b/grammar/testData/diagnostics/override/ParentInheritsManyImplementations.antlrtree.txt @@ -1,4 +1,5 @@ -File: ParentInheritsManyImplementations.kt - ea073ac5f8317e23f99f91ee4607ba5a +File: ParentInheritsManyImplementations.kt - 3b8a86c4a8454800aec0b0b71c9cf8a3 + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/override/PropertyInConstructor.antlrtree.txt b/grammar/testData/diagnostics/override/PropertyInConstructor.antlrtree.txt index 4504d235e..8f290cfcd 100644 --- a/grammar/testData/diagnostics/override/PropertyInConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/override/PropertyInConstructor.antlrtree.txt @@ -212,6 +212,4 @@ File: PropertyInConstructor.kt - c4ce235ad3c8eeb7e42297e1cbe71c71 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/ProtectedAndPrivateFromSupertypes.antlrtree.txt b/grammar/testData/diagnostics/override/ProtectedAndPrivateFromSupertypes.antlrtree.txt index 164fd3b4b..b58db472e 100644 --- a/grammar/testData/diagnostics/override/ProtectedAndPrivateFromSupertypes.antlrtree.txt +++ b/grammar/testData/diagnostics/override/ProtectedAndPrivateFromSupertypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: ProtectedAndPrivateFromSupertypes.kt - a00cea881ce32296a6ea76fe1be54ca4 +File: ProtectedAndPrivateFromSupertypes.kt - 3aac7066807dba661c45cbcd8f886f10 + NL("\n") packageHeader PACKAGE("package") identifier @@ -188,6 +189,4 @@ File: ProtectedAndPrivateFromSupertypes.kt - a00cea881ce32296a6ea76fe1be54ca4 Identifier("a") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/ToAbstractMembersFromSuper-kt1996.antlrtree.txt b/grammar/testData/diagnostics/override/ToAbstractMembersFromSuper-kt1996.antlrtree.txt index 36ffca154..6d5fe8c91 100644 --- a/grammar/testData/diagnostics/override/ToAbstractMembersFromSuper-kt1996.antlrtree.txt +++ b/grammar/testData/diagnostics/override/ToAbstractMembersFromSuper-kt1996.antlrtree.txt @@ -1,4 +1,5 @@ -File: ToAbstractMembersFromSuper-kt1996.kt - f326d7588286dcf01aab4b1068ee9ff2 +File: ToAbstractMembersFromSuper-kt1996.kt - 0abb6de8a45b3c4302df06926cfc0dbd + NL("\n") NL("\n") NL("\n") packageHeader @@ -88,6 +89,4 @@ File: ToAbstractMembersFromSuper-kt1996.kt - f326d7588286dcf01aab4b1068ee9ff2 simpleUserType simpleIdentifier Identifier("Bar") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/clashesOnInheritance/covariantOverrides.antlrtree.txt b/grammar/testData/diagnostics/override/clashesOnInheritance/covariantOverrides.antlrtree.txt index d0511765f..9553a7802 100644 --- a/grammar/testData/diagnostics/override/clashesOnInheritance/covariantOverrides.antlrtree.txt +++ b/grammar/testData/diagnostics/override/clashesOnInheritance/covariantOverrides.antlrtree.txt @@ -1,4 +1,5 @@ -File: covariantOverrides.kt - c0f2d4669187a09390ffd912ecd09180 +File: covariantOverrides.kt - 93c3efe68f88685b1cd1eb3cd5885833 + NL("\n") packageHeader importList topLevelObject @@ -492,6 +493,4 @@ File: covariantOverrides.kt - c0f2d4669187a09390ffd912ecd09180 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/clashesOnInheritance/flexibleReturnType.K.antlrtree.txt b/grammar/testData/diagnostics/override/clashesOnInheritance/flexibleReturnType.K.antlrtree.txt index 44c62a437..67412c06d 100644 --- a/grammar/testData/diagnostics/override/clashesOnInheritance/flexibleReturnType.K.antlrtree.txt +++ b/grammar/testData/diagnostics/override/clashesOnInheritance/flexibleReturnType.K.antlrtree.txt @@ -254,6 +254,4 @@ File: flexibleReturnType.K.kt - ad5775742968d414065d6590f90f87e5 simpleUserType simpleIdentifier Identifier("K2") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/clashesOnInheritance/flexibleReturnTypeIn.K.antlrtree.txt b/grammar/testData/diagnostics/override/clashesOnInheritance/flexibleReturnTypeIn.K.antlrtree.txt index 96a8ffe11..12f332f5e 100644 --- a/grammar/testData/diagnostics/override/clashesOnInheritance/flexibleReturnTypeIn.K.antlrtree.txt +++ b/grammar/testData/diagnostics/override/clashesOnInheritance/flexibleReturnTypeIn.K.antlrtree.txt @@ -641,6 +641,4 @@ File: flexibleReturnTypeIn.K.kt - f93f92a14927d091e324c2087d252938 simpleUserType simpleIdentifier Identifier("J3") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/clashesOnInheritance/flexibleReturnTypeList.K.antlrtree.txt b/grammar/testData/diagnostics/override/clashesOnInheritance/flexibleReturnTypeList.K.antlrtree.txt index 94dc0e271..b6a5b5268 100644 --- a/grammar/testData/diagnostics/override/clashesOnInheritance/flexibleReturnTypeList.K.antlrtree.txt +++ b/grammar/testData/diagnostics/override/clashesOnInheritance/flexibleReturnTypeList.K.antlrtree.txt @@ -478,6 +478,4 @@ File: flexibleReturnTypeList.K.kt - 4ec21d1620385bd43ff6282ab15f2f97 simpleUserType simpleIdentifier Identifier("ILS") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/clashesOnInheritance/genericWithUpperBound.K.antlrtree.txt b/grammar/testData/diagnostics/override/clashesOnInheritance/genericWithUpperBound.K.antlrtree.txt index 424e0e6b8..e1d6fa176 100644 --- a/grammar/testData/diagnostics/override/clashesOnInheritance/genericWithUpperBound.K.antlrtree.txt +++ b/grammar/testData/diagnostics/override/clashesOnInheritance/genericWithUpperBound.K.antlrtree.txt @@ -560,6 +560,4 @@ File: genericWithUpperBound.K.kt - d6bfd8550c1593a517426b60f7289eb5 simpleUserType simpleIdentifier Identifier("IFooDerived") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/clashesOnInheritance/kt13355.antlrtree.txt b/grammar/testData/diagnostics/override/clashesOnInheritance/kt13355.antlrtree.txt index 8dd4c1aeb..97f145bd4 100644 --- a/grammar/testData/diagnostics/override/clashesOnInheritance/kt13355.antlrtree.txt +++ b/grammar/testData/diagnostics/override/clashesOnInheritance/kt13355.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt13355.kt - c4a0c9dbcf419d37837f44803bd7df8b +File: kt13355.kt - 2078e76b8a135186efcbee4af16b165e + NL("\n") packageHeader importList topLevelObject @@ -180,6 +181,4 @@ File: kt13355.kt - c4a0c9dbcf419d37837f44803bd7df8b valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/clashesOnInheritance/returnTypeMismatch.antlrtree.txt b/grammar/testData/diagnostics/override/clashesOnInheritance/returnTypeMismatch.antlrtree.txt index f9d270700..ea62596c4 100644 --- a/grammar/testData/diagnostics/override/clashesOnInheritance/returnTypeMismatch.antlrtree.txt +++ b/grammar/testData/diagnostics/override/clashesOnInheritance/returnTypeMismatch.antlrtree.txt @@ -1,4 +1,5 @@ -File: returnTypeMismatch.kt - 122e57a5458a119412679145866ffdc5 +File: returnTypeMismatch.kt - 61e12b353c7d38d3904886196e3ce54c + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/override/clashesOnInheritance/unrelatedInherited.antlrtree.txt b/grammar/testData/diagnostics/override/clashesOnInheritance/unrelatedInherited.antlrtree.txt index e640294d3..577adf33f 100644 --- a/grammar/testData/diagnostics/override/clashesOnInheritance/unrelatedInherited.antlrtree.txt +++ b/grammar/testData/diagnostics/override/clashesOnInheritance/unrelatedInherited.antlrtree.txt @@ -1,4 +1,5 @@ -File: unrelatedInherited.kt - da767ec235f4472aeb65215004cd0fcc +File: unrelatedInherited.kt - 8374a484f822914f7c80270bae8505a1 + NL("\n") packageHeader importList topLevelObject @@ -521,6 +522,4 @@ File: unrelatedInherited.kt - da767ec235f4472aeb65215004cd0fcc simpleIdentifier Identifier("String") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/clashesOnInheritance/valTypeMismatch.antlrtree.txt b/grammar/testData/diagnostics/override/clashesOnInheritance/valTypeMismatch.antlrtree.txt index 143d244ea..11f53fa3b 100644 --- a/grammar/testData/diagnostics/override/clashesOnInheritance/valTypeMismatch.antlrtree.txt +++ b/grammar/testData/diagnostics/override/clashesOnInheritance/valTypeMismatch.antlrtree.txt @@ -1,4 +1,5 @@ -File: valTypeMismatch.kt - b29cdf1feacd8e9a9762132004f57fe2 +File: valTypeMismatch.kt - 84b149bf1d4df46c67caee02ffe300e8 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/override/clashesOnInheritance/varTypeMismatch.antlrtree.txt b/grammar/testData/diagnostics/override/clashesOnInheritance/varTypeMismatch.antlrtree.txt index 54be3c518..2f6907085 100644 --- a/grammar/testData/diagnostics/override/clashesOnInheritance/varTypeMismatch.antlrtree.txt +++ b/grammar/testData/diagnostics/override/clashesOnInheritance/varTypeMismatch.antlrtree.txt @@ -1,4 +1,5 @@ -File: varTypeMismatch.kt - ffc462270c13ec5851e543080c685151 +File: varTypeMismatch.kt - e188f59e137ef8e23f63c0e92631fbfd + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/override/fakeEquals.antlrtree.txt b/grammar/testData/diagnostics/override/fakeEquals.antlrtree.txt index 57b237468..afec052bd 100644 --- a/grammar/testData/diagnostics/override/fakeEquals.antlrtree.txt +++ b/grammar/testData/diagnostics/override/fakeEquals.antlrtree.txt @@ -149,6 +149,4 @@ File: fakeEquals.kt - ee6e6bfc176e5064b753da6d11f01aa8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/kt12358.antlrtree.txt b/grammar/testData/diagnostics/override/kt12358.antlrtree.txt index 130ba5e51..ccf3bb8f6 100644 --- a/grammar/testData/diagnostics/override/kt12358.antlrtree.txt +++ b/grammar/testData/diagnostics/override/kt12358.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt12358.kt - 4b71cb42cb9e0b4cf38b81f0caf3738f +File: kt12358.kt - 8f037df29055285ff3af2737d51f1983 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/override/kt12467.antlrtree.txt b/grammar/testData/diagnostics/override/kt12467.antlrtree.txt index 61e1cab04..83f2f3f65 100644 --- a/grammar/testData/diagnostics/override/kt12467.antlrtree.txt +++ b/grammar/testData/diagnostics/override/kt12467.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt12467.kt - 8293b315b6b6c570966cb2a27111814c +File: kt12467.kt - c8387934fee8875affe3828407ffce23 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/override/kt1862.antlrtree.txt b/grammar/testData/diagnostics/override/kt1862.antlrtree.txt index 4a7dac925..c85722425 100644 --- a/grammar/testData/diagnostics/override/kt1862.antlrtree.txt +++ b/grammar/testData/diagnostics/override/kt1862.antlrtree.txt @@ -174,6 +174,4 @@ File: kt1862.kt - 17d987b3f4c865f762b5b1bf6cae3135 simpleUserType simpleIdentifier Identifier("Ccc") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/kt2052.antlrtree.txt b/grammar/testData/diagnostics/override/kt2052.antlrtree.txt index e073bbe56..e1d81aece 100644 --- a/grammar/testData/diagnostics/override/kt2052.antlrtree.txt +++ b/grammar/testData/diagnostics/override/kt2052.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2052.kt - 6a808c2f6248d4296fffdfcd662d67b1 +File: kt2052.kt - 21f6210b5c38217117a3788068283211 + NL("\n") packageHeader importList topLevelObject @@ -79,6 +80,4 @@ File: kt2052.kt - 6a808c2f6248d4296fffdfcd662d67b1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/kt2491.antlrtree.txt b/grammar/testData/diagnostics/override/kt2491.antlrtree.txt index 928bac4b7..26f037aa5 100644 --- a/grammar/testData/diagnostics/override/kt2491.antlrtree.txt +++ b/grammar/testData/diagnostics/override/kt2491.antlrtree.txt @@ -152,6 +152,4 @@ File: kt2491.kt - 26782fbe309dfa156585afb3d909c9de LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/kt4763.antlrtree.txt b/grammar/testData/diagnostics/override/kt4763.antlrtree.txt index 5cf742171..cae9c7e4b 100644 --- a/grammar/testData/diagnostics/override/kt4763.antlrtree.txt +++ b/grammar/testData/diagnostics/override/kt4763.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt4763.kt - 7be8c673d402dae21374335c95c47051 +File: kt4763.kt - f17b5967527ad825bc2bb8674d85d1aa + NL("\n") packageHeader importList topLevelObject @@ -182,6 +183,4 @@ File: kt4763.kt - 7be8c673d402dae21374335c95c47051 classMemberDeclarations RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/kt4763property.antlrtree.txt b/grammar/testData/diagnostics/override/kt4763property.antlrtree.txt index 0e83afd09..3e4c0b4c5 100644 --- a/grammar/testData/diagnostics/override/kt4763property.antlrtree.txt +++ b/grammar/testData/diagnostics/override/kt4763property.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt4763property.kt - f55754a94d832b94014b8850c8777f7d +File: kt4763property.kt - a878dfcc04ec33f5dd5d0fd37c310f45 + NL("\n") packageHeader importList topLevelObject @@ -167,6 +168,4 @@ File: kt4763property.kt - f55754a94d832b94014b8850c8777f7d classMemberDeclarations RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/kt4785.antlrtree.txt b/grammar/testData/diagnostics/override/kt4785.antlrtree.txt index e3320f14d..489e4266f 100644 --- a/grammar/testData/diagnostics/override/kt4785.antlrtree.txt +++ b/grammar/testData/diagnostics/override/kt4785.antlrtree.txt @@ -149,6 +149,4 @@ File: kt4785.kt - 89c3adf6a72e0befba080247ca0bb72a classMemberDeclarations RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/kt880.antlrtree.txt b/grammar/testData/diagnostics/override/kt880.antlrtree.txt index 241082833..80be2c002 100644 --- a/grammar/testData/diagnostics/override/kt880.antlrtree.txt +++ b/grammar/testData/diagnostics/override/kt880.antlrtree.txt @@ -195,6 +195,4 @@ File: kt880.kt - 441bc78a734e4021a96b8d60a0c769f8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/kt8990.antlrtree.txt b/grammar/testData/diagnostics/override/kt8990.antlrtree.txt index a6bf96ba1..0ef7e5bcf 100644 --- a/grammar/testData/diagnostics/override/kt8990.antlrtree.txt +++ b/grammar/testData/diagnostics/override/kt8990.antlrtree.txt @@ -133,6 +133,4 @@ File: kt8990.kt - f08b53127e2fb86609a8661ddf4f28f7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/overrideMemberFromFinalClass.antlrtree.txt b/grammar/testData/diagnostics/override/overrideMemberFromFinalClass.antlrtree.txt index 6f652e1b2..6c6a03bc9 100644 --- a/grammar/testData/diagnostics/override/overrideMemberFromFinalClass.antlrtree.txt +++ b/grammar/testData/diagnostics/override/overrideMemberFromFinalClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: overrideMemberFromFinalClass.kt - 5783b66e55fd85614aa03051bec1e618 +File: overrideMemberFromFinalClass.kt - c3422a42f4ab9ad0413d633b7e667b0d + NL("\n") packageHeader importList topLevelObject @@ -318,6 +319,4 @@ File: overrideMemberFromFinalClass.kt - 5783b66e55fd85614aa03051bec1e618 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/parameterNames/changeOnOverrideDiagnostic.antlrtree.txt b/grammar/testData/diagnostics/override/parameterNames/changeOnOverrideDiagnostic.antlrtree.txt index 878bbfd72..9e8626c33 100644 --- a/grammar/testData/diagnostics/override/parameterNames/changeOnOverrideDiagnostic.antlrtree.txt +++ b/grammar/testData/diagnostics/override/parameterNames/changeOnOverrideDiagnostic.antlrtree.txt @@ -161,6 +161,4 @@ File: changeOnOverrideDiagnostic.kt - c20bc9a002e3b2cc8f785e5a10551fd2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/parameterNames/differentNamesInSupertypesDiagnostic.antlrtree.txt b/grammar/testData/diagnostics/override/parameterNames/differentNamesInSupertypesDiagnostic.antlrtree.txt index 2c6d9ceaf..7e2e38674 100644 --- a/grammar/testData/diagnostics/override/parameterNames/differentNamesInSupertypesDiagnostic.antlrtree.txt +++ b/grammar/testData/diagnostics/override/parameterNames/differentNamesInSupertypesDiagnostic.antlrtree.txt @@ -199,6 +199,4 @@ File: differentNamesInSupertypesDiagnostic.kt - bbf51746b6bdd89638be78bbecc0b313 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/parameterNames/kotlinInheritsBothJavaAndKotlin.kotlin.antlrtree.txt b/grammar/testData/diagnostics/override/parameterNames/kotlinInheritsBothJavaAndKotlin.kotlin.antlrtree.txt index 6cb76ef1c..a7dcf390a 100644 --- a/grammar/testData/diagnostics/override/parameterNames/kotlinInheritsBothJavaAndKotlin.kotlin.antlrtree.txt +++ b/grammar/testData/diagnostics/override/parameterNames/kotlinInheritsBothJavaAndKotlin.kotlin.antlrtree.txt @@ -67,6 +67,4 @@ File: kotlinInheritsBothJavaAndKotlin.kotlin.kt - cea1c4e8d024f021e6d790c76d4740 simpleUserType simpleIdentifier Identifier("KotlinTrait") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/override/typeParameters/differentSetsOfBounds.antlrtree.txt b/grammar/testData/diagnostics/override/typeParameters/differentSetsOfBounds.antlrtree.txt index cfcce5990..203236eda 100644 --- a/grammar/testData/diagnostics/override/typeParameters/differentSetsOfBounds.antlrtree.txt +++ b/grammar/testData/diagnostics/override/typeParameters/differentSetsOfBounds.antlrtree.txt @@ -1,4 +1,5 @@ -File: differentSetsOfBounds.kt - a9305ba1897e22ccf56f33e110862f55 +File: differentSetsOfBounds.kt - 4ae25f1a96f21163a6775014f59726f9 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/parenthesizedTypes/annotationsOnNullableParenthesizedTypes.antlrtree.txt b/grammar/testData/diagnostics/parenthesizedTypes/annotationsOnNullableParenthesizedTypes.antlrtree.txt index 0d515a16d..9f2e54194 100644 --- a/grammar/testData/diagnostics/parenthesizedTypes/annotationsOnNullableParenthesizedTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/parenthesizedTypes/annotationsOnNullableParenthesizedTypes.antlrtree.txt @@ -565,6 +565,4 @@ File: annotationsOnNullableParenthesizedTypes.kt - 63874f4558900bb610a0634456c96 INTERFACE("interface") simpleIdentifier Identifier("C") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/parenthesizedTypes/annotationsOnParenthesizedTypes.antlrtree.txt b/grammar/testData/diagnostics/parenthesizedTypes/annotationsOnParenthesizedTypes.antlrtree.txt index 25bc40342..c6cb2fb90 100644 --- a/grammar/testData/diagnostics/parenthesizedTypes/annotationsOnParenthesizedTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/parenthesizedTypes/annotationsOnParenthesizedTypes.antlrtree.txt @@ -573,6 +573,4 @@ File: annotationsOnParenthesizedTypes.kt - 5f8328402a2cab70437c0bbecc5433e0 INTERFACE("interface") simpleIdentifier Identifier("C") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/parenthesizedTypes/splitModifierList.antlrtree.txt b/grammar/testData/diagnostics/parenthesizedTypes/splitModifierList.antlrtree.txt index a4ec90c80..03d1450af 100644 --- a/grammar/testData/diagnostics/parenthesizedTypes/splitModifierList.antlrtree.txt +++ b/grammar/testData/diagnostics/parenthesizedTypes/splitModifierList.antlrtree.txt @@ -598,6 +598,4 @@ File: splitModifierList.kt - 76bad0853434de459a2740c2f621ee4f RPAREN(")") quest QUEST_NO_WS("?") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/commonSupertype/collectionOrNull.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/commonSupertype/collectionOrNull.k.antlrtree.txt index 476c608bf..06d98c623 100644 --- a/grammar/testData/diagnostics/platformTypes/commonSupertype/collectionOrNull.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/commonSupertype/collectionOrNull.k.antlrtree.txt @@ -215,6 +215,4 @@ File: collectionOrNull.k.kt - c813f2a053d144d0f9327e0e83bafbad semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/commonSupertype/inferenceWithBound.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/commonSupertype/inferenceWithBound.k.antlrtree.txt index f2e72576e..2a1f7e2ac 100644 --- a/grammar/testData/diagnostics/platformTypes/commonSupertype/inferenceWithBound.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/commonSupertype/inferenceWithBound.k.antlrtree.txt @@ -318,6 +318,4 @@ File: inferenceWithBound.k.kt - 092f16854e0c89af8412dba9387a9d13 EXCL_NO_WS("!") excl EXCL_NO_WS("!") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/commonSupertype/mixedElvis.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/commonSupertype/mixedElvis.antlrtree.txt index 6d4c66ca9..c4a1d5391 100644 --- a/grammar/testData/diagnostics/platformTypes/commonSupertype/mixedElvis.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/commonSupertype/mixedElvis.antlrtree.txt @@ -244,6 +244,4 @@ File: mixedElvis.kt - fe9faf76912fa434885f574a15f0d2dc NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/commonSupertype/mixedIf.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/commonSupertype/mixedIf.k.antlrtree.txt index 3ee02167d..a5323d9b5 100644 --- a/grammar/testData/diagnostics/platformTypes/commonSupertype/mixedIf.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/commonSupertype/mixedIf.k.antlrtree.txt @@ -194,6 +194,4 @@ File: mixedIf.k.kt - 81bbd254da649dbfa16b72973615f6e6 NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/commonSupertype/recursiveGeneric.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/commonSupertype/recursiveGeneric.k.antlrtree.txt index ba1f815c9..49bab00aa 100644 --- a/grammar/testData/diagnostics/platformTypes/commonSupertype/recursiveGeneric.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/commonSupertype/recursiveGeneric.k.antlrtree.txt @@ -202,6 +202,4 @@ File: recursiveGeneric.k.kt - 57c6b44be514f2690f261fa180dde4e9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/commonSupertype/stringOrNull.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/commonSupertype/stringOrNull.k.antlrtree.txt index 82f2891ca..b77d87b36 100644 --- a/grammar/testData/diagnostics/platformTypes/commonSupertype/stringOrNull.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/commonSupertype/stringOrNull.k.antlrtree.txt @@ -215,6 +215,4 @@ File: stringOrNull.k.kt - d469c6e538f0bc1a2925287c680a2999 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/commonSupertype/typeOfElvis.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/commonSupertype/typeOfElvis.k.antlrtree.txt index dd13efd0a..760c3e1e8 100644 --- a/grammar/testData/diagnostics/platformTypes/commonSupertype/typeOfElvis.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/commonSupertype/typeOfElvis.k.antlrtree.txt @@ -189,6 +189,4 @@ File: typeOfElvis.k.kt - e3d3eb075cff74a1ab9303d175242afb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/dereference.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/dereference.k.antlrtree.txt index 5d2a890f8..721eca727 100644 --- a/grammar/testData/diagnostics/platformTypes/dereference.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/dereference.k.antlrtree.txt @@ -425,6 +425,4 @@ File: dereference.k.kt - d3e793ac1c3ec3e755901228ddcf0461 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/genericVarianceViolation/deepTypeHierarchy.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/genericVarianceViolation/deepTypeHierarchy.main.antlrtree.txt new file mode 100644 index 000000000..dc124639f --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/genericVarianceViolation/deepTypeHierarchy.main.antlrtree.txt @@ -0,0 +1,330 @@ +File: deepTypeHierarchy.main.kt - ceede4dd4cb3d50875cb98e2fe6341ea + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("MyList1") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("MyList2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("MyList1") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("MyList3") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A2") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("MyList2") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyList3") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/genericVarianceViolation/inferenceFrom.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/genericVarianceViolation/inferenceFrom.main.antlrtree.txt new file mode 100644 index 000000000..74c86a2fb --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/genericVarianceViolation/inferenceFrom.main.antlrtree.txt @@ -0,0 +1,77 @@ +File: inferenceFrom.main.kt - d9d86fab2bcb105862e7d5f6d44ca72b + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JavaClass") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("add") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ArrayList") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/genericVarianceViolation/javaOutProjection.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/genericVarianceViolation/javaOutProjection.main.antlrtree.txt new file mode 100644 index 000000000..7db45e595 --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/genericVarianceViolation/javaOutProjection.main.antlrtree.txt @@ -0,0 +1,516 @@ +File: javaOutProjection.main.kt - c675280d1d7fc6b60ef2b0cbb8d18365 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/genericVarianceViolation/kotlinOutProjection.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/genericVarianceViolation/kotlinOutProjection.main.antlrtree.txt new file mode 100644 index 000000000..05b7d666b --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/genericVarianceViolation/kotlinOutProjection.main.antlrtree.txt @@ -0,0 +1,608 @@ +File: kotlinOutProjection.main.kt - 3edb0eb9094d8ba0b3899652d2edbbe6 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/genericVarianceViolation/kotlinStarProjection.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/genericVarianceViolation/kotlinStarProjection.main.antlrtree.txt new file mode 100644 index 000000000..003edf31a --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/genericVarianceViolation/kotlinStarProjection.main.antlrtree.txt @@ -0,0 +1,575 @@ +File: kotlinStarProjection.main.kt - 899a050d65aaf941aed80443ac5c1cb2 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableList") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/getParentOfType.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/getParentOfType.k.antlrtree.txt index 06f68df18..bc130d08c 100644 --- a/grammar/testData/diagnostics/platformTypes/getParentOfType.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/getParentOfType.k.antlrtree.txt @@ -227,6 +227,4 @@ File: getParentOfType.k.kt - 8ecb4686be24c5663fc44762ac61a65f EXCL_NO_WS("!") excl EXCL_NO_WS("!") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/inference.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/inference.k.antlrtree.txt index 05cf32f25..a6e448f14 100644 --- a/grammar/testData/diagnostics/platformTypes/inference.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/inference.k.antlrtree.txt @@ -355,6 +355,4 @@ File: inference.k.kt - 0489308f3ad003b4a7c240e06af5e942 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/kt50877.Schematic.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/kt50877.Schematic.antlrtree.txt new file mode 100644 index 000000000..630b76878 --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/kt50877.Schematic.antlrtree.txt @@ -0,0 +1,166 @@ +File: kt50877.Schematic.kt - 43e8e48502d67fc7b2167555a1c565dd + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Schematic") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("name") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("error") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("toString") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("name") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/kt50877.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/kt50877.main.antlrtree.txt new file mode 100644 index 000000000..d4ef8774a --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/kt50877.main.antlrtree.txt @@ -0,0 +1,350 @@ +File: kt50877.main.kt - 1e318830d5f4d25fe494d856be61df29 + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("model") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SortedListModel") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Schematic") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Comparator") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("comparing") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Schematic") + ARROW("->") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("error") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("contains") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText(":") + QUOTE_CLOSE(""") + RPAREN(")") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("thenComparing") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("b1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Schematic") + ARROW("->") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_WS("! ") + RCURL("}") + RPAREN(")") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/methodCall/entrySet.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/methodCall/entrySet.k.antlrtree.txt index 591d4a0d4..93ebbc166 100644 --- a/grammar/testData/diagnostics/platformTypes/methodCall/entrySet.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/methodCall/entrySet.k.antlrtree.txt @@ -226,6 +226,4 @@ File: entrySet.k.kt - bcf316b720047c4de41a21ed8b8c3367 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/methodCall/int.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/methodCall/int.k.antlrtree.txt index 60ba1d786..a7dbc9a83 100644 --- a/grammar/testData/diagnostics/platformTypes/methodCall/int.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/methodCall/int.k.antlrtree.txt @@ -138,6 +138,4 @@ File: int.k.kt - d879a71a448db0e7a2eb29e7933016a1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/methodCall/intArray.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/methodCall/intArray.k.antlrtree.txt index 2efeed238..ed93d2e5b 100644 --- a/grammar/testData/diagnostics/platformTypes/methodCall/intArray.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/methodCall/intArray.k.antlrtree.txt @@ -149,6 +149,4 @@ File: intArray.k.kt - 7d2a2aec1e8abd43867d5b8c97cd38f5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/methodCall/javaCollectionToKotlin.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/methodCall/javaCollectionToKotlin.antlrtree.txt index f7ab492aa..4ddbd97fa 100644 --- a/grammar/testData/diagnostics/platformTypes/methodCall/javaCollectionToKotlin.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/methodCall/javaCollectionToKotlin.antlrtree.txt @@ -128,6 +128,4 @@ File: javaCollectionToKotlin.kt - 0174ec17bcef7852b7d5cf3269d78931 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/methodCall/javaToJava.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/methodCall/javaToJava.k.antlrtree.txt index 47473835c..1742bde54 100644 --- a/grammar/testData/diagnostics/platformTypes/methodCall/javaToJava.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/methodCall/javaToJava.k.antlrtree.txt @@ -189,6 +189,4 @@ File: javaToJava.k.kt - 51ca929eff38543cbf90d4dbbffacbe4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/methodCall/javaToKotlin.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/methodCall/javaToKotlin.k.antlrtree.txt index c70b48a8d..769b2e06a 100644 --- a/grammar/testData/diagnostics/platformTypes/methodCall/javaToKotlin.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/methodCall/javaToKotlin.k.antlrtree.txt @@ -115,6 +115,4 @@ File: javaToKotlin.k.kt - b13826ce0dac4770b39745cf07075d6b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/methodCall/kotlinCollectionToJava.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/methodCall/kotlinCollectionToJava.antlrtree.txt index 8524b29b7..135164809 100644 --- a/grammar/testData/diagnostics/platformTypes/methodCall/kotlinCollectionToJava.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/methodCall/kotlinCollectionToJava.antlrtree.txt @@ -106,6 +106,4 @@ File: kotlinCollectionToJava.kt - 5b0b7f714f808378d82b67b4174176cd semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/methodCall/kt27565.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/methodCall/kt27565.k.antlrtree.txt index 747a1d346..7fc906ee6 100644 --- a/grammar/testData/diagnostics/platformTypes/methodCall/kt27565.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/methodCall/kt27565.k.antlrtree.txt @@ -271,6 +271,4 @@ File: kt27565.k.kt - eb2904a4fe418be209b11ede44750b7d LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/methodCall/list.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/methodCall/list.k.antlrtree.txt index e3f42eaa4..f47098327 100644 --- a/grammar/testData/diagnostics/platformTypes/methodCall/list.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/methodCall/list.k.antlrtree.txt @@ -1,4 +1,4 @@ -File: list.k.kt - 97c848f409e47adc0d5242795748bcfc +File: list.k.kt - 863e682d232ca5ba1048e304243d78ad packageHeader importList importHeader @@ -347,5 +347,5 @@ File: list.k.kt - 97c848f409e47adc0d5242795748bcfc NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/methodCall/multipleExactBounds.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/methodCall/multipleExactBounds.antlrtree.txt index 607717273..5d4934c2b 100644 --- a/grammar/testData/diagnostics/platformTypes/methodCall/multipleExactBounds.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/methodCall/multipleExactBounds.antlrtree.txt @@ -1,4 +1,5 @@ -File: multipleExactBounds.kt - 3098b59b3d461f051f6a103b50973c76 +File: multipleExactBounds.kt - 926f3961e6cb1020dca78d0025896816 + NL("\n") packageHeader importList importHeader @@ -412,4 +413,5 @@ File: multipleExactBounds.kt - 3098b59b3d461f051f6a103b50973c76 NL("\n") NL("\n") NL("\n") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/methodCall/multipleExactBoundsNullable.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/methodCall/multipleExactBoundsNullable.main.antlrtree.txt index 0190f8c8e..7f9cc3411 100644 --- a/grammar/testData/diagnostics/platformTypes/methodCall/multipleExactBoundsNullable.main.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/methodCall/multipleExactBoundsNullable.main.antlrtree.txt @@ -1,4 +1,4 @@ -File: multipleExactBoundsNullable.main.kt - aee37ca1612b74a54990915b34e9e0c2 +File: multipleExactBoundsNullable.main.kt - ecd3962521e3bde36e9db29379c89e2d packageHeader importList topLevelObject @@ -539,4 +539,5 @@ File: multipleExactBoundsNullable.main.kt - aee37ca1612b74a54990915b34e9e0c2 NL("\n") NL("\n") NL("\n") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/methodCall/objectArray.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/methodCall/objectArray.k.antlrtree.txt index c9fda8f96..c58efb36c 100644 --- a/grammar/testData/diagnostics/platformTypes/methodCall/objectArray.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/methodCall/objectArray.k.antlrtree.txt @@ -318,6 +318,4 @@ File: objectArray.k.kt - d03553a2dc1efb4e70c5984f3a20cddb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/methodCall/sam.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/methodCall/sam.k.antlrtree.txt index 5d3804b33..391adbe1c 100644 --- a/grammar/testData/diagnostics/platformTypes/methodCall/sam.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/methodCall/sam.k.antlrtree.txt @@ -82,6 +82,4 @@ File: sam.k.kt - 29b8b0705594528cae0aec38e04298be semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/methodCall/singleton.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/methodCall/singleton.antlrtree.txt index 38c22c052..3297943f4 100644 --- a/grammar/testData/diagnostics/platformTypes/methodCall/singleton.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/methodCall/singleton.antlrtree.txt @@ -1,5 +1,4 @@ -File: singleton.kt - 450ed476e7b29b0be3e7a39f9591a72c - NL("\n") +File: singleton.kt - cc2f238ff6b06fc3cab9d9cc967ac97d NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/platformTypes/methodCall/string.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/methodCall/string.k.antlrtree.txt index 887770803..8571c2991 100644 --- a/grammar/testData/diagnostics/platformTypes/methodCall/string.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/methodCall/string.k.antlrtree.txt @@ -143,6 +143,4 @@ File: string.k.kt - b39345b788f83bd329763cebfa8dc9b6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/assignToVar.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/assignToVar.k.antlrtree.txt index 8052dc383..0ce51c47b 100644 --- a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/assignToVar.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/assignToVar.k.antlrtree.txt @@ -291,6 +291,4 @@ File: assignToVar.k.kt - 21bcb31663fdea87fdbc80d892956575 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/conditions.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/conditions.k.antlrtree.txt index 0ac296a28..83447b764 100644 --- a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/conditions.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/conditions.k.antlrtree.txt @@ -754,6 +754,4 @@ File: conditions.k.kt - 7ffc40b76958491bc21588c10307c01f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/dataFlowInfo.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/dataFlowInfo.k.antlrtree.txt index 071be9a36..44c9e0928 100644 --- a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/dataFlowInfo.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/dataFlowInfo.k.antlrtree.txt @@ -469,6 +469,4 @@ File: dataFlowInfo.k.kt - d283086744cf29459c10659543b4d8ee LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/defaultParameters.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/defaultParameters.k.antlrtree.txt index eef62efca..04cd22f70 100644 --- a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/defaultParameters.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/defaultParameters.k.antlrtree.txt @@ -348,6 +348,4 @@ File: defaultParameters.k.kt - 4f279647e4c5b1c06297b365c34a9319 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/delegatedProperties.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/delegatedProperties.k.antlrtree.txt index 465e18b89..2b2c3608b 100644 --- a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/delegatedProperties.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/delegatedProperties.k.antlrtree.txt @@ -1,4 +1,4 @@ -File: delegatedProperties.k.kt - 7156c8465c8d3d85dbd9e3fcd20cab76 +File: delegatedProperties.k.kt - 0ca62c40804b33f7ca5a3c724ff68dfe packageHeader importList topLevelObject @@ -102,6 +102,5 @@ File: delegatedProperties.k.kt - 7156c8465c8d3d85dbd9e3fcd20cab76 DOT(".") simpleIdentifier Identifier("staticJ") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/delegation.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/delegation.k.antlrtree.txt index a5a194d41..d1739e81e 100644 --- a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/delegation.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/delegation.k.antlrtree.txt @@ -155,6 +155,4 @@ File: delegation.k.kt - 42b7fe6347581c91d9be477c8d567bc2 DOT(".") simpleIdentifier Identifier("staticJ") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/functionArguments.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/functionArguments.k.antlrtree.txt index 952939b39..2afd189b9 100644 --- a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/functionArguments.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/functionArguments.k.antlrtree.txt @@ -381,6 +381,4 @@ File: functionArguments.k.kt - 58a8a4fa9c1d7e77519a8f8177010c80 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/invoke.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/invoke.k.antlrtree.txt index e0b22beed..49d6d97bf 100644 --- a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/invoke.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/invoke.k.antlrtree.txt @@ -112,6 +112,4 @@ File: invoke.k.kt - cd935d77867acfd3795608a2faf41f76 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/kt6829.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/kt6829.k.antlrtree.txt index 5fd7bc009..20424db04 100644 --- a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/kt6829.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/kt6829.k.antlrtree.txt @@ -272,6 +272,4 @@ File: kt6829.k.kt - 67de8bf9d7a76eae3990285f692a9965 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/multiDeclaration.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/multiDeclaration.k.antlrtree.txt index 5db16d6c5..982910f38 100644 --- a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/multiDeclaration.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/multiDeclaration.k.antlrtree.txt @@ -226,6 +226,4 @@ File: multiDeclaration.k.kt - fb8181b1a5ecb15ebe55de9bf45c0005 Identifier("platformJ") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/noWarningOnDoubleElvis.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/noWarningOnDoubleElvis.antlrtree.txt index 76e83139a..ff30124ce 100644 --- a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/noWarningOnDoubleElvis.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/noWarningOnDoubleElvis.antlrtree.txt @@ -184,6 +184,4 @@ File: noWarningOnDoubleElvis.kt - b9556fbc9ba05109f9668f8ee09caf6d LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/notNullAfterSafeCall.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/notNullAfterSafeCall.k.antlrtree.txt index e3783fb5e..3547b1010 100644 --- a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/notNullAfterSafeCall.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/notNullAfterSafeCall.k.antlrtree.txt @@ -135,6 +135,4 @@ File: notNullAfterSafeCall.k.kt - f6424e200d670ef729400e73e29071f7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/notNullAssertionInCall.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/notNullAssertionInCall.k.antlrtree.txt index 73cf67bf1..bd9d7b181 100644 --- a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/notNullAssertionInCall.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/notNullAssertionInCall.k.antlrtree.txt @@ -258,6 +258,4 @@ File: notNullAssertionInCall.k.kt - a656fc71b294946e36781808b83db840 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/passToJava.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/passToJava.k.antlrtree.txt index 8e7fbe59e..6968f0005 100644 --- a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/passToJava.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/passToJava.k.antlrtree.txt @@ -2611,6 +2611,4 @@ File: passToJava.k.kt - 0657efefd19b246d1f501f0fff32bc63 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/throw.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/throw.k.antlrtree.txt index 57fcb142c..454dec6ae 100644 --- a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/throw.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/throw.k.antlrtree.txt @@ -187,6 +187,4 @@ File: throw.k.kt - 627db99649d8f8d165f2326cc4e11d7e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/uselessElvisInCall.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/uselessElvisInCall.k.antlrtree.txt index c7b863db2..29b64dfd7 100644 --- a/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/uselessElvisInCall.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullabilityWarnings/uselessElvisInCall.k.antlrtree.txt @@ -279,6 +279,4 @@ File: uselessElvisInCall.k.kt - 0ff9b41f61a4e97cbd0010f69116ec30 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/nullableTypeArgument.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/nullableTypeArgument.antlrtree.txt index 284d6bb1e..ad914f5a8 100644 --- a/grammar/testData/diagnostics/platformTypes/nullableTypeArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/nullableTypeArgument.antlrtree.txt @@ -1,4 +1,5 @@ -File: nullableTypeArgument.kt - e1784a72fe657c70be6f7ac92421946c +File: nullableTypeArgument.kt - 36c54e213996427f24912111ee8da431 + NL("\n") packageHeader importList importHeader @@ -141,6 +142,4 @@ File: nullableTypeArgument.kt - e1784a72fe657c70be6f7ac92421946c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/dontSubstituteAnotherErasedRecursiveTypeArgumentAndNonRecursive.test.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/dontSubstituteAnotherErasedRecursiveTypeArgumentAndNonRecursive.test.antlrtree.txt new file mode 100644 index 000000000..2df6a1b2f --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/dontSubstituteAnotherErasedRecursiveTypeArgumentAndNonRecursive.test.antlrtree.txt @@ -0,0 +1,109 @@ +File: dontSubstituteAnotherErasedRecursiveTypeArgumentAndNonRecursive.test.kt - a624fe742d5b7c8a815c876126225f0c + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("t") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("X") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("t") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/dontSubstituteAnotherErasedTypeArgumentIfRecursive.test.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/dontSubstituteAnotherErasedTypeArgumentIfRecursive.test.antlrtree.txt new file mode 100644 index 000000000..0677dbd7e --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/dontSubstituteAnotherErasedTypeArgumentIfRecursive.test.antlrtree.txt @@ -0,0 +1,109 @@ +File: dontSubstituteAnotherErasedTypeArgumentIfRecursive.test.kt - a624fe742d5b7c8a815c876126225f0c + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("t") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("X") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("t") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/interdependentTypeParameters.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/interdependentTypeParameters.main.antlrtree.txt new file mode 100644 index 000000000..0af1ae16a --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/interdependentTypeParameters.main.antlrtree.txt @@ -0,0 +1,59 @@ +File: interdependentTypeParameters.main.kt - 561e54668ee6c2c39c3ec03665786890 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/interdependentTypeParametersFromKotlin.Foo.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/interdependentTypeParametersFromKotlin.Foo.antlrtree.txt new file mode 100644 index 000000000..8affdadeb --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/interdependentTypeParametersFromKotlin.Foo.antlrtree.txt @@ -0,0 +1,167 @@ +File: interdependentTypeParametersFromKotlin.Foo.kt - dfa18fa657348c70d7ac8f9d0b69fede + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("P1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P2") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P3") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P4") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("P2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P1") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P3") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P4") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("P3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P1") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P2") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P4") + RANGLE(">") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("P4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P1") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P2") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("P3") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/interdependentTypeParametersFromKotlin.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/interdependentTypeParametersFromKotlin.main.antlrtree.txt new file mode 100644 index 000000000..73b5e5b55 --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/interdependentTypeParametersFromKotlin.main.antlrtree.txt @@ -0,0 +1,59 @@ +File: interdependentTypeParametersFromKotlin.main.kt - 4305738fdea1283f7e2b950486559fbd + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Boo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/intermediateRecursion.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/intermediateRecursion.main.antlrtree.txt new file mode 100644 index 000000000..e560742a1 --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/intermediateRecursion.main.antlrtree.txt @@ -0,0 +1,70 @@ +File: intermediateRecursion.main.kt - c130bf2effb0bc35e7bc8d1f9ec50989 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/kt47459.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/kt47459.main.antlrtree.txt new file mode 100644 index 000000000..f4c3ea276 --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/kt47459.main.antlrtree.txt @@ -0,0 +1,140 @@ +File: kt47459.main.kt - b3d999a7a9aa9ae3fbd47ad3684afea6 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("markerManager") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MarkerManager") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("test") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MarkerManager") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Collection") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("markerManager") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getCollection") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("FOO") + QUOTE_CLOSE(""") + RPAREN(")") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setOnMarkerClickListener") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/rawWithInProjection.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/rawWithInProjection.main.antlrtree.txt index abf4f26fc..25ec66dd9 100644 --- a/grammar/testData/diagnostics/platformTypes/rawTypes/rawWithInProjection.main.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/rawWithInProjection.main.antlrtree.txt @@ -67,6 +67,4 @@ File: rawWithInProjection.main.kt - 4a5b26c9fc28b70b3c98673ae24330b7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/recursiveBound.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/recursiveBound.main.antlrtree.txt index 22af2286f..ba10d170d 100644 --- a/grammar/testData/diagnostics/platformTypes/rawTypes/recursiveBound.main.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/recursiveBound.main.antlrtree.txt @@ -115,6 +115,4 @@ File: recursiveBound.main.kt - 7d471d6ecb4d12b999db8021c0a2bfc0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/saveRawCapabilitiesAfterSubtitution.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/saveRawCapabilitiesAfterSubtitution.main.antlrtree.txt index 7fd63d87d..5c0befdc0 100644 --- a/grammar/testData/diagnostics/platformTypes/rawTypes/saveRawCapabilitiesAfterSubtitution.main.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/saveRawCapabilitiesAfterSubtitution.main.antlrtree.txt @@ -67,6 +67,4 @@ File: saveRawCapabilitiesAfterSubtitution.main.kt - 99ca664e7d0bc9759baa17fc6499 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/substituteAnotherErasedTypeArgument.test.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/substituteAnotherErasedTypeArgument.test.antlrtree.txt new file mode 100644 index 000000000..58ea2af32 --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/substituteAnotherErasedTypeArgument.test.antlrtree.txt @@ -0,0 +1,109 @@ +File: substituteAnotherErasedTypeArgument.test.kt - a624fe742d5b7c8a815c876126225f0c + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("t") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("X") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("t") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/substituteOtherErasedDeepTypeArguments.test.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/substituteOtherErasedDeepTypeArguments.test.antlrtree.txt new file mode 100644 index 000000000..ce5e977ab --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/substituteOtherErasedDeepTypeArguments.test.antlrtree.txt @@ -0,0 +1,109 @@ +File: substituteOtherErasedDeepTypeArguments.test.kt - c4c67133084ce92aeed4635a238d5551 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("t") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("X") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("t") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/substituteSeveralOtherErasedDependentTypeArguments.test.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/substituteSeveralOtherErasedDependentTypeArguments.test.antlrtree.txt new file mode 100644 index 000000000..9f4256f09 --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/substituteSeveralOtherErasedDependentTypeArguments.test.antlrtree.txt @@ -0,0 +1,109 @@ +File: substituteSeveralOtherErasedDependentTypeArguments.test.kt - a624fe742d5b7c8a815c876126225f0c + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("t") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("X") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("t") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/substituteSeveralOtherErasedTypeArguments.test.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/substituteSeveralOtherErasedTypeArguments.test.antlrtree.txt new file mode 100644 index 000000000..e2d33419e --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/substituteSeveralOtherErasedTypeArguments.test.antlrtree.txt @@ -0,0 +1,109 @@ +File: substituteSeveralOtherErasedTypeArguments.test.kt - a624fe742d5b7c8a815c876126225f0c + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("t") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("X") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("t") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("t") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/rawTypes/superTypeErasion.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/rawTypes/superTypeErasion.main.antlrtree.txt new file mode 100644 index 000000000..05305a79f --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/rawTypes/superTypeErasion.main.antlrtree.txt @@ -0,0 +1,51 @@ +File: superTypeErasion.main.kt - 705cea67ad605b808db26095f34b23e1 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/samConstructor.k.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/samConstructor.k.antlrtree.txt index 7e2b06819..ac746db76 100644 --- a/grammar/testData/diagnostics/platformTypes/samConstructor.k.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/samConstructor.k.antlrtree.txt @@ -135,6 +135,4 @@ File: samConstructor.k.kt - c02402ba463f033cba23e7b34b15a7bd semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/starProjectionToFlexibleVariable.main.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/starProjectionToFlexibleVariable.main.antlrtree.txt new file mode 100644 index 000000000..d49a86142 --- /dev/null +++ b/grammar/testData/diagnostics/platformTypes/starProjectionToFlexibleVariable.main.antlrtree.txt @@ -0,0 +1,114 @@ +File: starProjectionToFlexibleVariable.main.kt - aff6e8013e5c193e94b3bdc32674a073 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("unregisterEverything") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("extensionPoint") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ExtensionPointName") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Area") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getExtensionPoint") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("extensionPoint") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/supertypeTypeArguments.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/supertypeTypeArguments.antlrtree.txt index 915b5e156..3116c9cef 100644 --- a/grammar/testData/diagnostics/platformTypes/supertypeTypeArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/supertypeTypeArguments.antlrtree.txt @@ -126,6 +126,4 @@ File: supertypeTypeArguments.kt - 15dbb5ed331cf5767e5982eee2704705 simpleIdentifier Identifier("V") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/platformTypes/typeEnhancement/supertypeDifferentParameterNullability.C.antlrtree.txt b/grammar/testData/diagnostics/platformTypes/typeEnhancement/supertypeDifferentParameterNullability.C.antlrtree.txt index 50e034b3a..294e498b7 100644 --- a/grammar/testData/diagnostics/platformTypes/typeEnhancement/supertypeDifferentParameterNullability.C.antlrtree.txt +++ b/grammar/testData/diagnostics/platformTypes/typeEnhancement/supertypeDifferentParameterNullability.C.antlrtree.txt @@ -254,6 +254,4 @@ File: supertypeDifferentParameterNullability.C.kt - c1a068362c0004bae49610033dab semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/privateInFile/kt12429.antlrtree.txt b/grammar/testData/diagnostics/privateInFile/kt12429.antlrtree.txt index e6c66befb..2cd6d7517 100644 --- a/grammar/testData/diagnostics/privateInFile/kt12429.antlrtree.txt +++ b/grammar/testData/diagnostics/privateInFile/kt12429.antlrtree.txt @@ -89,6 +89,4 @@ File: kt12429.kt - 9dcc78ffb6e32bc2c9e96bd2c25d7930 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/properDefaultInitializationInTailrec.antlrtree.txt b/grammar/testData/diagnostics/properDefaultInitializationInTailrec.antlrtree.txt index f16b023b6..3884e3f73 100644 --- a/grammar/testData/diagnostics/properDefaultInitializationInTailrec.antlrtree.txt +++ b/grammar/testData/diagnostics/properDefaultInitializationInTailrec.antlrtree.txt @@ -1544,6 +1544,4 @@ File: properDefaultInitializationInTailrec.kt - ff6d906ce8826481a79132f68f35ef3f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/properties/abstarctPropertyInPrimaryConstructor.antlrtree.txt b/grammar/testData/diagnostics/properties/abstarctPropertyInPrimaryConstructor.antlrtree.txt new file mode 100644 index 000000000..16202f2fe --- /dev/null +++ b/grammar/testData/diagnostics/properties/abstarctPropertyInPrimaryConstructor.antlrtree.txt @@ -0,0 +1,58 @@ +File: abstarctPropertyInPrimaryConstructor.kt - 242692069bd24d6e044b3dd647f18dd1 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/properties/backingField/trivialExplicitBackingFIeld.antlrtree.txt b/grammar/testData/diagnostics/properties/backingField/trivialExplicitBackingFIeld.antlrtree.txt new file mode 100644 index 000000000..e3191e6bb --- /dev/null +++ b/grammar/testData/diagnostics/properties/backingField/trivialExplicitBackingFIeld.antlrtree.txt @@ -0,0 +1,34 @@ +File: trivialExplicitBackingFIeld.kt - 3314a90f6ae22d052c6c9bcde3758667 (WITH_ERRORS) + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + LCURL("{") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("number") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + semis + NL("\n") + FIELD("field") + ASSIGNMENT("=") + IntegerLiteral("1") + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/properties/extensionPropertyMustHaveAccessorsOrBeAbstract.antlrtree.txt b/grammar/testData/diagnostics/properties/extensionPropertyMustHaveAccessorsOrBeAbstract.antlrtree.txt index bb29f4d7f..b43bc964d 100644 --- a/grammar/testData/diagnostics/properties/extensionPropertyMustHaveAccessorsOrBeAbstract.antlrtree.txt +++ b/grammar/testData/diagnostics/properties/extensionPropertyMustHaveAccessorsOrBeAbstract.antlrtree.txt @@ -400,6 +400,4 @@ File: extensionPropertyMustHaveAccessorsOrBeAbstract.kt - 520e0098aa6d098883d3b8 Identifier("Int") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/properties/inferenceFromGetters/cantBeInferred.antlrtree.txt b/grammar/testData/diagnostics/properties/inferenceFromGetters/cantBeInferred.antlrtree.txt index 4db1ef75b..325be4111 100644 --- a/grammar/testData/diagnostics/properties/inferenceFromGetters/cantBeInferred.antlrtree.txt +++ b/grammar/testData/diagnostics/properties/inferenceFromGetters/cantBeInferred.antlrtree.txt @@ -1,4 +1,4 @@ -File: cantBeInferred.kt - 2b5df767c7d8a199507dcb22fe4f0083 +File: cantBeInferred.kt - 3d24b79e0fb79e4dfdb14f0ca1501384 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/properties/inferenceFromGetters/members.antlrtree.txt b/grammar/testData/diagnostics/properties/inferenceFromGetters/members.antlrtree.txt index fec0bfddc..e7da46096 100644 --- a/grammar/testData/diagnostics/properties/inferenceFromGetters/members.antlrtree.txt +++ b/grammar/testData/diagnostics/properties/inferenceFromGetters/members.antlrtree.txt @@ -1,4 +1,5 @@ -File: members.kt - 06534bb58e3e48d495d334299b268ccc +File: members.kt - d3ccbfd4135c55b4ef55d2a9e578625f + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/properties/inferenceFromGetters/nullAsNothing.antlrtree.txt b/grammar/testData/diagnostics/properties/inferenceFromGetters/nullAsNothing.antlrtree.txt index 5a2bc0016..6be8e9fc2 100644 --- a/grammar/testData/diagnostics/properties/inferenceFromGetters/nullAsNothing.antlrtree.txt +++ b/grammar/testData/diagnostics/properties/inferenceFromGetters/nullAsNothing.antlrtree.txt @@ -1,5 +1,4 @@ -File: nullAsNothing.kt - 546e93a2466d0793b64439d41068474b - NL("\n") +File: nullAsNothing.kt - 2107a4d804be4d085bd5e675193b508f NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/properties/inferenceFromGetters/objectExpression.antlrtree.txt b/grammar/testData/diagnostics/properties/inferenceFromGetters/objectExpression.antlrtree.txt index f59340ee2..13165a79d 100644 --- a/grammar/testData/diagnostics/properties/inferenceFromGetters/objectExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/properties/inferenceFromGetters/objectExpression.antlrtree.txt @@ -1,5 +1,4 @@ -File: objectExpression.kt - 7fbd4eab0c648f0d3bf129cdb9073243 - NL("\n") +File: objectExpression.kt - 9d77b40ea4ea56de1d0677557b908b77 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/properties/inferenceFromGetters/primaryConstructorParameter.antlrtree.txt b/grammar/testData/diagnostics/properties/inferenceFromGetters/primaryConstructorParameter.antlrtree.txt index 1838f7ff9..81cf9fd46 100644 --- a/grammar/testData/diagnostics/properties/inferenceFromGetters/primaryConstructorParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/properties/inferenceFromGetters/primaryConstructorParameter.antlrtree.txt @@ -491,6 +491,4 @@ File: primaryConstructorParameter.kt - 768a49fb8a85af0b6eee1514aa53a26d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/properties/inferenceFromGetters/recursiveGetter.antlrtree.txt b/grammar/testData/diagnostics/properties/inferenceFromGetters/recursiveGetter.antlrtree.txt index d85492b0b..b8e7802f4 100644 --- a/grammar/testData/diagnostics/properties/inferenceFromGetters/recursiveGetter.antlrtree.txt +++ b/grammar/testData/diagnostics/properties/inferenceFromGetters/recursiveGetter.antlrtree.txt @@ -1,5 +1,4 @@ -File: recursiveGetter.kt - 6e090b09c54bfb678530aa9c6f03565a - NL("\n") +File: recursiveGetter.kt - a6cf43218cbe6db69f8801373699d182 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/properties/inferenceFromGetters/topLevel.antlrtree.txt b/grammar/testData/diagnostics/properties/inferenceFromGetters/topLevel.antlrtree.txt index c886a15a6..0454bf898 100644 --- a/grammar/testData/diagnostics/properties/inferenceFromGetters/topLevel.antlrtree.txt +++ b/grammar/testData/diagnostics/properties/inferenceFromGetters/topLevel.antlrtree.txt @@ -1,4 +1,5 @@ -File: topLevel.kt - eb3b14437dc4134ffeb908b372cebe17 +File: topLevel.kt - 0b9c648b30772d9ce802a698dffed164 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/properties/lateinitOnTopLevel.antlrtree.txt b/grammar/testData/diagnostics/properties/lateinitOnTopLevel.antlrtree.txt index 5df2c2179..87593b593 100644 --- a/grammar/testData/diagnostics/properties/lateinitOnTopLevel.antlrtree.txt +++ b/grammar/testData/diagnostics/properties/lateinitOnTopLevel.antlrtree.txt @@ -298,6 +298,4 @@ File: lateinitOnTopLevel.kt - 3f5fd4b645dd0bb75279b828f43b3514 simpleIdentifier Identifier("Delegate") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/properties/protectedGetterWithPublicSetter.k_test.antlrtree.txt b/grammar/testData/diagnostics/properties/protectedGetterWithPublicSetter.k_test.antlrtree.txt new file mode 100644 index 000000000..113f2eff6 --- /dev/null +++ b/grammar/testData/diagnostics/properties/protectedGetterWithPublicSetter.k_test.antlrtree.txt @@ -0,0 +1,483 @@ +File: protectedGetterWithPublicSetter.k_test.kt - de8b2c57d9f1196d4735da4b4b4a525a + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("k") + semi + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("j") + DOT(".") + simpleIdentifier + Identifier("Super") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Sub") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Super") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Super") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getName") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setName") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Super") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getName") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("setName") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/protectedWithGenericsInDifferentPackage.bar_Sub.antlrtree.txt b/grammar/testData/diagnostics/protectedWithGenericsInDifferentPackage.bar_Sub.antlrtree.txt new file mode 100644 index 000000000..10434ffc4 --- /dev/null +++ b/grammar/testData/diagnostics/protectedWithGenericsInDifferentPackage.bar_Sub.antlrtree.txt @@ -0,0 +1,133 @@ +File: protectedWithGenericsInDifferentPackage.bar_Sub.kt - ca33a913e1ac0621c95606bf6d67e221 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("bar") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Sub") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("foo") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Super") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getName") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("setName") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("doSomething") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/protectedWithGenericsInDifferentPackage.foo_test.antlrtree.txt b/grammar/testData/diagnostics/protectedWithGenericsInDifferentPackage.foo_test.antlrtree.txt new file mode 100644 index 000000000..115b197b3 --- /dev/null +++ b/grammar/testData/diagnostics/protectedWithGenericsInDifferentPackage.foo_test.antlrtree.txt @@ -0,0 +1,478 @@ +File: protectedWithGenericsInDifferentPackage.foo_test.kt - 23a804dcfba502199f4c23be53125d20 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("foo") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("bar") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Sub") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name2") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("doSomething") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("doSomething2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Super") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s2") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name2") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s2") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("doSomething") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("doSomething2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/publishedApi.antlrtree.txt b/grammar/testData/diagnostics/publishedApi.antlrtree.txt index 6e2ee9c5f..63148f1c5 100644 --- a/grammar/testData/diagnostics/publishedApi.antlrtree.txt +++ b/grammar/testData/diagnostics/publishedApi.antlrtree.txt @@ -1,4 +1,5 @@ -File: publishedApi.kt - 715fbe7a6fc7bf00aa33e84d90b5a2c2 +File: publishedApi.kt - 04f216edc8ef615878dd9cb4656772d2 + NL("\n") packageHeader importList topLevelObject @@ -818,4 +819,73 @@ File: publishedApi.kt - 715fbe7a6fc7bf00aa33e84d90b5a2c2 RCURL("}") semis NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("InConstructor") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("PublishedApi") + VAL("val") + simpleIdentifier + Identifier("extensionPoint") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("FalsePositiveInConstructor") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("PublishedApi") + modifier + visibilityModifier + INTERNAL("internal") + VAL("val") + simpleIdentifier + Identifier("extensionPoint") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/qualifiedExpression/GenericClassVsPackage.top_c.antlrtree.txt b/grammar/testData/diagnostics/qualifiedExpression/GenericClassVsPackage.top_c.antlrtree.txt index 0d4c8bfd2..fb1cb1a9d 100644 --- a/grammar/testData/diagnostics/qualifiedExpression/GenericClassVsPackage.top_c.antlrtree.txt +++ b/grammar/testData/diagnostics/qualifiedExpression/GenericClassVsPackage.top_c.antlrtree.txt @@ -322,6 +322,4 @@ File: GenericClassVsPackage.top_c.kt - 11722bc222b74b28c3f0c37c5eace4ad semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/qualifiedExpression/JavaQualifier.Use.antlrtree.txt b/grammar/testData/diagnostics/qualifiedExpression/JavaQualifier.Use.antlrtree.txt index ab268b681..e7c745720 100644 --- a/grammar/testData/diagnostics/qualifiedExpression/JavaQualifier.Use.antlrtree.txt +++ b/grammar/testData/diagnostics/qualifiedExpression/JavaQualifier.Use.antlrtree.txt @@ -34,6 +34,4 @@ File: JavaQualifier.Use.kt - ed498c1a270cfd75db50b1e60455e773 simpleIdentifier Identifier("name") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/qualifiedExpression/PackageVsClass._c.antlrtree.txt b/grammar/testData/diagnostics/qualifiedExpression/PackageVsClass._c.antlrtree.txt index 3b96761d6..777465dde 100644 --- a/grammar/testData/diagnostics/qualifiedExpression/PackageVsClass._c.antlrtree.txt +++ b/grammar/testData/diagnostics/qualifiedExpression/PackageVsClass._c.antlrtree.txt @@ -367,6 +367,4 @@ File: PackageVsClass._c.kt - f18ce9facaab8c8fe03274d167c1c711 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/qualifiedExpression/PackageVsClass2.b.antlrtree.txt b/grammar/testData/diagnostics/qualifiedExpression/PackageVsClass2.b.antlrtree.txt index 580ff75db..5a9942f6a 100644 --- a/grammar/testData/diagnostics/qualifiedExpression/PackageVsClass2.b.antlrtree.txt +++ b/grammar/testData/diagnostics/qualifiedExpression/PackageVsClass2.b.antlrtree.txt @@ -57,6 +57,4 @@ File: PackageVsClass2.b.kt - f7ae19284827650f5f701fd0e1091229 NL("\n") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/qualifiedExpression/PackageVsRootClass.c3.antlrtree.txt b/grammar/testData/diagnostics/qualifiedExpression/PackageVsRootClass.c3.antlrtree.txt index 714fc7b4a..f684a2711 100644 --- a/grammar/testData/diagnostics/qualifiedExpression/PackageVsRootClass.c3.antlrtree.txt +++ b/grammar/testData/diagnostics/qualifiedExpression/PackageVsRootClass.c3.antlrtree.txt @@ -135,6 +135,4 @@ File: PackageVsRootClass.c3.kt - be82170b6c861f7a53ad96f15d5bcdee semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/qualifiedExpression/TypeWithError.antlrtree.txt b/grammar/testData/diagnostics/qualifiedExpression/TypeWithError.antlrtree.txt index 1f7fa10d3..011032ea1 100644 --- a/grammar/testData/diagnostics/qualifiedExpression/TypeWithError.antlrtree.txt +++ b/grammar/testData/diagnostics/qualifiedExpression/TypeWithError.antlrtree.txt @@ -1,5 +1,4 @@ -File: TypeWithError.kt - 768b242835c18fe82f6f5831d8ebc71f (WITH_ERRORS) - NL("\n") +File: TypeWithError.kt - 1d1cb3fc440715175d5a6b64840d6d1c (WITH_ERRORS) NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/qualifiedExpression/calleeExpressionAsCallExpression.antlrtree.txt b/grammar/testData/diagnostics/qualifiedExpression/calleeExpressionAsCallExpression.antlrtree.txt index 639a529ba..6ac40ec6f 100644 --- a/grammar/testData/diagnostics/qualifiedExpression/calleeExpressionAsCallExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/qualifiedExpression/calleeExpressionAsCallExpression.antlrtree.txt @@ -1,5 +1,4 @@ -File: calleeExpressionAsCallExpression.kt - ef92e11abe25ac65efa9d22908b23d07 - NL("\n") +File: calleeExpressionAsCallExpression.kt - 09a3829f09daa55a968c795803766459 packageHeader importList topLevelObject @@ -75,6 +74,4 @@ File: calleeExpressionAsCallExpression.kt - ef92e11abe25ac65efa9d22908b23d07 simpleIdentifier Identifier("unwrap") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/qualifiedExpression/nullCalleeExpression.antlrtree.txt b/grammar/testData/diagnostics/qualifiedExpression/nullCalleeExpression.antlrtree.txt index eb97e39c9..62d4c6d41 100644 --- a/grammar/testData/diagnostics/qualifiedExpression/nullCalleeExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/qualifiedExpression/nullCalleeExpression.antlrtree.txt @@ -1,5 +1,4 @@ -File: nullCalleeExpression.kt - e2b0d58ef75f31db901ddb6661318ab2 (WITH_ERRORS) - NL("\n") +File: nullCalleeExpression.kt - 8cbc6ff83a8850c242981ef5a3eed2eb (WITH_ERRORS) NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/qualifiedExpression/variableVsImportedClassifier.main.antlrtree.txt b/grammar/testData/diagnostics/qualifiedExpression/variableVsImportedClassifier.main.antlrtree.txt new file mode 100644 index 000000000..b820e2bbd --- /dev/null +++ b/grammar/testData/diagnostics/qualifiedExpression/variableVsImportedClassifier.main.antlrtree.txt @@ -0,0 +1,180 @@ +File: variableVsImportedClassifier.main.kt - 286390018242cc9a391efa87886e8009 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("main1") + semi + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("W") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("W") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("W") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("W") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("W") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("W") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("W") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/qualifiedExpression/variableVsImportedClassifier.main2.antlrtree.txt b/grammar/testData/diagnostics/qualifiedExpression/variableVsImportedClassifier.main2.antlrtree.txt new file mode 100644 index 000000000..13e48ccc1 --- /dev/null +++ b/grammar/testData/diagnostics/qualifiedExpression/variableVsImportedClassifier.main2.antlrtree.txt @@ -0,0 +1,139 @@ +File: variableVsImportedClassifier.main2.kt - c589c57f6e0d6baf1021c1e0041770a7 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("main2") + semi + NL("\n") + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("W") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("W") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("W") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("W") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/qualifiedExpression/visibleClassVsQualifiedClass.c3.antlrtree.txt b/grammar/testData/diagnostics/qualifiedExpression/visibleClassVsQualifiedClass.c3.antlrtree.txt index 66ad7b79a..5188b1e01 100644 --- a/grammar/testData/diagnostics/qualifiedExpression/visibleClassVsQualifiedClass.c3.antlrtree.txt +++ b/grammar/testData/diagnostics/qualifiedExpression/visibleClassVsQualifiedClass.c3.antlrtree.txt @@ -142,6 +142,4 @@ File: visibleClassVsQualifiedClass.c3.kt - 5344bf3e0b310b2b35061a5ad67249f4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/reassignment/afterfor.antlrtree.txt b/grammar/testData/diagnostics/reassignment/afterfor.antlrtree.txt index bd1cb11f2..77c551c26 100644 --- a/grammar/testData/diagnostics/reassignment/afterfor.antlrtree.txt +++ b/grammar/testData/diagnostics/reassignment/afterfor.antlrtree.txt @@ -188,6 +188,4 @@ File: afterfor.kt - d7a79319111047e6ff00ca5d0e9c71c3 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/reassignment/dowhile.antlrtree.txt b/grammar/testData/diagnostics/reassignment/dowhile.antlrtree.txt index 6ffda9108..2a00086a3 100644 --- a/grammar/testData/diagnostics/reassignment/dowhile.antlrtree.txt +++ b/grammar/testData/diagnostics/reassignment/dowhile.antlrtree.txt @@ -186,6 +186,4 @@ File: dowhile.kt - 9fc64fe67eaaf4925a125d2903eb5ba6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/reassignment/else.antlrtree.txt b/grammar/testData/diagnostics/reassignment/else.antlrtree.txt index 65269ae11..ec5e2fc60 100644 --- a/grammar/testData/diagnostics/reassignment/else.antlrtree.txt +++ b/grammar/testData/diagnostics/reassignment/else.antlrtree.txt @@ -198,6 +198,4 @@ File: else.kt - 54582ef790440d544823ad0adbd55d0d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/reassignment/foronly.antlrtree.txt b/grammar/testData/diagnostics/reassignment/foronly.antlrtree.txt index 05032c84e..7b10cbb49 100644 --- a/grammar/testData/diagnostics/reassignment/foronly.antlrtree.txt +++ b/grammar/testData/diagnostics/reassignment/foronly.antlrtree.txt @@ -163,6 +163,4 @@ File: foronly.kt - c2e7f06ab44ce4acc9e86d3f78958538 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/reassignment/if.antlrtree.txt b/grammar/testData/diagnostics/reassignment/if.antlrtree.txt index f77cfd214..7cfd32cdc 100644 --- a/grammar/testData/diagnostics/reassignment/if.antlrtree.txt +++ b/grammar/testData/diagnostics/reassignment/if.antlrtree.txt @@ -191,6 +191,4 @@ File: if.kt - 5fca823cdf03c577911205033991cf90 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/reassignment/ifelse.antlrtree.txt b/grammar/testData/diagnostics/reassignment/ifelse.antlrtree.txt index aa832e563..da04adedd 100644 --- a/grammar/testData/diagnostics/reassignment/ifelse.antlrtree.txt +++ b/grammar/testData/diagnostics/reassignment/ifelse.antlrtree.txt @@ -225,6 +225,4 @@ File: ifelse.kt - 9c4269da7b939538703d00fa70405f15 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/reassignment/noifelse.antlrtree.txt b/grammar/testData/diagnostics/reassignment/noifelse.antlrtree.txt index 88ac844c3..9242b3a67 100644 --- a/grammar/testData/diagnostics/reassignment/noifelse.antlrtree.txt +++ b/grammar/testData/diagnostics/reassignment/noifelse.antlrtree.txt @@ -162,6 +162,4 @@ File: noifelse.kt - e5dddc228dc8fc532f49f2a3f9539d6a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/reassignment/when.antlrtree.txt b/grammar/testData/diagnostics/reassignment/when.antlrtree.txt index ea302644f..145827bbb 100644 --- a/grammar/testData/diagnostics/reassignment/when.antlrtree.txt +++ b/grammar/testData/diagnostics/reassignment/when.antlrtree.txt @@ -1,4 +1,5 @@ -File: when.kt - 106238d8ad25f200e1f53467ae3dbe49 +File: when.kt - 150fe9a698cdfdcf122eefd36b54d7ab + NL("\n") NL("\n") NL("\n") NL("\n") @@ -212,5 +213,5 @@ File: when.kt - 106238d8ad25f200e1f53467ae3dbe49 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/recovery/absentLeftHandSide.antlrtree.txt b/grammar/testData/diagnostics/recovery/absentLeftHandSide.antlrtree.txt index c8ffc271d..b53beb77e 100644 --- a/grammar/testData/diagnostics/recovery/absentLeftHandSide.antlrtree.txt +++ b/grammar/testData/diagnostics/recovery/absentLeftHandSide.antlrtree.txt @@ -1,5 +1,4 @@ -File: absentLeftHandSide.kt - bba2a70055ef61de7a2ffc53787bde21 (WITH_ERRORS) - NL("\n") +File: absentLeftHandSide.kt - 57f633b043243c13bf21454f61159aa4 (WITH_ERRORS) packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/recovery/namelessMembers.antlrtree.txt b/grammar/testData/diagnostics/recovery/namelessMembers.antlrtree.txt index f349911a6..c04a768d9 100644 --- a/grammar/testData/diagnostics/recovery/namelessMembers.antlrtree.txt +++ b/grammar/testData/diagnostics/recovery/namelessMembers.antlrtree.txt @@ -1,4 +1,4 @@ -File: namelessMembers.kt - a30dfdc998d1b893925e4e82707ac376 (WITH_ERRORS) +File: namelessMembers.kt - 7554e70431f588f2f4e8dd92028d707f (WITH_ERRORS) NL("\n") NL("\n") NL("\n") @@ -108,5 +108,5 @@ File: namelessMembers.kt - a30dfdc998d1b893925e4e82707ac376 (WITH_ERRORS) classMemberDeclarations RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/ClassRedeclarationInDifferentFiles.f2.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/ClassRedeclarationInDifferentFiles.f2.antlrtree.txt index 04cdd77d5..ce3d1c5ff 100644 --- a/grammar/testData/diagnostics/redeclarations/ClassRedeclarationInDifferentFiles.f2.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/ClassRedeclarationInDifferentFiles.f2.antlrtree.txt @@ -22,6 +22,4 @@ File: ClassRedeclarationInDifferentFiles.f2.kt - 1d92901da04b3ba521c900a6a50b48f CLASS("class") simpleIdentifier Identifier("F2") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/ConflictingExtensionProperties.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/ConflictingExtensionProperties.antlrtree.txt index 07b2500d5..f47c65a45 100644 --- a/grammar/testData/diagnostics/redeclarations/ConflictingExtensionProperties.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/ConflictingExtensionProperties.antlrtree.txt @@ -1,4 +1,5 @@ -File: ConflictingExtensionProperties.kt - b211226da1247133218fd3e0f892075c +File: ConflictingExtensionProperties.kt - f4b863a5e146d0fa9305d2954b97318f + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/redeclarations/DuplicateParameterNamesInFunctionType.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/DuplicateParameterNamesInFunctionType.antlrtree.txt index ab24f78cf..b5dcdb52c 100644 --- a/grammar/testData/diagnostics/redeclarations/DuplicateParameterNamesInFunctionType.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/DuplicateParameterNamesInFunctionType.antlrtree.txt @@ -236,6 +236,4 @@ File: DuplicateParameterNamesInFunctionType.kt - 6eb24fda69a3cfe08427028e2887ab7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/FunVsCtorInDifferentFiles.test2.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/FunVsCtorInDifferentFiles.test2.antlrtree.txt index cc56fc7fe..dab2bccee 100644 --- a/grammar/testData/diagnostics/redeclarations/FunVsCtorInDifferentFiles.test2.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/FunVsCtorInDifferentFiles.test2.antlrtree.txt @@ -120,6 +120,4 @@ File: FunVsCtorInDifferentFiles.test2.kt - 2a2e517a6a1d4f627cc2dbdd8f919707 primaryExpression simpleIdentifier Identifier("y") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/NoRedeclarationForClassesInDefaultObject.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/NoRedeclarationForClassesInDefaultObject.antlrtree.txt index 40f6aefba..f88f26d3b 100644 --- a/grammar/testData/diagnostics/redeclarations/NoRedeclarationForClassesInDefaultObject.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/NoRedeclarationForClassesInDefaultObject.antlrtree.txt @@ -59,6 +59,4 @@ File: NoRedeclarationForClassesInDefaultObject.kt - afd29057d1d00a023ec2902673f7 NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/NoRedeclarationForEnumEntriesAndDefaultObjectMembers.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/NoRedeclarationForEnumEntriesAndDefaultObjectMembers.antlrtree.txt index 63e464be4..c9de3fca9 100644 --- a/grammar/testData/diagnostics/redeclarations/NoRedeclarationForEnumEntriesAndDefaultObjectMembers.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/NoRedeclarationForEnumEntriesAndDefaultObjectMembers.antlrtree.txt @@ -76,6 +76,4 @@ File: NoRedeclarationForEnumEntriesAndDefaultObjectMembers.kt - 482b8eef9b27b54e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/PropertyAndInnerClass.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/PropertyAndInnerClass.antlrtree.txt index 427117516..f5b19dd02 100644 --- a/grammar/testData/diagnostics/redeclarations/PropertyAndInnerClass.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/PropertyAndInnerClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: PropertyAndInnerClass.kt - 2250cb414b288bde4f7743e2b841890f +File: PropertyAndInnerClass.kt - 690ade9b9eb9047d6d29e73e5dee7226 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/redeclarations/RedeclarationInDefaultObject.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/RedeclarationInDefaultObject.antlrtree.txt index 37a5c1186..db15ccb41 100644 --- a/grammar/testData/diagnostics/redeclarations/RedeclarationInDefaultObject.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/RedeclarationInDefaultObject.antlrtree.txt @@ -1,4 +1,5 @@ -File: RedeclarationInDefaultObject.kt - 562235117f6c27eb1a956b4ce16d9975 +File: RedeclarationInDefaultObject.kt - e8e6476204bd32dd332a1a4c7e3819a6 + NL("\n") packageHeader importList topLevelObject @@ -60,6 +61,4 @@ File: RedeclarationInDefaultObject.kt - 562235117f6c27eb1a956b4ce16d9975 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/RedeclarationMainInFile.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/RedeclarationMainInFile.antlrtree.txt index 2a972a6ca..b0ae357a3 100644 --- a/grammar/testData/diagnostics/redeclarations/RedeclarationMainInFile.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/RedeclarationMainInFile.antlrtree.txt @@ -77,6 +77,4 @@ File: RedeclarationMainInFile.kt - a4be6eacb25e2abfeb6668712ff4f769 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/RedeclarationMainInMultiFile.b.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/RedeclarationMainInMultiFile.b.antlrtree.txt index 3e4440dfc..3d0ece330 100644 --- a/grammar/testData/diagnostics/redeclarations/RedeclarationMainInMultiFile.b.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/RedeclarationMainInMultiFile.b.antlrtree.txt @@ -15,6 +15,4 @@ File: RedeclarationMainInMultiFile.b.kt - 9d067a8ae387279932d5ddfd3e25bcbd LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/Redeclarations.a.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/Redeclarations.a.antlrtree.txt index 1b241e40d..0a8a617dc 100644 --- a/grammar/testData/diagnostics/redeclarations/Redeclarations.a.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/Redeclarations.a.antlrtree.txt @@ -124,6 +124,4 @@ File: Redeclarations.a.kt - aa0f894a08d369d7c04d0013bacc7548 IntegerLiteral("1") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/RedeclarationsInObjects.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/RedeclarationsInObjects.antlrtree.txt index 7b168f23d..1f333060f 100644 --- a/grammar/testData/diagnostics/redeclarations/RedeclarationsInObjects.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/RedeclarationsInObjects.antlrtree.txt @@ -1,4 +1,5 @@ -File: RedeclarationsInObjects.kt - 9ad13112c34aad3fe8c39eba625aae7a +File: RedeclarationsInObjects.kt - 3967d886d959a65b2cf9f459967ede46 + NL("\n") NL("\n") NL("\n") packageHeader @@ -99,6 +100,4 @@ File: RedeclarationsInObjects.kt - 9ad13112c34aad3fe8c39eba625aae7a IntegerLiteral("1") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/RedeclaredTypeParameters.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/RedeclaredTypeParameters.antlrtree.txt index 9e7ef2059..79007b1fc 100644 --- a/grammar/testData/diagnostics/redeclarations/RedeclaredTypeParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/RedeclaredTypeParameters.antlrtree.txt @@ -107,6 +107,4 @@ File: RedeclaredTypeParameters.kt - a479a1419b9403faa77fca0b5bf0366b primaryExpression literalConstant IntegerLiteral("1") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/RedeclaredValueParameters.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/RedeclaredValueParameters.antlrtree.txt new file mode 100644 index 000000000..3999f8a1c --- /dev/null +++ b/grammar/testData/diagnostics/redeclarations/RedeclaredValueParameters.antlrtree.txt @@ -0,0 +1,265 @@ +File: RedeclaredValueParameters.kt - 3d98927a576548b1921a432e1c5b1aec + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("test2") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("b") + COMMA(",") + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("b") + ARROW("->") + statements + semis + SEMICOLON(";") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("func") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("_") + COMMA(",") + functionValueParameterWithOptionalType + parameterWithOptionalType + simpleIdentifier + Identifier("_") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/RedeclaringPrivateToFile.c.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/RedeclaringPrivateToFile.c.antlrtree.txt index ee34845b4..37d144eb8 100644 --- a/grammar/testData/diagnostics/redeclarations/RedeclaringPrivateToFile.c.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/RedeclaringPrivateToFile.c.antlrtree.txt @@ -59,6 +59,4 @@ File: RedeclaringPrivateToFile.c.kt - 638231b36cddec5ff243dbdcbdd24c34 primaryExpression literalConstant IntegerLiteral("1") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/TopLevelPropertyVsClassifier.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/TopLevelPropertyVsClassifier.antlrtree.txt index 31e401da4..394e8a3c8 100644 --- a/grammar/testData/diagnostics/redeclarations/TopLevelPropertyVsClassifier.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/TopLevelPropertyVsClassifier.antlrtree.txt @@ -158,6 +158,4 @@ File: TopLevelPropertyVsClassifier.kt - 0cf5c28a8d17612092eb7ce476ba2f5e OBJECT("object") simpleIdentifier Identifier("Test4") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/TypeAliasVsClass.file2.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/TypeAliasVsClass.file2.antlrtree.txt index 9190807a6..7d13cfea9 100644 --- a/grammar/testData/diagnostics/redeclarations/TypeAliasVsClass.file2.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/TypeAliasVsClass.file2.antlrtree.txt @@ -14,6 +14,4 @@ File: TypeAliasVsClass.file2.kt - 07960fb5bd9cf2d2199d350f6a894354 simpleUserType simpleIdentifier Identifier("Any") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/TypeAliasVsProperty.file2.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/TypeAliasVsProperty.file2.antlrtree.txt index ef1b217b2..9f62e101c 100644 --- a/grammar/testData/diagnostics/redeclarations/TypeAliasVsProperty.file2.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/TypeAliasVsProperty.file2.antlrtree.txt @@ -28,6 +28,4 @@ File: TypeAliasVsProperty.file2.kt - 54355eb35620ce8f7b33a6b9445e6237 literalConstant IntegerLiteral("42") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/interfaceTypeParameters.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/interfaceTypeParameters.antlrtree.txt index 630075e85..5ae682acd 100644 --- a/grammar/testData/diagnostics/redeclarations/interfaceTypeParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/interfaceTypeParameters.antlrtree.txt @@ -1,4 +1,5 @@ -File: interfaceTypeParameters.kt - c20ae2997ebd09b7c8433c3237334703 +File: interfaceTypeParameters.kt - 95443eeba4eda892fe7a709028ce3c2e + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/redeclarations/kt2418.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/kt2418.antlrtree.txt index d6575863b..f1f4b8e2b 100644 --- a/grammar/testData/diagnostics/redeclarations/kt2418.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/kt2418.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2418.kt - b44d937885f4cacae57553464b624d2a +File: kt2418.kt - feabe84d1d2f3403fa4d73ee8593356b + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/redeclarations/kt2438.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/kt2438.antlrtree.txt index 11b18cb8d..759541ec6 100644 --- a/grammar/testData/diagnostics/redeclarations/kt2438.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/kt2438.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2438.kt - 333f01c700501d040fb24e24f1b35449 +File: kt2438.kt - 8b4fcae956be77ef01e3ca5a10349d32 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/redeclarations/kt470.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/kt470.antlrtree.txt index a9633d4e3..cb252541a 100644 --- a/grammar/testData/diagnostics/redeclarations/kt470.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/kt470.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt470.kt - 138cff93e8b2452066bccddbad586b8b +File: kt470.kt - 089704882908cc20d4a84cfb16b37839 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionFunShadowedByInnerClassConstructor.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionFunShadowedByInnerClassConstructor.antlrtree.txt index 3e5281640..6e4591f1c 100644 --- a/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionFunShadowedByInnerClassConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionFunShadowedByInnerClassConstructor.antlrtree.txt @@ -605,6 +605,4 @@ File: extensionFunShadowedByInnerClassConstructor.kt - febc263a009c88fccbe15936f LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionFunShadowedByMemberPropertyWithInvoke.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionFunShadowedByMemberPropertyWithInvoke.antlrtree.txt index 14c4bb740..879a495aa 100644 --- a/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionFunShadowedByMemberPropertyWithInvoke.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionFunShadowedByMemberPropertyWithInvoke.antlrtree.txt @@ -347,6 +347,4 @@ File: extensionFunShadowedByMemberPropertyWithInvoke.kt - 921eb030258ad93148e62a LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionFunShadowedBySynthesizedMemberFun.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionFunShadowedBySynthesizedMemberFun.antlrtree.txt index 290249aa4..289c6013c 100644 --- a/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionFunShadowedBySynthesizedMemberFun.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionFunShadowedBySynthesizedMemberFun.antlrtree.txt @@ -67,6 +67,4 @@ File: extensionFunShadowedBySynthesizedMemberFun.kt - 03cd5fe90337a09b8e8429463e primaryExpression literalConstant IntegerLiteral("42") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionFunVsMemberExtensionFun.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionFunVsMemberExtensionFun.antlrtree.txt index 4cb5bbb38..272303b87 100644 --- a/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionFunVsMemberExtensionFun.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionFunVsMemberExtensionFun.antlrtree.txt @@ -60,6 +60,4 @@ File: extensionFunVsMemberExtensionFun.kt - 7b5a4a1e1c31140c194621916f2e5d77 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionOnNullableReceiver.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionOnNullableReceiver.antlrtree.txt index 4b522f174..bc0df52fc 100644 --- a/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionOnNullableReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionOnNullableReceiver.antlrtree.txt @@ -116,6 +116,4 @@ File: extensionOnNullableReceiver.kt - 9586a8a27d2b1297aebf5124d80deb89 primaryExpression literalConstant IntegerLiteral("42") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionShadowedByDelegatedMember.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionShadowedByDelegatedMember.antlrtree.txt index f7eecb830..f690d06e5 100644 --- a/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionShadowedByDelegatedMember.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionShadowedByDelegatedMember.antlrtree.txt @@ -234,6 +234,4 @@ File: extensionShadowedByDelegatedMember.kt - 00b61c88cf4be4dc8cc02c64ceae7ef8 primaryExpression literalConstant IntegerLiteral("42") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionVsNonPublicMember.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionVsNonPublicMember.antlrtree.txt index 704be45f5..5473c9c9b 100644 --- a/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionVsNonPublicMember.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/shadowedExtension/extensionVsNonPublicMember.antlrtree.txt @@ -889,6 +889,4 @@ File: extensionVsNonPublicMember.kt - ead37d6f45f2ee2891d36a5674bc8667 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/shadowedExtension/localExtensionShadowedByMember.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/shadowedExtension/localExtensionShadowedByMember.antlrtree.txt index e98efccaf..97fc0aa35 100644 --- a/grammar/testData/diagnostics/redeclarations/shadowedExtension/localExtensionShadowedByMember.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/shadowedExtension/localExtensionShadowedByMember.antlrtree.txt @@ -64,6 +64,4 @@ File: localExtensionShadowedByMember.kt - 0bb643ba04850cfd8156f027c5c4a4e0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/shadowedExtension/memberExtensionShadowedByMember.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/shadowedExtension/memberExtensionShadowedByMember.antlrtree.txt index ad954ec35..434bcb2a2 100644 --- a/grammar/testData/diagnostics/redeclarations/shadowedExtension/memberExtensionShadowedByMember.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/shadowedExtension/memberExtensionShadowedByMember.antlrtree.txt @@ -122,6 +122,4 @@ File: memberExtensionShadowedByMember.kt - ea45d7452f14226510bfb221383967bc semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/redeclarations/shadowedExtension/operatorExtensionVsNonOperatorMember.antlrtree.txt b/grammar/testData/diagnostics/redeclarations/shadowedExtension/operatorExtensionVsNonOperatorMember.antlrtree.txt index db37a39ca..e5219f294 100644 --- a/grammar/testData/diagnostics/redeclarations/shadowedExtension/operatorExtensionVsNonOperatorMember.antlrtree.txt +++ b/grammar/testData/diagnostics/redeclarations/shadowedExtension/operatorExtensionVsNonOperatorMember.antlrtree.txt @@ -137,6 +137,4 @@ File: operatorExtensionVsNonOperatorMember.kt - 3cf62ef6ff7594155b1d3e6e0197665c primaryExpression simpleIdentifier Identifier("i") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/AmbiguityOnLazyTypeComputation.antlrtree.txt b/grammar/testData/diagnostics/regressions/AmbiguityOnLazyTypeComputation.antlrtree.txt index 712dd85c6..a59a07ac4 100644 --- a/grammar/testData/diagnostics/regressions/AmbiguityOnLazyTypeComputation.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/AmbiguityOnLazyTypeComputation.antlrtree.txt @@ -1,4 +1,5 @@ -File: AmbiguityOnLazyTypeComputation.kt - d1e3faa1d401e2fcc67fe815f17f3680 +File: AmbiguityOnLazyTypeComputation.kt - 7c16e0ecbed3f18355c3af2acc1763fb + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/regressions/AssignmentsUnderOperators.antlrtree.txt b/grammar/testData/diagnostics/regressions/AssignmentsUnderOperators.antlrtree.txt index ae9860464..66758aaff 100644 --- a/grammar/testData/diagnostics/regressions/AssignmentsUnderOperators.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/AssignmentsUnderOperators.antlrtree.txt @@ -1,4 +1,5 @@ -File: AssignmentsUnderOperators.kt - 07b3138ad79f1dd4068eb16506d1d6fb +File: AssignmentsUnderOperators.kt - 19cdf82e48c83e15babf6ede0dd84461 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/regressions/ErrorsOnIbjectExpressionsAsParameters.antlrtree.txt b/grammar/testData/diagnostics/regressions/ErrorsOnIbjectExpressionsAsParameters.antlrtree.txt index 68f27f0fa..40f4d6521 100644 --- a/grammar/testData/diagnostics/regressions/ErrorsOnIbjectExpressionsAsParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/ErrorsOnIbjectExpressionsAsParameters.antlrtree.txt @@ -1,4 +1,5 @@ -File: ErrorsOnIbjectExpressionsAsParameters.kt - bb4b99630d4fc1f763f47623ab41c369 +File: ErrorsOnIbjectExpressionsAsParameters.kt - ba21b2330c44a292b9a6c9f00a64cb56 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/regressions/Jet11.antlrtree.txt b/grammar/testData/diagnostics/regressions/Jet11.antlrtree.txt index 9a0fe3ac3..e71e1f103 100644 --- a/grammar/testData/diagnostics/regressions/Jet11.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/Jet11.antlrtree.txt @@ -1,4 +1,5 @@ -File: Jet11.kt - 8e6529b7773e6faf58488150a97c728e +File: Jet11.kt - 5fa019c63932b093b4a1a1ec10ce0fbf + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/regressions/Jet124.antlrtree.txt b/grammar/testData/diagnostics/regressions/Jet124.antlrtree.txt index 8267b091c..e52eb7454 100644 --- a/grammar/testData/diagnostics/regressions/Jet124.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/Jet124.antlrtree.txt @@ -1,4 +1,5 @@ -File: Jet124.kt - fb51e6e4f4ec81de4effaf7e0cb9c1d3 +File: Jet124.kt - b9fbf2a6f2323faac53a4f4429b52077 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/regressions/Jet169.antlrtree.txt b/grammar/testData/diagnostics/regressions/Jet169.antlrtree.txt index 3ece71a1e..e580ba7eb 100644 --- a/grammar/testData/diagnostics/regressions/Jet169.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/Jet169.antlrtree.txt @@ -1,4 +1,4 @@ -File: Jet169.kt - ca12a71a3313a591b726c61ee1d275a3 +File: Jet169.kt - 95eac4fb7a427168c4ad576e5de105f4 packageHeader importList topLevelObject @@ -313,5 +313,5 @@ File: Jet169.kt - ca12a71a3313a591b726c61ee1d275a3 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/Jet183.antlrtree.txt b/grammar/testData/diagnostics/regressions/Jet183.antlrtree.txt index 10f73dd78..720a5ee51 100644 --- a/grammar/testData/diagnostics/regressions/Jet183.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/Jet183.antlrtree.txt @@ -1,4 +1,5 @@ -File: Jet183.kt - a563d547fc55090f044a125a2808a544 +File: Jet183.kt - 5dc239d47575b49f58147fc6c0bfdd0c + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/regressions/Jet53.antlrtree.txt b/grammar/testData/diagnostics/regressions/Jet53.antlrtree.txt index 2167eb4fe..87e00bd61 100644 --- a/grammar/testData/diagnostics/regressions/Jet53.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/Jet53.antlrtree.txt @@ -115,6 +115,4 @@ File: Jet53.kt - af35f9c433e0e5558e3fa99a5895d889 RPAREN(")") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/Jet69.antlrtree.txt b/grammar/testData/diagnostics/regressions/Jet69.antlrtree.txt index d7d182e6b..166e85b7c 100644 --- a/grammar/testData/diagnostics/regressions/Jet69.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/Jet69.antlrtree.txt @@ -1,4 +1,4 @@ -File: Jet69.kt - 451ca58e97fc480aeb92b6371b407696 +File: Jet69.kt - 943aa5b8e116f82374c16d8f836342a2 packageHeader importList topLevelObject @@ -316,5 +316,5 @@ File: Jet69.kt - 451ca58e97fc480aeb92b6371b407696 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/Jet72.antlrtree.txt b/grammar/testData/diagnostics/regressions/Jet72.antlrtree.txt index 68bde901d..07343e3b6 100644 --- a/grammar/testData/diagnostics/regressions/Jet72.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/Jet72.antlrtree.txt @@ -1,4 +1,6 @@ -File: Jet72.kt - 8261e824eb7105147835165a1f206ab5 +File: Jet72.kt - fbc8decf472acf748a8fd589da0aadea + NL("\n") + NL("\n") NL("\n") NL("\n") packageHeader @@ -353,5 +355,5 @@ File: Jet72.kt - 8261e824eb7105147835165a1f206ab5 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/Jet81.antlrtree.txt b/grammar/testData/diagnostics/regressions/Jet81.antlrtree.txt index d18b413cf..09fcec76c 100644 --- a/grammar/testData/diagnostics/regressions/Jet81.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/Jet81.antlrtree.txt @@ -1,5 +1,4 @@ -File: Jet81.kt - 1b3e83c121d31c38fa3005e6d6221b9e - NL("\n") +File: Jet81.kt - 0bdadbd5ac39f906344e99ac5f3eb349 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/regressions/LocalClassReferenceChain.antlrtree.txt b/grammar/testData/diagnostics/regressions/LocalClassReferenceChain.antlrtree.txt new file mode 100644 index 000000000..c78dde32f --- /dev/null +++ b/grammar/testData/diagnostics/regressions/LocalClassReferenceChain.antlrtree.txt @@ -0,0 +1,145 @@ +File: LocalClassReferenceChain.kt - 246535dc8ecff675feb10ce17d2cc2ef + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("LocalA") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("LocalB") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("LocalC") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("LocalA") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("LocalB") + DOT(".") + simpleIdentifier + Identifier("blah") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("LocalA") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("LocalB") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("LocalC") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("LocalC") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/regressions/OrphanStarProjection.antlrtree.txt b/grammar/testData/diagnostics/regressions/OrphanStarProjection.antlrtree.txt index 9fa1c013d..126aa3fd9 100644 --- a/grammar/testData/diagnostics/regressions/OrphanStarProjection.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/OrphanStarProjection.antlrtree.txt @@ -1,4 +1,5 @@ -File: OrphanStarProjection.kt - c8a6daf3f5b9fd15a0e51597cabe6d09 +File: OrphanStarProjection.kt - d8530014a4958b968bef8a40f9bd4a84 + NL("\n") packageHeader importList topLevelObject @@ -53,6 +54,4 @@ File: OrphanStarProjection.kt - c8a6daf3f5b9fd15a0e51597cabe6d09 literalConstant IntegerLiteral("1") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/OutProjections.antlrtree.txt b/grammar/testData/diagnostics/regressions/OutProjections.antlrtree.txt index 45f51c055..954a098ad 100644 --- a/grammar/testData/diagnostics/regressions/OutProjections.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/OutProjections.antlrtree.txt @@ -1,5 +1,4 @@ -File: OutProjections.kt - 27cb56a908e50fd74c531c5f6b3dc045 - NL("\n") +File: OutProjections.kt - 450665203361aa0a3588776ae0e8db65 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/regressions/TypeMismatchOnUnaryOperations.antlrtree.txt b/grammar/testData/diagnostics/regressions/TypeMismatchOnUnaryOperations.antlrtree.txt index 85b13f66c..3fc5b0f2e 100644 --- a/grammar/testData/diagnostics/regressions/TypeMismatchOnUnaryOperations.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/TypeMismatchOnUnaryOperations.antlrtree.txt @@ -1,5 +1,4 @@ -File: TypeMismatchOnUnaryOperations.kt - a7daec09f5d91bc1d2315db6b034f7a0 - NL("\n") +File: TypeMismatchOnUnaryOperations.kt - a23175f66c9409d7c5eb4964cfa2c5a6 packageHeader importList topLevelObject @@ -523,5 +522,5 @@ File: TypeMismatchOnUnaryOperations.kt - a7daec09f5d91bc1d2315db6b034f7a0 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/TypeParameterAsASupertype.antlrtree.txt b/grammar/testData/diagnostics/regressions/TypeParameterAsASupertype.antlrtree.txt index f7e0d6e40..04d595ca0 100644 --- a/grammar/testData/diagnostics/regressions/TypeParameterAsASupertype.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/TypeParameterAsASupertype.antlrtree.txt @@ -26,6 +26,4 @@ File: TypeParameterAsASupertype.kt - 61e2c04b63833ce76f4c3054b38b7c34 LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/UnavaliableQualifiedThis.antlrtree.txt b/grammar/testData/diagnostics/regressions/UnavaliableQualifiedThis.antlrtree.txt index 293f4f8e6..049deef38 100644 --- a/grammar/testData/diagnostics/regressions/UnavaliableQualifiedThis.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/UnavaliableQualifiedThis.antlrtree.txt @@ -296,6 +296,4 @@ File: UnavaliableQualifiedThis.kt - fa6d90bbffa07f7429a785da538408d1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/correctResultSubstitutorForErrorCandidate.antlrtree.txt b/grammar/testData/diagnostics/regressions/correctResultSubstitutorForErrorCandidate.antlrtree.txt index 92a0f1d24..1cba3bbb1 100644 --- a/grammar/testData/diagnostics/regressions/correctResultSubstitutorForErrorCandidate.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/correctResultSubstitutorForErrorCandidate.antlrtree.txt @@ -1,5 +1,4 @@ -File: correctResultSubstitutorForErrorCandidate.kt - 2feca4bb8ef7a7b56ad21e09ba8a5032 - NL("\n") +File: correctResultSubstitutorForErrorCandidate.kt - 2d1dd036c84b7db17ba134448cbd5d10 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/delegationWithReceiver.antlrtree.txt b/grammar/testData/diagnostics/regressions/delegationWithReceiver.antlrtree.txt index 9dd8e956f..d6754062a 100644 --- a/grammar/testData/diagnostics/regressions/delegationWithReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/delegationWithReceiver.antlrtree.txt @@ -282,6 +282,4 @@ File: delegationWithReceiver.kt - 88679a11d441b34616f19d6f61f6171e NullLiteral("null") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/ea53340.antlrtree.txt b/grammar/testData/diagnostics/regressions/ea53340.antlrtree.txt index 5a59e7c34..ae0fbd09c 100644 --- a/grammar/testData/diagnostics/regressions/ea53340.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/ea53340.antlrtree.txt @@ -122,6 +122,4 @@ File: ea53340.kt - 3e0459f535f319d7af645787785987d7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/ea72837.antlrtree.txt b/grammar/testData/diagnostics/regressions/ea72837.antlrtree.txt index 348468aee..7362f18c4 100644 --- a/grammar/testData/diagnostics/regressions/ea72837.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/ea72837.antlrtree.txt @@ -1,5 +1,4 @@ -File: ea72837.kt - 5d70a682cd04f9d0cf7c43237aa9e210 (WITH_ERRORS) - NL("\n") +File: ea72837.kt - 7ea9f0be3fbb1c8abc3632ea20cec460 (WITH_ERRORS) NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/regressions/ea76264.antlrtree.txt b/grammar/testData/diagnostics/regressions/ea76264.antlrtree.txt index e498094fa..cc778ccfe 100644 --- a/grammar/testData/diagnostics/regressions/ea76264.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/ea76264.antlrtree.txt @@ -1,4 +1,4 @@ -File: ea76264.kt - d9e87ecae62824e3000c06be4d1d8da5 +File: ea76264.kt - 6910616f0b82de31199ca1e1cec63e1f NL("\n") packageHeader importList @@ -64,5 +64,5 @@ File: ea76264.kt - d9e87ecae62824e3000c06be4d1d8da5 simpleIdentifier Identifier("foo") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/intchar.antlrtree.txt b/grammar/testData/diagnostics/regressions/intchar.antlrtree.txt index 02a80da30..e898c203c 100644 --- a/grammar/testData/diagnostics/regressions/intchar.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/intchar.antlrtree.txt @@ -66,6 +66,4 @@ File: intchar.kt - 5058d55468ea456acfc979c52d9ef710 IntegerLiteral("1") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/itselfAsUpperBound.antlrtree.txt b/grammar/testData/diagnostics/regressions/itselfAsUpperBound.antlrtree.txt index c48974cc5..11c14d58a 100644 --- a/grammar/testData/diagnostics/regressions/itselfAsUpperBound.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/itselfAsUpperBound.antlrtree.txt @@ -1,4 +1,5 @@ -File: itselfAsUpperBound.kt - d289d499a676873cbf87659d9bcd8eb3 +File: itselfAsUpperBound.kt - d2ebe660d420f3ffa94547b35a7d2052 + NL("\n") NL("\n") packageHeader importList @@ -57,6 +58,4 @@ File: itselfAsUpperBound.kt - d289d499a676873cbf87659d9bcd8eb3 variableDeclaration simpleIdentifier Identifier("prop") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/itselfAsUpperBoundInClass.antlrtree.txt b/grammar/testData/diagnostics/regressions/itselfAsUpperBoundInClass.antlrtree.txt index b8146c08c..d93c750da 100644 --- a/grammar/testData/diagnostics/regressions/itselfAsUpperBoundInClass.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/itselfAsUpperBoundInClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: itselfAsUpperBoundInClass.kt - 1fa82761b34dab063ba483b5f46d30ec +File: itselfAsUpperBoundInClass.kt - 335a9f851d07ca22b34b12f4c5ebf4f3 + NL("\n") packageHeader importList topLevelObject @@ -23,6 +24,4 @@ File: itselfAsUpperBoundInClass.kt - 1fa82761b34dab063ba483b5f46d30ec quest QUEST_NO_WS("?") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/itselfAsUpperBoundInClassNotNull.antlrtree.txt b/grammar/testData/diagnostics/regressions/itselfAsUpperBoundInClassNotNull.antlrtree.txt index f89d5c70d..e3d285638 100644 --- a/grammar/testData/diagnostics/regressions/itselfAsUpperBoundInClassNotNull.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/itselfAsUpperBoundInClassNotNull.antlrtree.txt @@ -1,4 +1,5 @@ -File: itselfAsUpperBoundInClassNotNull.kt - 4d6c9cdfa0a6668f790d8f3ecaffc2c5 +File: itselfAsUpperBoundInClassNotNull.kt - 23abaabe2f3d9095b86dcf582cb68ea9 + NL("\n") packageHeader importList topLevelObject @@ -20,6 +21,4 @@ File: itselfAsUpperBoundInClassNotNull.kt - 4d6c9cdfa0a6668f790d8f3ecaffc2c5 simpleIdentifier Identifier("T") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/itselfAsUpperBoundLocal.antlrtree.txt b/grammar/testData/diagnostics/regressions/itselfAsUpperBoundLocal.antlrtree.txt index da7e560c4..8f9fe2f51 100644 --- a/grammar/testData/diagnostics/regressions/itselfAsUpperBoundLocal.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/itselfAsUpperBoundLocal.antlrtree.txt @@ -1,5 +1,4 @@ -File: itselfAsUpperBoundLocal.kt - 20656365ce03324f9459f6d9a96f1a89 - NL("\n") +File: itselfAsUpperBoundLocal.kt - 155c7fd3de6b514f9edd6a2881e64c86 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/regressions/itselfAsUpperBoundMember.antlrtree.txt b/grammar/testData/diagnostics/regressions/itselfAsUpperBoundMember.antlrtree.txt index 01fd92c74..b0f30a0a3 100644 --- a/grammar/testData/diagnostics/regressions/itselfAsUpperBoundMember.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/itselfAsUpperBoundMember.antlrtree.txt @@ -1,4 +1,5 @@ -File: itselfAsUpperBoundMember.kt - ac026f9b938a1a00be29e844334d8078 +File: itselfAsUpperBoundMember.kt - 81787d3ed4997f4091c54fef45a67b92 + NL("\n") NL("\n") packageHeader importList @@ -76,6 +77,4 @@ File: itselfAsUpperBoundMember.kt - ac026f9b938a1a00be29e844334d8078 Identifier("T") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/itselfAsUpperBoundNotNull.antlrtree.txt b/grammar/testData/diagnostics/regressions/itselfAsUpperBoundNotNull.antlrtree.txt index 05cc622da..8e5257ad7 100644 --- a/grammar/testData/diagnostics/regressions/itselfAsUpperBoundNotNull.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/itselfAsUpperBoundNotNull.antlrtree.txt @@ -1,4 +1,5 @@ -File: itselfAsUpperBoundNotNull.kt - 7f9aac66f2b4fdb89895c3bd3f2c5171 +File: itselfAsUpperBoundNotNull.kt - a1f0f8a368d64f6beb36de8d0e570b40 + NL("\n") NL("\n") packageHeader importList @@ -61,6 +62,4 @@ File: itselfAsUpperBoundNotNull.kt - 7f9aac66f2b4fdb89895c3bd3f2c5171 simpleUserType simpleIdentifier Identifier("T") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt10243.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt10243.antlrtree.txt index 19074e588..77e39cedb 100644 --- a/grammar/testData/diagnostics/regressions/kt10243.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt10243.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt10243.kt - 4428e1b849c0c2056c37b1ce88cc66aa - NL("\n") +File: kt10243.kt - 111805fe2d3eaf2c1a1b490bac65f22e packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/regressions/kt10243a.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt10243a.antlrtree.txt index ab4809b65..f0614e4ca 100644 --- a/grammar/testData/diagnostics/regressions/kt10243a.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt10243a.antlrtree.txt @@ -166,6 +166,4 @@ File: kt10243a.kt - 374ed3711f2eed03c50218bde9ddc9ff semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt10824.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt10824.antlrtree.txt index 6881f5711..f548e7f8e 100644 --- a/grammar/testData/diagnostics/regressions/kt10824.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt10824.antlrtree.txt @@ -1280,6 +1280,4 @@ File: kt10824.kt - 68b8576311a2a6ca50b65dd85c014fb7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt10843.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt10843.antlrtree.txt index 89c956cff..7ca2a1d4c 100644 --- a/grammar/testData/diagnostics/regressions/kt10843.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt10843.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt10843.kt - 0d24f7c15b1906d537d788a5fae3c4fc - NL("\n") +File: kt10843.kt - 8514b631a913c72bc4cfaf6f781a1fda NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt11979.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt11979.antlrtree.txt index 5bf8d5665..373475bba 100644 --- a/grammar/testData/diagnostics/regressions/kt11979.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt11979.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt11979.kt - cf656720205bff1d8cf935f74a6fccea +File: kt11979.kt - 921e58d06bd84a8bc0eade1b3e24b8a2 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/regressions/kt127.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt127.antlrtree.txt index 263c75e09..dbb120473 100644 --- a/grammar/testData/diagnostics/regressions/kt127.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt127.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt127.kt - 94ab2d50f6b8abeecf4c40410372ce73 +File: kt127.kt - 53f922ce840a4d6e6ad2b02c2eec1a51 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt128.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt128.antlrtree.txt index 0df3bce8b..22c67b835 100644 --- a/grammar/testData/diagnostics/regressions/kt128.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt128.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt128.kt - ee426e91d18143664721d3fc52368eb2 +File: kt128.kt - a3e524fc744ffb8df679438d83d8b374 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt12898.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt12898.antlrtree.txt index 359559967..735fba8f1 100644 --- a/grammar/testData/diagnostics/regressions/kt12898.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt12898.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt12898.kt - c62fed2cdd41e13b0ec0519043577739 - NL("\n") +File: kt12898.kt - 8e984824c7afb101f72e3025ecf41386 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt13685.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt13685.antlrtree.txt index 5b430157d..d023b0213 100644 --- a/grammar/testData/diagnostics/regressions/kt13685.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt13685.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt13685.kt - 2cdd64823f235f5e54795fdaaf1c0756 (WITH_ERRORS) - NL("\n") +File: kt13685.kt - 05201a60346ccc0fcfe8c3c427bd25a0 (WITH_ERRORS) NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt14740.1.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt14740.1.antlrtree.txt index 801b0206b..881e4f845 100644 --- a/grammar/testData/diagnostics/regressions/kt14740.1.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt14740.1.antlrtree.txt @@ -124,6 +124,4 @@ File: kt14740.1.kt - e06e541177dd8e0494a4022262b480f9 LPAREN("(") RPAREN(")") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt1489_1728.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt1489_1728.antlrtree.txt index 4e5907ea2..ecd08803f 100644 --- a/grammar/testData/diagnostics/regressions/kt1489_1728.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt1489_1728.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt1489_1728.kt - cbd59ac73221b8763feedef15255a4b3 - NL("\n") +File: kt1489_1728.kt - 3dcffedf4b04855ff041850b87551d32 packageHeader PACKAGE("package") identifier @@ -433,6 +432,4 @@ File: kt1489_1728.kt - cbd59ac73221b8763feedef15255a4b3 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt1550.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt1550.antlrtree.txt index 8296b6b90..709d6ffd3 100644 --- a/grammar/testData/diagnostics/regressions/kt1550.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt1550.antlrtree.txt @@ -436,6 +436,4 @@ File: kt1550.kt - e4510d134d2c39f4c0c52247c682f458 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt16086_2.2.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt16086_2.2.antlrtree.txt index 49888f49e..e5b2dae9e 100644 --- a/grammar/testData/diagnostics/regressions/kt16086_2.2.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt16086_2.2.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt16086_2.2.kt - 00e802b7270157abed9ba5dd00fd8291 +File: kt16086_2.2.kt - 07f6cd1151af1875dea84e77e30bc2e0 packageHeader PACKAGE("package") identifier @@ -38,5 +38,5 @@ File: kt16086_2.2.kt - 00e802b7270157abed9ba5dd00fd8291 Identifier("IEntity") RANGLE(">") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt1639-JFrame.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt1639-JFrame.antlrtree.txt index 0a61ee4ca..07e35c745 100644 --- a/grammar/testData/diagnostics/regressions/kt1639-JFrame.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt1639-JFrame.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt1639-JFrame.kt - 72a054fd9fa4972f0bca12f2081e3e1e +File: kt1639-JFrame.kt - 7b65242321ce8b05bcc42df83434e799 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/regressions/kt1647.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt1647.antlrtree.txt index d1c030213..0d06239cb 100644 --- a/grammar/testData/diagnostics/regressions/kt1647.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt1647.antlrtree.txt @@ -226,6 +226,4 @@ File: kt1647.kt - 280cedae4cd5a020785028e59af68967 SEMICOLON(";") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt1736.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt1736.antlrtree.txt index 5c6754cd7..7bdd23571 100644 --- a/grammar/testData/diagnostics/regressions/kt1736.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt1736.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt1736.kt - 58d4d7a72d449353ec993a8773574a37 +File: kt1736.kt - 7a7c33ea668bf65b1b98e350e5aa1e06 + NL("\n") NL("\n") NL("\n") packageHeader @@ -81,6 +82,4 @@ File: kt1736.kt - 58d4d7a72d449353ec993a8773574a37 ARROW("->") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt235.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt235.antlrtree.txt index e95dcbc46..2838ca59d 100644 --- a/grammar/testData/diagnostics/regressions/kt235.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt235.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt235.kt - 4ba29f1951da62e7476bd04e857d02bb +File: kt235.kt - fbdfc17e3a85698d61fdfce6cd1a2fbf NL("\n") NL("\n") packageHeader @@ -1107,5 +1107,5 @@ File: kt235.kt - 4ba29f1951da62e7476bd04e857d02bb NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt24488.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt24488.antlrtree.txt index 1b6a2980c..ff400682f 100644 --- a/grammar/testData/diagnostics/regressions/kt24488.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt24488.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt24488.kt - 26d4386828a89ed4df338acd1c21c343 - NL("\n") +File: kt24488.kt - fd66861d58a1ef91b882d8def68cbd70 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt251.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt251.antlrtree.txt index de90da04f..56658bd0a 100644 --- a/grammar/testData/diagnostics/regressions/kt251.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt251.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt251.kt - 3ab030efe8f48fd065837d5e1465fefd - NL("\n") +File: kt251.kt - bca3517b6bbc893f3602661be745800f packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/regressions/kt258.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt258.antlrtree.txt index f21dbefd7..4f4940bf6 100644 --- a/grammar/testData/diagnostics/regressions/kt258.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt258.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt258.kt - 96503d371e6f4c18fbbe10fc6f7335a2 +File: kt258.kt - 543f2de8697a140e0332cbcb263417a0 + NL("\n") NL("\n") NL("\n") packageHeader @@ -227,5 +228,5 @@ File: kt258.kt - 96503d371e6f4c18fbbe10fc6f7335a2 statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt26303.b.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt26303.b.antlrtree.txt index 9f3494c93..884c14871 100644 --- a/grammar/testData/diagnostics/regressions/kt26303.b.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt26303.b.antlrtree.txt @@ -95,6 +95,4 @@ File: kt26303.b.kt - 1d28864ab48050cabaf333ef675e543d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt2768.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt2768.antlrtree.txt index 2df22c1dd..4e0e7ffad 100644 --- a/grammar/testData/diagnostics/regressions/kt2768.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt2768.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2768.kt - aced1aac6c0946253a90841797d91c8e +File: kt2768.kt - d1bf3f94c98ee05224f0e3f3fe01f84c + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/regressions/kt282.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt282.antlrtree.txt index 254af7185..f30af59ec 100644 --- a/grammar/testData/diagnostics/regressions/kt282.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt282.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt282.kt - d931f17059f7c0f5e7de584dd3be4772 +File: kt282.kt - 3712f2317e21c19a26a5e8e2f4fdf653 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/regressions/kt287.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt287.antlrtree.txt index 13d3e232f..11680d6de 100644 --- a/grammar/testData/diagnostics/regressions/kt287.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt287.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt287.kt - 971f38ac263d262e37ee8933fd02aa84 +File: kt287.kt - 8636dcfb8d0c2b9133ece6794878012c + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt2956.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt2956.antlrtree.txt index c39437c87..724dd38b2 100644 --- a/grammar/testData/diagnostics/regressions/kt2956.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt2956.antlrtree.txt @@ -34,6 +34,4 @@ File: kt2956.kt - 34b05ef7e44f8cb909bf0804f0504dc3 primaryExpression simpleIdentifier Identifier("Nothing") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt302.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt302.antlrtree.txt index 6a3b90edf..726117e4e 100644 --- a/grammar/testData/diagnostics/regressions/kt302.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt302.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt302.kt - 0756d6f6ba00e06b229c647e1191ffe2 +File: kt302.kt - dd403c60827fcc02e85685e3e8855af4 + NL("\n") NL("\n") NL("\n") packageHeader @@ -103,6 +104,4 @@ File: kt302.kt - 0756d6f6ba00e06b229c647e1191ffe2 LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt306.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt306.antlrtree.txt index 1895dff58..80d39dcae 100644 --- a/grammar/testData/diagnostics/regressions/kt306.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt306.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt306.kt - 379fdad7920a19b6221da9a77270725e +File: kt306.kt - e904a21fb242755a57f0a612d9ee032b + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt307.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt307.antlrtree.txt index 34428eb0f..705545e4d 100644 --- a/grammar/testData/diagnostics/regressions/kt307.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt307.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt307.kt - e93003b9fa7820243b05308c23351907 +File: kt307.kt - 1603d9f546c3f4d81a1fed8d72f63d87 + NL("\n") NL("\n") NL("\n") packageHeader @@ -229,6 +230,4 @@ File: kt307.kt - e93003b9fa7820243b05308c23351907 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt312.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt312.antlrtree.txt index b01e93bf9..7da1badd5 100644 --- a/grammar/testData/diagnostics/regressions/kt312.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt312.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt312.kt - c20a2c84a6c766513efd1c4f0c25accc - NL("\n") +File: kt312.kt - dee1e692596c6fb221d9dade797721b3 NL("\n") NL("\n") packageHeader @@ -472,6 +471,4 @@ File: kt312.kt - c20a2c84a6c766513efd1c4f0c25accc IntegerLiteral("0") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt32507.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt32507.antlrtree.txt index d3a184722..ad7ae9bff 100644 --- a/grammar/testData/diagnostics/regressions/kt32507.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt32507.antlrtree.txt @@ -173,6 +173,4 @@ File: kt32507.kt - 6718cc27cc18742bc106749a5732c3f1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt32792.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt32792.antlrtree.txt index 88ebd59f2..834a9bdd6 100644 --- a/grammar/testData/diagnostics/regressions/kt32792.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt32792.antlrtree.txt @@ -180,6 +180,4 @@ File: kt32792.kt - dbe2ba365d70b6fc9210705207d01e5b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt328.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt328.antlrtree.txt index a53c3990d..0e8dc3808 100644 --- a/grammar/testData/diagnostics/regressions/kt328.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt328.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt328.kt - 2a65f76db7d2aa7bd82f6c1bd931fa98 (WITH_ERRORS) +File: kt328.kt - d7c7d9c01b254cdbea5342646859f755 (WITH_ERRORS) NL("\n") NL("\n") NL("\n") @@ -438,5 +438,4 @@ File: kt328.kt - 2a65f76db7d2aa7bd82f6c1bd931fa98 (WITH_ERRORS) RCURL("}") semis NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt32836.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt32836.antlrtree.txt index 7814801c7..4a35ebc59 100644 --- a/grammar/testData/diagnostics/regressions/kt32836.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt32836.antlrtree.txt @@ -393,6 +393,4 @@ File: kt32836.kt - 42a916f68b567cb1eb5eb8ceae750ff3 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt334.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt334.antlrtree.txt index 768bc0b09..c668ff8b4 100644 --- a/grammar/testData/diagnostics/regressions/kt334.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt334.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt334.kt - 8b8b1b89d0f01f0d2fb75bb80ed7461f +File: kt334.kt - a836d6b0eee71ad6884af74fbe6961f6 + NL("\n") NL("\n") NL("\n") packageHeader @@ -186,6 +187,4 @@ File: kt334.kt - 8b8b1b89d0f01f0d2fb75bb80ed7461f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt335.336.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt335.336.antlrtree.txt index 2e1b42d1e..2a6f37643 100644 --- a/grammar/testData/diagnostics/regressions/kt335.336.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt335.336.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt335.336.kt - 8c7a4e56261ea4957e72d04459c471e9 +File: kt335.336.kt - 7e773d73b91f8d61bfd95be585835797 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/regressions/kt352.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt352.antlrtree.txt index ed36e7e95..169df47a5 100644 --- a/grammar/testData/diagnostics/regressions/kt352.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt352.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt352.kt - e02fe6c7d90bd66d32d5b2f236ca39f3 - NL("\n") +File: kt352.kt - 9f7d60e38b9a20070783c5c44661a030 NL("\n") NL("\n") packageHeader @@ -616,6 +615,5 @@ File: kt352.kt - e02fe6c7d90bd66d32d5b2f236ca39f3 semis NL("\n") RCURL("}") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt353.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt353.antlrtree.txt index a5d448a30..4b92758a1 100644 --- a/grammar/testData/diagnostics/regressions/kt353.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt353.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt353.kt - c24992b27227b59ab48cd61783b0efad +File: kt353.kt - 168a2ec65f6d50a1e3eefe93433cd268 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/regressions/kt36222.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt36222.antlrtree.txt index d3f59fdbe..db30ad430 100644 --- a/grammar/testData/diagnostics/regressions/kt36222.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt36222.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt36222.kt - 3d491fddfb0f718a3a2ed2e4694d47ef +File: kt36222.kt - 96ee30126e5f78493a7ae930236e6984 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/regressions/kt398.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt398.antlrtree.txt index 655283ef9..63a05fc6e 100644 --- a/grammar/testData/diagnostics/regressions/kt398.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt398.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt398.kt - a6a9e8374b00bdbb9c065333d66a34c5 +File: kt398.kt - 8d95bccaff17532930b95ff497fadbd4 + NL("\n") NL("\n") NL("\n") packageHeader @@ -428,6 +429,4 @@ File: kt398.kt - a6a9e8374b00bdbb9c065333d66a34c5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt399.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt399.antlrtree.txt index a035d6a50..040810e1e 100644 --- a/grammar/testData/diagnostics/regressions/kt399.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt399.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt399.kt - 36ba2f214353b9f96b6e0ac2ce4ddb45 +File: kt399.kt - 65aae341fff4f3f55a54c641d9b89531 + NL("\n") NL("\n") NL("\n") packageHeader @@ -511,5 +512,5 @@ File: kt399.kt - 36ba2f214353b9f96b6e0ac2ce4ddb45 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt402.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt402.antlrtree.txt index fdf7bf81b..dc8850d08 100644 --- a/grammar/testData/diagnostics/regressions/kt402.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt402.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt402.kt - d4df914206e62221a069481a2c72ef6c +File: kt402.kt - 222b0a5a52f1c99b4088f3ea5502d373 + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/regressions/kt41.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt41.antlrtree.txt index 899c15e4e..e69b333ab 100644 --- a/grammar/testData/diagnostics/regressions/kt41.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt41.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt41.kt - 330c69d089c45aa7a01826303a766f73 +File: kt41.kt - 37d15ee55df0284748d1fadc161fe357 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt411.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt411.antlrtree.txt index f4d1a93cb..66c16cfe4 100644 --- a/grammar/testData/diagnostics/regressions/kt411.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt411.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt411.kt - fba78b544cd7fb97f268aaa0da9ae0f2 +File: kt411.kt - 42277734bc20b18708cb7b5408334154 NL("\n") NL("\n") packageHeader @@ -1317,5 +1317,5 @@ File: kt411.kt - fba78b544cd7fb97f268aaa0da9ae0f2 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt439.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt439.antlrtree.txt index c3f36e8f7..eff7f4484 100644 --- a/grammar/testData/diagnostics/regressions/kt439.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt439.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt439.kt - d660d197534b1321a97e2790c6edc4db +File: kt439.kt - 271138a2816b221bf2a69112aa7dd98d + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt442.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt442.antlrtree.txt index 347d37148..39bebff0e 100644 --- a/grammar/testData/diagnostics/regressions/kt442.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt442.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt442.kt - a8f167f5d8bd16434d8552b55fddfc06 +File: kt442.kt - 62114ebee83d03f4269b33622ba49b95 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt456.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt456.antlrtree.txt index bf154e612..91d79ea31 100644 --- a/grammar/testData/diagnostics/regressions/kt456.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt456.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt456.kt - e1b929a8b3feb29c36eab4b3b854fcc1 +File: kt456.kt - 0396afc0b524daf91b62feb5e847d543 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt459.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt459.antlrtree.txt index 7374882e5..477f9f368 100644 --- a/grammar/testData/diagnostics/regressions/kt459.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt459.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt459.kt - 3821f6a5bb684d9fe72edc1ce5e4de1f +File: kt459.kt - 44e1d03de918874ecb0883d1aa318440 + NL("\n") NL("\n") NL("\n") packageHeader @@ -234,5 +235,5 @@ File: kt459.kt - 3821f6a5bb684d9fe72edc1ce5e4de1f statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt4693.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt4693.antlrtree.txt index 34618a1db..f602874f9 100644 --- a/grammar/testData/diagnostics/regressions/kt4693.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt4693.antlrtree.txt @@ -139,6 +139,4 @@ File: kt4693.kt - 9c3fff3b7c1f2920a468cb16e45867de semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt4827.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt4827.antlrtree.txt index 3d56de70c..57eae21ff 100644 --- a/grammar/testData/diagnostics/regressions/kt4827.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt4827.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt4827.kt - 6123db87b08a481ec9b9797bd492a119 +File: kt4827.kt - 3f529e5266a8d008388d2cd47a9e601e + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/regressions/kt498.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt498.antlrtree.txt index 37b8de75b..09c1fc300 100644 --- a/grammar/testData/diagnostics/regressions/kt498.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt498.antlrtree.txt @@ -1,4 +1,6 @@ -File: kt498.kt - 18f4f61b7e6dfdab9f178ac321df8052 +File: kt498.kt - a2cf6387bfba7cbe25950fafa97104b3 + NL("\n") + NL("\n") NL("\n") NL("\n") NL("\n") @@ -199,6 +201,4 @@ File: kt498.kt - 18f4f61b7e6dfdab9f178ac321df8052 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt524.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt524.antlrtree.txt index a4718d1ec..d7619fb4f 100644 --- a/grammar/testData/diagnostics/regressions/kt524.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt524.antlrtree.txt @@ -392,6 +392,4 @@ File: kt524.kt - 0149fd808c1a7011f76bca34c393aae4 LPAREN("(") RPAREN(")") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt526UnresolvedReferenceInnerStatic.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt526UnresolvedReferenceInnerStatic.antlrtree.txt index 59b08aab2..a6d9a7243 100644 --- a/grammar/testData/diagnostics/regressions/kt526UnresolvedReferenceInnerStatic.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt526UnresolvedReferenceInnerStatic.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt526UnresolvedReferenceInnerStatic.kt - e8d6471366e52909c791becd3ec516ae +File: kt526UnresolvedReferenceInnerStatic.kt - 928b6a81011fb4d609838c34418085d0 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/regressions/kt5326.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt5326.antlrtree.txt index 334ed0bda..01d8b6b35 100644 --- a/grammar/testData/diagnostics/regressions/kt5326.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt5326.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt5326.kt - 1ea41bc38cd03c87044c53a7a2653f98 +File: kt5326.kt - 308d7e05e53732d20ae3d48cd8288fa7 packageHeader importList topLevelObject @@ -361,5 +361,5 @@ File: kt5326.kt - 1ea41bc38cd03c87044c53a7a2653f98 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt5362.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt5362.antlrtree.txt index b4a651d46..046e4b798 100644 --- a/grammar/testData/diagnostics/regressions/kt5362.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt5362.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt5362.kt - 7922ad6084be5cbc3e7b14ad703fe51f - NL("\n") +File: kt5362.kt - 9d9007ba45306daac87768f8816de2c1 NL("\n") packageHeader importList @@ -494,6 +493,4 @@ File: kt5362.kt - 7922ad6084be5cbc3e7b14ad703fe51f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt557.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt557.antlrtree.txt index 9f3961d46..e0337e1cd 100644 --- a/grammar/testData/diagnostics/regressions/kt557.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt557.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt557.kt - 2d3a038969b1899e647a853ba310d6cc +File: kt557.kt - ce95a06f8dbd553f62ea7c4cb8e83dcd NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/regressions/kt618.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt618.antlrtree.txt index 8ec50fbe4..84c54f11b 100644 --- a/grammar/testData/diagnostics/regressions/kt618.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt618.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt618.kt - c4a22d17f0c2a8cd805363c1dbc5e029 +File: kt618.kt - 883feec02b61dca8bc35225a01c06b76 + NL("\n") packageHeader PACKAGE("package") identifier @@ -660,5 +661,5 @@ File: kt618.kt - c4a22d17f0c2a8cd805363c1dbc5e029 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt630.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt630.antlrtree.txt index 6088a8940..40f00d349 100644 --- a/grammar/testData/diagnostics/regressions/kt630.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt630.antlrtree.txt @@ -147,6 +147,4 @@ File: kt630.kt - 5c6aaae901cd4829930511f1edb28414 simpleIdentifier Identifier("x") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt6508.k.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt6508.k.antlrtree.txt index 5c8bad71b..95325c043 100644 --- a/grammar/testData/diagnostics/regressions/kt6508.k.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt6508.k.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt6508.k.kt - 133f2deafe8b484c503ad18c7b3ced6d +File: kt6508.k.kt - 6c307fc2bcdb076b4d18c98905bfb61d packageHeader importList importHeader @@ -159,5 +159,5 @@ File: kt6508.k.kt - 133f2deafe8b484c503ad18c7b3ced6d NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt701.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt701.antlrtree.txt index c02efa850..6ea4f61e1 100644 --- a/grammar/testData/diagnostics/regressions/kt701.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt701.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt701.kt - eba24201dfd659c34345221fcc044cce +File: kt701.kt - 4bf9bff5203ddd083e89d913e00f57d4 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/regressions/kt716.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt716.antlrtree.txt index 5f9b97d53..6ad091ace 100644 --- a/grammar/testData/diagnostics/regressions/kt716.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt716.antlrtree.txt @@ -1,4 +1,6 @@ -File: kt716.kt - 3fab58bfc65955f85123c65bbeda0c25 +File: kt716.kt - 02d03fbfd80bf1754a90b471c029a14a + NL("\n") + NL("\n") NL("\n") NL("\n") packageHeader @@ -445,6 +447,4 @@ File: kt716.kt - 3fab58bfc65955f85123c65bbeda0c25 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt7585/twoparents.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt7585/twoparents.antlrtree.txt index 09ca87331..7fa6da0c0 100644 --- a/grammar/testData/diagnostics/regressions/kt7585/twoparents.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt7585/twoparents.antlrtree.txt @@ -374,6 +374,4 @@ File: twoparents.kt - d6c24f28667b8ddc5b7f4beb3074d1ec semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt7804.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt7804.antlrtree.txt index ce9f8884d..a010fc3cc 100644 --- a/grammar/testData/diagnostics/regressions/kt7804.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt7804.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt7804.kt - df4438f1812a10273ef51667ab501ec7 - NL("\n") +File: kt7804.kt - 985eefa157c83ff66387661918f7aa66 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/regressions/kt847.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt847.antlrtree.txt index ad676e43a..9b4e42764 100644 --- a/grammar/testData/diagnostics/regressions/kt847.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt847.antlrtree.txt @@ -73,6 +73,4 @@ File: kt847.kt - 7b86d0ed4ada1841711ec8a1a9fadb65 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt9384.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt9384.antlrtree.txt index edad8f6c7..6e9a9df4a 100644 --- a/grammar/testData/diagnostics/regressions/kt9384.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt9384.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt9384.kt - 6199878ebd672ed20c8edf45a13f6a11 +File: kt9384.kt - 95fbe34d85ad006ffd5d06e75ec3c930 + NL("\n") NL("\n") packageHeader importList @@ -180,6 +181,4 @@ File: kt9384.kt - 6199878ebd672ed20c8edf45a13f6a11 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt9620.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt9620.antlrtree.txt index c4d8dbb0a..51b9c6f54 100644 --- a/grammar/testData/diagnostics/regressions/kt9620.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt9620.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt9620.kt - 1f8c2de7bfefd83e7fed97844dfde45e (WITH_ERRORS) +File: kt9620.kt - 20591d6d84cb7baa9a4b76401a39ec5e (WITH_ERRORS) + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/regressions/kt9633.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt9633.antlrtree.txt index 43617fd0c..7d79a6ffa 100644 --- a/grammar/testData/diagnostics/regressions/kt9633.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt9633.antlrtree.txt @@ -35,6 +35,4 @@ File: kt9633.kt - 64c09906c9823730e04f29f68e88999c Identifier("T") RANGLE(">") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/kt9808.antlrtree.txt b/grammar/testData/diagnostics/regressions/kt9808.antlrtree.txt index 2ebebf8db..d280771e2 100644 --- a/grammar/testData/diagnostics/regressions/kt9808.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/kt9808.antlrtree.txt @@ -112,6 +112,4 @@ File: kt9808.kt - 6ed073932d243aa7673b6786a3279a7d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/noThis.antlrtree.txt b/grammar/testData/diagnostics/regressions/noThis.antlrtree.txt index 1a212c5ed..d77014c7c 100644 --- a/grammar/testData/diagnostics/regressions/noThis.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/noThis.antlrtree.txt @@ -215,6 +215,4 @@ File: noThis.kt - 44f8b3cad95323329be50693783887d2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/propertyWithExtensionTypeInvoke.antlrtree.txt b/grammar/testData/diagnostics/regressions/propertyWithExtensionTypeInvoke.antlrtree.txt index 13137650c..8f6f68710 100644 --- a/grammar/testData/diagnostics/regressions/propertyWithExtensionTypeInvoke.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/propertyWithExtensionTypeInvoke.antlrtree.txt @@ -95,6 +95,4 @@ File: propertyWithExtensionTypeInvoke.kt - 67a29c22e170f2c6d9b6dcd49e1213d7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/regressions/resolveCollectionLiteralInsideLambda.antlrtree.txt b/grammar/testData/diagnostics/regressions/resolveCollectionLiteralInsideLambda.antlrtree.txt index 3c1a3540d..efbffcf63 100644 --- a/grammar/testData/diagnostics/regressions/resolveCollectionLiteralInsideLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/resolveCollectionLiteralInsideLambda.antlrtree.txt @@ -1,4 +1,4 @@ -File: resolveCollectionLiteralInsideLambda.kt - d8438e402ebb2444620be7e8ef90ea7e +File: resolveCollectionLiteralInsideLambda.kt - f35df8bdfc2ca483a0692320131122b6 NL("\n") NL("\n") packageHeader @@ -177,6 +177,5 @@ File: resolveCollectionLiteralInsideLambda.kt - d8438e402ebb2444620be7e8ef90ea7e LSQUARE("[") RSQUARE("]") RCURL("}") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/regressions/resolveSubclassOfList.antlrtree.txt b/grammar/testData/diagnostics/regressions/resolveSubclassOfList.antlrtree.txt index e02aa9a9c..437a8100c 100644 --- a/grammar/testData/diagnostics/regressions/resolveSubclassOfList.antlrtree.txt +++ b/grammar/testData/diagnostics/regressions/resolveSubclassOfList.antlrtree.txt @@ -1,4 +1,6 @@ -File: resolveSubclassOfList.kt - 0b866e28c1a53e4e0a61fc68689f40b1 +File: resolveSubclassOfList.kt - 111402715859ab802c859c87dcd93e5f + NL("\n") + NL("\n") packageHeader importList importHeader @@ -142,6 +144,4 @@ File: resolveSubclassOfList.kt - 0b866e28c1a53e4e0a61fc68689f40b1 SEMICOLON(";") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/HiddenDeclarations.antlrtree.txt b/grammar/testData/diagnostics/resolve/HiddenDeclarations.antlrtree.txt index 243f44124..a9bcd3eb7 100644 --- a/grammar/testData/diagnostics/resolve/HiddenDeclarations.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/HiddenDeclarations.antlrtree.txt @@ -1,4 +1,4 @@ -File: HiddenDeclarations.kt - 77820dfd1aaaf164c455e81290f23365 +File: HiddenDeclarations.kt - 6948b0568943584cd51ce8ebb0c8a6c7 packageHeader PACKAGE("package") identifier @@ -648,6 +648,92 @@ File: HiddenDeclarations.kt - 77820dfd1aaaf164c455e81290f23365 semis NL("\n") NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Deprecated") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hidden") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("level") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("DeprecationLevel") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("HIDDEN") + RPAREN(")") + NL("\n") + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("privateFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") classMemberDeclaration declaration propertyDeclaration @@ -986,6 +1072,51 @@ File: HiddenDeclarations.kt - 77820dfd1aaaf164c455e81290f23365 RPAREN(")") semis NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("topLevelFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") statement expression disjunction @@ -1044,6 +1175,38 @@ File: HiddenDeclarations.kt - 77820dfd1aaaf164c455e81290f23365 RPAREN(")") semis NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("topLevelExtensionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") statement expression disjunction @@ -1073,6 +1236,59 @@ File: HiddenDeclarations.kt - 77820dfd1aaaf164c455e81290f23365 Identifier("topLevelExtensionProperty") semis NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("topLevelExtensionProperty") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("memberFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis NL("\n") statement expression @@ -1097,6 +1313,96 @@ File: HiddenDeclarations.kt - 77820dfd1aaaf164c455e81290f23365 callSuffix valueArguments LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("privateFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("privateFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") RPAREN(")") semis NL("\n") @@ -1155,6 +1461,38 @@ File: HiddenDeclarations.kt - 77820dfd1aaaf164c455e81290f23365 RPAREN(")") semis NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("memberExtensionFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") statement expression disjunction @@ -1182,6 +1520,33 @@ File: HiddenDeclarations.kt - 77820dfd1aaaf164c455e81290f23365 DOT(".") simpleIdentifier Identifier("memberExtensionProperty") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("memberExtensionProperty") semis NL("\n") NL("\n") @@ -1545,6 +1910,77 @@ File: HiddenDeclarations.kt - 77820dfd1aaaf164c455e81290f23365 RPAREN(")") semis NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("privateFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("privateFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") RCURL("}") semis NL("\n") @@ -1606,5 +2042,5 @@ File: HiddenDeclarations.kt - 77820dfd1aaaf164c455e81290f23365 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/resolve/ambiguityWithTwoCorrespondingFunctionTypes.antlrtree.txt b/grammar/testData/diagnostics/resolve/ambiguityWithTwoCorrespondingFunctionTypes.antlrtree.txt index 734d6513a..ea319cb94 100644 --- a/grammar/testData/diagnostics/resolve/ambiguityWithTwoCorrespondingFunctionTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/ambiguityWithTwoCorrespondingFunctionTypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: ambiguityWithTwoCorrespondingFunctionTypes.kt - e6debe47cd2ea9ca0b8f07d33a4ae854 +File: ambiguityWithTwoCorrespondingFunctionTypes.kt - fd3645a200bfa61122895a2f38786d04 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/resolve/anonymousObjectFromTopLevelMember.antlrtree.txt b/grammar/testData/diagnostics/resolve/anonymousObjectFromTopLevelMember.antlrtree.txt index 000813a82..4ac8f8352 100644 --- a/grammar/testData/diagnostics/resolve/anonymousObjectFromTopLevelMember.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/anonymousObjectFromTopLevelMember.antlrtree.txt @@ -371,6 +371,4 @@ File: anonymousObjectFromTopLevelMember.kt - 2c3bc99219985866dc0bc84b44724965 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/constructorVsCompanion.antlrtree.txt b/grammar/testData/diagnostics/resolve/constructorVsCompanion.antlrtree.txt index ae6a1b716..7a4fde427 100644 --- a/grammar/testData/diagnostics/resolve/constructorVsCompanion.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/constructorVsCompanion.antlrtree.txt @@ -335,6 +335,4 @@ File: constructorVsCompanion.kt - e74b4c8d24cfc77792f191072bd1a8fd IntegerLiteral("42") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/dslMarker/annotatedFunctionType.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/annotatedFunctionType.antlrtree.txt index dc515a7a5..2e0fd5a22 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/annotatedFunctionType.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/annotatedFunctionType.antlrtree.txt @@ -1,5 +1,4 @@ -File: annotatedFunctionType.kt - 77303b0511489c7f6ebff8a74d9facf9 - NL("\n") +File: annotatedFunctionType.kt - 5de1e5ecfa82990e13988762a175702c NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/resolve/dslMarker/annotatedFunctionType_1_4.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/annotatedFunctionType_1_4.antlrtree.txt index adc16f630..cfa290be8 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/annotatedFunctionType_1_4.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/annotatedFunctionType_1_4.antlrtree.txt @@ -1,4 +1,4 @@ -File: annotatedFunctionType_1_4.kt - d6527771394c6270dc5b1110a9780616 +File: annotatedFunctionType_1_4.kt - 1a7e9484a1044bb4bbdf0db09e7459a5 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/resolve/dslMarker/annotatedTypeArgument.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/annotatedTypeArgument.antlrtree.txt index 31dd5d695..f9b7df4ed 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/annotatedTypeArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/annotatedTypeArgument.antlrtree.txt @@ -1,4 +1,5 @@ -File: annotatedTypeArgument.kt - 473b0a4eb65a079f39b70f2cdd327fd3 +File: annotatedTypeArgument.kt - c7bf1dfd8f938e6a3cb689adc5ee9f51 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/dslMarker/dslMarkerOnTypealias.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/dslMarkerOnTypealias.antlrtree.txt index 95bac8e61..d9d8878ee 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/dslMarkerOnTypealias.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/dslMarkerOnTypealias.antlrtree.txt @@ -1,4 +1,4 @@ -File: dslMarkerOnTypealias.kt - 899c994756c42943a5f25c2633ca01b7 +File: dslMarkerOnTypealias.kt - b46fbf0d884176a4184fea614f6a6f21 packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: dslMarkerOnTypealias.kt - 899c994756c42943a5f25c2633ca01b7 modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation userType simpleUserType @@ -547,6 +547,4 @@ File: dslMarkerOnTypealias.kt - 899c994756c42943a5f25c2633ca01b7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/dslMarker/dslMarkerWithTypealiasRecursion.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/dslMarkerWithTypealiasRecursion.antlrtree.txt index 9e42d004d..742cd1321 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/dslMarkerWithTypealiasRecursion.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/dslMarkerWithTypealiasRecursion.antlrtree.txt @@ -1,5 +1,4 @@ -File: dslMarkerWithTypealiasRecursion.kt - 1253011f280ab734ab3ede9bd69bd492 - NL("\n") +File: dslMarkerWithTypealiasRecursion.kt - d4e99069c617a58100661ad48051517c packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/dslMarker/inheritedMarker.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/inheritedMarker.antlrtree.txt index 7a538a630..455b3ac2d 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/inheritedMarker.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/inheritedMarker.antlrtree.txt @@ -1,4 +1,5 @@ -File: inheritedMarker.kt - df9d75f288d9ae4bc101d83cbe0d00a4 +File: inheritedMarker.kt - aa2590001f6415dc995fecb3ac7bd310 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/dslMarker/insideTopLevelExtension.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/insideTopLevelExtension.antlrtree.txt index 1c64025aa..84cf1a8d4 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/insideTopLevelExtension.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/insideTopLevelExtension.antlrtree.txt @@ -1,4 +1,5 @@ -File: insideTopLevelExtension.kt - 144b2dce39b2727a043c1d31f1a5d7f0 +File: insideTopLevelExtension.kt - 5810a146fed9c922c1b79f6491d070ad + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/dslMarker/insideTopLevelExtensionAnnotatedType.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/insideTopLevelExtensionAnnotatedType.antlrtree.txt index 5ca7bedae..ecaf873c5 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/insideTopLevelExtensionAnnotatedType.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/insideTopLevelExtensionAnnotatedType.antlrtree.txt @@ -1,4 +1,5 @@ -File: insideTopLevelExtensionAnnotatedType.kt - bec875067b997dc6383821b70c82ac9c +File: insideTopLevelExtensionAnnotatedType.kt - fb8cca792d07a6e6841c1a5da81c7553 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/dslMarker/kt29948.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/kt29948.antlrtree.txt index 8c35ef907..370940fe8 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/kt29948.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/kt29948.antlrtree.txt @@ -316,6 +316,4 @@ File: kt29948.kt - fae2677ee437d09bbf2c2478e3e8e891 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/dslMarker/kt31360.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/kt31360.antlrtree.txt index 964388c9c..83aa7ffe9 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/kt31360.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/kt31360.antlrtree.txt @@ -423,6 +423,4 @@ File: kt31360.kt - 3366029c1e8797cd08840b69ce640328 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/dslMarker/markedReceiverWithCapturedTypeArgument.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/markedReceiverWithCapturedTypeArgument.antlrtree.txt index 59814f7ac..5d99e78c1 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/markedReceiverWithCapturedTypeArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/markedReceiverWithCapturedTypeArgument.antlrtree.txt @@ -121,6 +121,4 @@ File: markedReceiverWithCapturedTypeArgument.kt - 5796257eb2f0c3cb6ad37875606901 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/dslMarker/markersIntersection.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/markersIntersection.antlrtree.txt index 4e3a57547..becbf3732 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/markersIntersection.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/markersIntersection.antlrtree.txt @@ -1,4 +1,4 @@ -File: markersIntersection.kt - 3366842dd5ba5771051c33675b8d098b +File: markersIntersection.kt - a23a209c66dc4065c2fbeff858e0993c NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/resolve/dslMarker/nestedWithSameReceiver.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/nestedWithSameReceiver.antlrtree.txt index ca9173050..a5abc2f9d 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/nestedWithSameReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/nestedWithSameReceiver.antlrtree.txt @@ -1,4 +1,5 @@ -File: nestedWithSameReceiver.kt - 0bd72a6643244cfd4ee3de36d0a79c1e +File: nestedWithSameReceiver.kt - 30b9ff12fa50749ff16df7510ed67333 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/dslMarker/simpleAnnotatedClasses.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/simpleAnnotatedClasses.antlrtree.txt index e4ea95efa..7982f5c3b 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/simpleAnnotatedClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/simpleAnnotatedClasses.antlrtree.txt @@ -1,4 +1,5 @@ -File: simpleAnnotatedClasses.kt - 02ce0e1fb85e556a1f8ceed2d0a8ae88 +File: simpleAnnotatedClasses.kt - 17be8558315b6bd55c3042ca787350f8 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/dslMarker/simpleAnnotatedTypes.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/simpleAnnotatedTypes.antlrtree.txt index 28bdca8c9..a18a5ef71 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/simpleAnnotatedTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/simpleAnnotatedTypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: simpleAnnotatedTypes.kt - ab86060a849b3856e88cf0ba87a460ca +File: simpleAnnotatedTypes.kt - d21e70b02d00424d1891f74e480d5fcb + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/dslMarker/substitutedReceiverAnnotatedClasses.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/substitutedReceiverAnnotatedClasses.antlrtree.txt index 114227149..ad9a5ee2b 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/substitutedReceiverAnnotatedClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/substitutedReceiverAnnotatedClasses.antlrtree.txt @@ -1,4 +1,5 @@ -File: substitutedReceiverAnnotatedClasses.kt - e598df269422b90e8bca5d8b689b876b +File: substitutedReceiverAnnotatedClasses.kt - 121aacf9233d1642914af1fb617ca005 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/dslMarker/substitutedReceiverAnnotatedType.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/substitutedReceiverAnnotatedType.antlrtree.txt index 0eaa02bb3..1464a08a6 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/substitutedReceiverAnnotatedType.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/substitutedReceiverAnnotatedType.antlrtree.txt @@ -1,4 +1,4 @@ -File: substitutedReceiverAnnotatedType.kt - 16a4e8f99502e32ae9eba6341d4a2051 +File: substitutedReceiverAnnotatedType.kt - 5008a69a814bd661fce4f4217c0491fa NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/resolve/dslMarker/threeImplicitReceivers.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/threeImplicitReceivers.antlrtree.txt index 2239e0181..52ec9abb8 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/threeImplicitReceivers.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/threeImplicitReceivers.antlrtree.txt @@ -1,5 +1,4 @@ -File: threeImplicitReceivers.kt - 549fc8cbc17c3172c1006fe6031970d0 - NL("\n") +File: threeImplicitReceivers.kt - b29977492ecda026c904c2c6aa4bd131 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/dslMarker/threeImplicitReceivers2.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/threeImplicitReceivers2.antlrtree.txt index 2dafbe950..8c486663f 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/threeImplicitReceivers2.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/threeImplicitReceivers2.antlrtree.txt @@ -1,5 +1,4 @@ -File: threeImplicitReceivers2.kt - 2e66a78cc228117b8c5ae0ec578a4cb1 - NL("\n") +File: threeImplicitReceivers2.kt - 2bf46e14b772e0f7df76032a3fc43d1e packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/dslMarker/twoImplicitReceivers.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/twoImplicitReceivers.antlrtree.txt index 15d4838c7..1cae1db6f 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/twoImplicitReceivers.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/twoImplicitReceivers.antlrtree.txt @@ -1,4 +1,5 @@ -File: twoImplicitReceivers.kt - 8b1ea2466cda702d41513b5074a08f65 +File: twoImplicitReceivers.kt - 30764304f4b2aebcbecec9d2b9ced940 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/dslMarker/twoLanguages.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/twoLanguages.antlrtree.txt index f6d5b1ef6..b708ee732 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/twoLanguages.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/twoLanguages.antlrtree.txt @@ -1,4 +1,5 @@ -File: twoLanguages.kt - 7d9461e90337260ea0fde483b9769215 +File: twoLanguages.kt - 4e8a28d7283a1ae829ce73cebca3c3ea + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/dslMarker/typeAliasToBuiltinFunctionType.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/typeAliasToBuiltinFunctionType.antlrtree.txt new file mode 100644 index 000000000..2cebb3f1a --- /dev/null +++ b/grammar/testData/diagnostics/resolve/dslMarker/typeAliasToBuiltinFunctionType.antlrtree.txt @@ -0,0 +1,393 @@ +File: typeAliasToBuiltinFunctionType.kt - cef7002fe883b4f5f5172f3d51cc2ac2 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("DslMarker") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("MyDsl") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("MyDsl") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("X") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("x") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("MyDsl") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("a") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("useX1") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("FunctionType") + ASSIGNMENT("=") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("useX2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FunctionType") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("useX1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("useX2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/dslMarker/useOfExtensions.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/useOfExtensions.antlrtree.txt index 60ef114b4..3c29b835d 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/useOfExtensions.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/useOfExtensions.antlrtree.txt @@ -1,4 +1,5 @@ -File: useOfExtensions.kt - 8f8f5c2f7340d2f4ec4db59298bd42b3 +File: useOfExtensions.kt - be50875a06ace3c3c719676178dc71ca + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/dslMarker/usingWith.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/usingWith.antlrtree.txt index e6ff44887..f973bfd4f 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/usingWith.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/usingWith.antlrtree.txt @@ -1,4 +1,5 @@ -File: usingWith.kt - ab7f81a65fb683da7633741e49de74af +File: usingWith.kt - 1f8bfcc5009a661272d42b4db3a42b76 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/dslMarker/usingWithThis.antlrtree.txt b/grammar/testData/diagnostics/resolve/dslMarker/usingWithThis.antlrtree.txt index d95dbec42..fcf73517b 100644 --- a/grammar/testData/diagnostics/resolve/dslMarker/usingWithThis.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/dslMarker/usingWithThis.antlrtree.txt @@ -1,4 +1,5 @@ -File: usingWithThis.kt - 7f23060faaed921999aba2367f02d642 +File: usingWithThis.kt - 1849b223b27d3b8977a3948284e8611b + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/implicitReceiverProperty.test.antlrtree.txt b/grammar/testData/diagnostics/resolve/implicitReceiverProperty.test.antlrtree.txt index 5efc741f3..7fce59f87 100644 --- a/grammar/testData/diagnostics/resolve/implicitReceiverProperty.test.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/implicitReceiverProperty.test.antlrtree.txt @@ -302,6 +302,4 @@ File: implicitReceiverProperty.test.kt - 6b17a07ce028f2173fbdf31d8faa49f9 simpleIdentifier Identifier("length") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/inferenceInLinkedLambdasDependentOnExpectedType.antlrtree.txt b/grammar/testData/diagnostics/resolve/inferenceInLinkedLambdasDependentOnExpectedType.antlrtree.txt index e342e04b6..b01862633 100644 --- a/grammar/testData/diagnostics/resolve/inferenceInLinkedLambdasDependentOnExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/inferenceInLinkedLambdasDependentOnExpectedType.antlrtree.txt @@ -382,6 +382,4 @@ File: inferenceInLinkedLambdasDependentOnExpectedType.kt - b10f37a27cbf6c0621e26 IntegerLiteral("0") RCURL("}") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/KT-4372.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/KT-4372.antlrtree.txt index 76913e155..ec912176a 100644 --- a/grammar/testData/diagnostics/resolve/invoke/KT-4372.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/KT-4372.antlrtree.txt @@ -1,4 +1,5 @@ -File: KT-4372.kt - d4f9fc276cf452bcdbf9a3e85a89a4e4 +File: KT-4372.kt - cb2d8631233ea530875500240fe58528 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/resolve/invoke/errors/ambiguityForInvoke.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/errors/ambiguityForInvoke.antlrtree.txt index 43e6be3ed..4bea96cab 100644 --- a/grammar/testData/diagnostics/resolve/invoke/errors/ambiguityForInvoke.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/errors/ambiguityForInvoke.antlrtree.txt @@ -1,4 +1,4 @@ -File: ambiguityForInvoke.kt - e22025146ac6595d65f542cfb4ad0c0e +File: ambiguityForInvoke.kt - 92744ac6cdc6d93cc0b09f4eb3755c69 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/resolve/invoke/errors/receiverPresenceErrorForInvoke.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/errors/receiverPresenceErrorForInvoke.antlrtree.txt index 7f493bf1a..d8d790dfb 100644 --- a/grammar/testData/diagnostics/resolve/invoke/errors/receiverPresenceErrorForInvoke.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/errors/receiverPresenceErrorForInvoke.antlrtree.txt @@ -275,6 +275,4 @@ File: receiverPresenceErrorForInvoke.kt - ecad15fb8afca05a6a310452d9b853c1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/errors/typeInferenceErrorForInvoke.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/errors/typeInferenceErrorForInvoke.antlrtree.txt index 22aac3293..4058d87cb 100644 --- a/grammar/testData/diagnostics/resolve/invoke/errors/typeInferenceErrorForInvoke.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/errors/typeInferenceErrorForInvoke.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeInferenceErrorForInvoke.kt - 1122fec0f6e6201728474169709f2138 - NL("\n") +File: typeInferenceErrorForInvoke.kt - b328724c1cc05ae1b7c1012a79157a86 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/resolve/invoke/errors/unresolvedInvoke.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/errors/unresolvedInvoke.antlrtree.txt index b7c2fba50..62fb557cd 100644 --- a/grammar/testData/diagnostics/resolve/invoke/errors/unresolvedInvoke.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/errors/unresolvedInvoke.antlrtree.txt @@ -80,6 +80,4 @@ File: unresolvedInvoke.kt - b582d19a897b4bbdc72175429bac97cd semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/errors/unsafeCallWithInvoke.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/errors/unsafeCallWithInvoke.antlrtree.txt index 76d1c2cce..97ddabfaf 100644 --- a/grammar/testData/diagnostics/resolve/invoke/errors/unsafeCallWithInvoke.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/errors/unsafeCallWithInvoke.antlrtree.txt @@ -1,5 +1,4 @@ -File: unsafeCallWithInvoke.kt - 8fd531585c54c93989d0b199e229678f - NL("\n") +File: unsafeCallWithInvoke.kt - 1f9934f62342f4801ae6ca4945b1f365 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/resolve/invoke/errors/wrongReceiverForInvokeOnExpression.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/errors/wrongReceiverForInvokeOnExpression.antlrtree.txt index b0d38d699..fce3864c6 100644 --- a/grammar/testData/diagnostics/resolve/invoke/errors/wrongReceiverForInvokeOnExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/errors/wrongReceiverForInvokeOnExpression.antlrtree.txt @@ -1,6 +1,4 @@ -File: wrongReceiverForInvokeOnExpression.kt - 7328729b9e8820166e4d55bef4dbd21e - NL("\n") - NL("\n") +File: wrongReceiverForInvokeOnExpression.kt - 6ebd664dbd8aa844d388cb844b9e0181 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/invoke/errors/wrongReceiverTypeForInvoke.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/errors/wrongReceiverTypeForInvoke.antlrtree.txt index 3be02b8c5..ed91797a0 100644 --- a/grammar/testData/diagnostics/resolve/invoke/errors/wrongReceiverTypeForInvoke.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/errors/wrongReceiverTypeForInvoke.antlrtree.txt @@ -1,5 +1,4 @@ -File: wrongReceiverTypeForInvoke.kt - c98cf51196ec217953b87050f1810580 - NL("\n") +File: wrongReceiverTypeForInvoke.kt - b2e69ac287fa582745c1354cdae46be7 NL("\n") NL("\n") packageHeader @@ -156,6 +155,4 @@ File: wrongReceiverTypeForInvoke.kt - c98cf51196ec217953b87050f1810580 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/extensionValueAsNonExtension.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/extensionValueAsNonExtension.antlrtree.txt index 6440c2db6..fafbc0878 100644 --- a/grammar/testData/diagnostics/resolve/invoke/extensionValueAsNonExtension.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/extensionValueAsNonExtension.antlrtree.txt @@ -1,4 +1,4 @@ -File: extensionValueAsNonExtension.kt - b03f4daf4ab598f78f9a32be099fb355 +File: extensionValueAsNonExtension.kt - c78de8b6ae8396ef86ffb7db9743d47d NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/resolve/invoke/functionExpectedWhenSeveralInvokesExist.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/functionExpectedWhenSeveralInvokesExist.antlrtree.txt index ea643bd60..c33fccfeb 100644 --- a/grammar/testData/diagnostics/resolve/invoke/functionExpectedWhenSeveralInvokesExist.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/functionExpectedWhenSeveralInvokesExist.antlrtree.txt @@ -1,5 +1,4 @@ -File: functionExpectedWhenSeveralInvokesExist.kt - a22144dac7d2d0c06e836ec5cb41ccc8 - NL("\n") +File: functionExpectedWhenSeveralInvokesExist.kt - ddd2c3fab5280ffe801cea8d686bf844 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/resolve/invoke/implicitInvokeAfterSafeCall.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/implicitInvokeAfterSafeCall.antlrtree.txt index bd85d2cf4..9f2d8a9e1 100644 --- a/grammar/testData/diagnostics/resolve/invoke/implicitInvokeAfterSafeCall.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/implicitInvokeAfterSafeCall.antlrtree.txt @@ -1,5 +1,4 @@ -File: implicitInvokeAfterSafeCall.kt - f044ab7d4c61c4bfddc5992206352d8c - NL("\n") +File: implicitInvokeAfterSafeCall.kt - d82071ea4ea9a76f3c58cd27fe1e6505 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/resolve/invoke/invokeAsMemberExtensionToExplicitReceiver.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/invokeAsMemberExtensionToExplicitReceiver.antlrtree.txt index 010b68190..133228d5a 100644 --- a/grammar/testData/diagnostics/resolve/invoke/invokeAsMemberExtensionToExplicitReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/invokeAsMemberExtensionToExplicitReceiver.antlrtree.txt @@ -1,4 +1,5 @@ -File: invokeAsMemberExtensionToExplicitReceiver.kt - c1b4bcd49e8623bfb47a65280ef8cb8f +File: invokeAsMemberExtensionToExplicitReceiver.kt - ba28d558c8c46e6a4a4bab61e5c6fe87 + NL("\n") packageHeader importList topLevelObject @@ -202,5 +203,5 @@ File: invokeAsMemberExtensionToExplicitReceiver.kt - c1b4bcd49e8623bfb47a65280ef NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/kt3772.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/kt3772.antlrtree.txt index 282ee06af..4a9a1f86a 100644 --- a/grammar/testData/diagnostics/resolve/invoke/kt3772.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/kt3772.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt3772.kt - dd3cd3f1a152ba21fcb43f8e2523f3cb +File: kt3772.kt - 4a718e8cb8078f6797839818debe6644 + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -426,5 +427,5 @@ File: kt3772.kt - dd3cd3f1a152ba21fcb43f8e2523f3cb NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/kt4204-completeNestedCallsForInvoke.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/kt4204-completeNestedCallsForInvoke.antlrtree.txt index a52e216e7..68bc31f76 100644 --- a/grammar/testData/diagnostics/resolve/invoke/kt4204-completeNestedCallsForInvoke.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/kt4204-completeNestedCallsForInvoke.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt4204-completeNestedCallsForInvoke.kt - a3d1cb4089298d68bbb5b26ab4ad9d21 +File: kt4204-completeNestedCallsForInvoke.kt - 28dbc775af7b4f2ee4d363133806d9a6 + NL("\n") NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/resolve/invoke/kt4321InvokeOnEnum.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/kt4321InvokeOnEnum.antlrtree.txt index 97d5ba001..a4203ff20 100644 --- a/grammar/testData/diagnostics/resolve/invoke/kt4321InvokeOnEnum.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/kt4321InvokeOnEnum.antlrtree.txt @@ -303,6 +303,4 @@ File: kt4321InvokeOnEnum.kt - 82ce1ce549a99d2a08c68acab6850300 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/kt9517.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/kt9517.antlrtree.txt index de23e8987..ed05f2477 100644 --- a/grammar/testData/diagnostics/resolve/invoke/kt9517.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/kt9517.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt9517.kt - 36efc0420a86f42aa2b6019008379aad - NL("\n") +File: kt9517.kt - d3866d114e0a24b2fdd6034c101ee478 NL("\n") packageHeader importList @@ -279,5 +278,5 @@ File: kt9517.kt - 36efc0420a86f42aa2b6019008379aad NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/resolve/invoke/kt9805.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/kt9805.antlrtree.txt index d6bcaee22..28fd41abe 100644 --- a/grammar/testData/diagnostics/resolve/invoke/kt9805.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/kt9805.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt9805.kt - 3569ae11583f776020b3ec4530d0648e +File: kt9805.kt - 3507a06bda22f6f863edf95918e28060 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/invoke/reportFunctionExpectedWhenOneInvokeExist.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/reportFunctionExpectedWhenOneInvokeExist.antlrtree.txt index e6493d6a2..572927321 100644 --- a/grammar/testData/diagnostics/resolve/invoke/reportFunctionExpectedWhenOneInvokeExist.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/reportFunctionExpectedWhenOneInvokeExist.antlrtree.txt @@ -1,5 +1,4 @@ -File: reportFunctionExpectedWhenOneInvokeExist.kt - d0c318099a2cf11e173f7a20af836c58 - NL("\n") +File: reportFunctionExpectedWhenOneInvokeExist.kt - c016471f6f6e50979896d1ada25e06b4 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/resolve/invoke/wrongInvokeExtension.antlrtree.txt b/grammar/testData/diagnostics/resolve/invoke/wrongInvokeExtension.antlrtree.txt index e7c62f21c..17a0e4a6c 100644 --- a/grammar/testData/diagnostics/resolve/invoke/wrongInvokeExtension.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/invoke/wrongInvokeExtension.antlrtree.txt @@ -1,5 +1,4 @@ -File: wrongInvokeExtension.kt - 95ec7defabd526230595394f86cf1e60 - NL("\n") +File: wrongInvokeExtension.kt - 0aba6202571bd691354ff8289abb99a3 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/resolve/kt28109.antlrtree.txt b/grammar/testData/diagnostics/resolve/kt28109.antlrtree.txt new file mode 100644 index 000000000..1542a38d7 --- /dev/null +++ b/grammar/testData/diagnostics/resolve/kt28109.antlrtree.txt @@ -0,0 +1,229 @@ +File: kt28109.kt - 0d2b212191e8dcc9ca100b9b6cdebf79 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Cell") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + GET("get") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Cell") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + indexingSuffix + LSQUARE("[") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RSQUARE("]") + RPAREN(")") + postfixUnarySuffix + postfixUnaryOperator + INCR("++") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/kt36264.antlrtree.txt b/grammar/testData/diagnostics/resolve/kt36264.antlrtree.txt index 6e0c3d6db..37497d106 100644 --- a/grammar/testData/diagnostics/resolve/kt36264.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/kt36264.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt36264.kt - 4e5fd25aaebee85b61af713a8bf77e32 +File: kt36264.kt - c1091a27c1b823699ddce8db4f83cbf2 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/resolve/kt49736.antlrtree.txt b/grammar/testData/diagnostics/resolve/kt49736.antlrtree.txt new file mode 100644 index 000000000..e0e3993b7 --- /dev/null +++ b/grammar/testData/diagnostics/resolve/kt49736.antlrtree.txt @@ -0,0 +1,79 @@ +File: kt49736.kt - 26217e35c15afd7e7c1c61b7ed1e0d21 + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("collections") + DOT(".") + simpleIdentifier + Identifier("forEach") + importAlias + AS("as") + simpleIdentifier + Identifier("forEach1") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("forEach1") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/localObject.antlrtree.txt b/grammar/testData/diagnostics/resolve/localObject.antlrtree.txt index 5f962a848..ab6a3985d 100644 --- a/grammar/testData/diagnostics/resolve/localObject.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/localObject.antlrtree.txt @@ -71,6 +71,4 @@ File: localObject.kt - d575e28a359c476277af1957111108db semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/nestedCalls/analyzeUnmappedArguments.antlrtree.txt b/grammar/testData/diagnostics/resolve/nestedCalls/analyzeUnmappedArguments.antlrtree.txt index bf3763600..973ff2290 100644 --- a/grammar/testData/diagnostics/resolve/nestedCalls/analyzeUnmappedArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/nestedCalls/analyzeUnmappedArguments.antlrtree.txt @@ -1,4 +1,5 @@ -File: analyzeUnmappedArguments.kt - a70192f2e3259d5a24259626c588a027 +File: analyzeUnmappedArguments.kt - a65fc7b6d1d2ad4e83dd8278d2c857fe + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/resolve/nestedCalls/argumentsInParentheses.antlrtree.txt b/grammar/testData/diagnostics/resolve/nestedCalls/argumentsInParentheses.antlrtree.txt index 773f17b6f..58814d978 100644 --- a/grammar/testData/diagnostics/resolve/nestedCalls/argumentsInParentheses.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/nestedCalls/argumentsInParentheses.antlrtree.txt @@ -729,6 +729,4 @@ File: argumentsInParentheses.kt - 3008fad1be3a6b517733d2fdfea8d5f4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.antlrtree.txt b/grammar/testData/diagnostics/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.antlrtree.txt index 8141d6665..1cbf85adf 100644 --- a/grammar/testData/diagnostics/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/nestedCalls/completeTypeInferenceForNestedInNoneApplicable.antlrtree.txt @@ -1,4 +1,4 @@ -File: completeTypeInferenceForNestedInNoneApplicable.kt - 9fbdf2594aeda96daffda398e7ad17cf +File: completeTypeInferenceForNestedInNoneApplicable.kt - 16e917fcc660704ec271a9b2929cf343 NL("\n") packageHeader PACKAGE("package") diff --git a/grammar/testData/diagnostics/resolve/nestedCalls/completeUnmappedArguments.antlrtree.txt b/grammar/testData/diagnostics/resolve/nestedCalls/completeUnmappedArguments.antlrtree.txt index c9d5922c3..bff317dc7 100644 --- a/grammar/testData/diagnostics/resolve/nestedCalls/completeUnmappedArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/nestedCalls/completeUnmappedArguments.antlrtree.txt @@ -1,4 +1,5 @@ -File: completeUnmappedArguments.kt - 9bc0d4bdb7b9979089adafff48fcbb08 +File: completeUnmappedArguments.kt - a6972163ecca9d4bdccc2e95504f28ee + NL("\n") packageHeader PACKAGE("package") identifier @@ -514,6 +515,4 @@ File: completeUnmappedArguments.kt - 9bc0d4bdb7b9979089adafff48fcbb08 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/nestedCalls/kt5971NestedSafeCall.antlrtree.txt b/grammar/testData/diagnostics/resolve/nestedCalls/kt5971NestedSafeCall.antlrtree.txt index 2d8ceeb15..062926485 100644 --- a/grammar/testData/diagnostics/resolve/nestedCalls/kt5971NestedSafeCall.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/nestedCalls/kt5971NestedSafeCall.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt5971NestedSafeCall.kt - 2b74275b30eb6458245511fa1e341f89 +File: kt5971NestedSafeCall.kt - 4a6a4577775e76349188c9c184f58668 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/resolve/nestedCalls/kt7597.antlrtree.txt b/grammar/testData/diagnostics/resolve/nestedCalls/kt7597.antlrtree.txt index db9d5f1a8..565a6664d 100644 --- a/grammar/testData/diagnostics/resolve/nestedCalls/kt7597.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/nestedCalls/kt7597.antlrtree.txt @@ -225,6 +225,4 @@ File: kt7597.kt - b6b1d0994def821e28d37e2012059711 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/nestedCalls/twoTypeParameters.antlrtree.txt b/grammar/testData/diagnostics/resolve/nestedCalls/twoTypeParameters.antlrtree.txt index 2635725cd..f7fc1e81a 100644 --- a/grammar/testData/diagnostics/resolve/nestedCalls/twoTypeParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/nestedCalls/twoTypeParameters.antlrtree.txt @@ -1,4 +1,4 @@ -File: twoTypeParameters.kt - 2e3c19dc77ca80cd02b2562f3e93368a +File: twoTypeParameters.kt - 21e08719f890161e22481085e6a0cf2e NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/resolve/newLineLambda.antlrtree.txt b/grammar/testData/diagnostics/resolve/newLineLambda.antlrtree.txt index e14e3abd7..f69c7c30c 100644 --- a/grammar/testData/diagnostics/resolve/newLineLambda.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/newLineLambda.antlrtree.txt @@ -1,5 +1,4 @@ -File: newLineLambda.kt - 1635043dbe86649707fe0ec34527b352 - NL("\n") +File: newLineLambda.kt - 61cd63e07c00d1bf03a3d05859402740 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/resolve/noCandidates/kt2787.antlrtree.txt b/grammar/testData/diagnostics/resolve/noCandidates/kt2787.antlrtree.txt index bd56a1367..2784f0bef 100644 --- a/grammar/testData/diagnostics/resolve/noCandidates/kt2787.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/noCandidates/kt2787.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2787.kt - 6cfad4168cec2c4b4d3543e25969d5ca +File: kt2787.kt - 83efeb7bcb1c36f333cad23c221139d4 + NL("\n") packageHeader importList topLevelObject @@ -114,6 +115,4 @@ File: kt2787.kt - 6cfad4168cec2c4b4d3543e25969d5ca semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/objectLiteralAsArgument.antlrtree.txt b/grammar/testData/diagnostics/resolve/objectLiteralAsArgument.antlrtree.txt index d041a8623..f377560ee 100644 --- a/grammar/testData/diagnostics/resolve/objectLiteralAsArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/objectLiteralAsArgument.antlrtree.txt @@ -1525,6 +1525,4 @@ File: objectLiteralAsArgument.kt - 91af49af4bb8fcd33519ea1bb478e2da semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/allLambdas.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/allLambdas.antlrtree.txt index 649629f01..63f78c43e 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/allLambdas.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/allLambdas.antlrtree.txt @@ -1,5 +1,4 @@ -File: allLambdas.kt - 5ec9eeafa962b9f058b31e03a45c5c77 - NL("\n") +File: allLambdas.kt - cd42461f4a56b454f496588c2d890b29 NL("\n") NL("\n") packageHeader @@ -309,6 +308,4 @@ File: allLambdas.kt - 5ec9eeafa962b9f058b31e03a45c5c77 RCURL("}") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/extensionReceiverAndVarargs.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/extensionReceiverAndVarargs.antlrtree.txt index dc5ae41c7..73722f9a4 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/extensionReceiverAndVarargs.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/extensionReceiverAndVarargs.antlrtree.txt @@ -267,6 +267,4 @@ File: extensionReceiverAndVarargs.kt - c3642ae2d96b1d86fbea45fdf4358925 literalConstant IntegerLiteral("3") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/genericClash.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/genericClash.antlrtree.txt index 1ae9dc020..11496960c 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/genericClash.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/genericClash.antlrtree.txt @@ -1,4 +1,4 @@ -File: genericClash.kt - 232ae0b4763f50a1c265915b517fdb0e +File: genericClash.kt - a8c243d4ed430bacf155e80bc44ab56b NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/genericWithProjection.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/genericWithProjection.antlrtree.txt index e86431c1e..a396e0442 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/genericWithProjection.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/genericWithProjection.antlrtree.txt @@ -1,4 +1,4 @@ -File: genericWithProjection.kt - 836961ef4f9b1443dc18d9f5c192dd52 +File: genericWithProjection.kt - d0b7ae1f2f27a583605e7d35481d0905 NL("\n") NL("\n") packageHeader @@ -474,5 +474,5 @@ File: genericWithProjection.kt - 836961ef4f9b1443dc18d9f5c192dd52 QUOTE_CLOSE(""") RPAREN(")") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/kt10640.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/kt10640.antlrtree.txt index fcaa0a167..1be15962f 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/kt10640.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/kt10640.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt10640.kt - 90015b81cd48a597b3d8d36f7c41459c +File: kt10640.kt - 5f07406ab11e9cf12d4286cf2c3c385b NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/kt31670.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/kt31670.antlrtree.txt index de81325f1..084f80f33 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/kt31670.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/kt31670.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt31670.kt - 9eca990a9dc09678da6cfeb8de3dfe37 +File: kt31670.kt - 31ee6f80edce0bfc1993758777c2c453 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/kt31670_compat.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/kt31670_compat.antlrtree.txt index ddb01ad6c..968939cd7 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/kt31670_compat.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/kt31670_compat.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt31670_compat.kt - e569b4817e40265d693e2feb42717b05 - NL("\n") +File: kt31670_compat.kt - 52ffab7a5aa04113c254b2d678a1f430 NL("\n") NL("\n") packageHeader @@ -404,6 +403,4 @@ File: kt31670_compat.kt - e569b4817e40265d693e2feb42717b05 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/kt31758_compat.test.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/kt31758_compat.test.antlrtree.txt index 8f671162b..380b8f9fa 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/kt31758_compat.test.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/kt31758_compat.test.antlrtree.txt @@ -74,6 +74,4 @@ File: kt31758_compat.test.kt - fd7ef0e9aa7fb2ab3c080d0235f24919 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/kt37692.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/kt37692.antlrtree.txt index d79798bf3..78f4eb2c4 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/kt37692.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/kt37692.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt37692.kt - 6db962461415b1e860fc13f1473a211b +File: kt37692.kt - 96694656848cd508eb6cc913983f7c33 + NL("\n") NL("\n") NL("\n") packageHeader @@ -454,6 +455,4 @@ File: kt37692.kt - 6db962461415b1e860fc13f1473a211b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/numberOfDefaults.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/numberOfDefaults.antlrtree.txt index 2032950f3..166941ab1 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/numberOfDefaults.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/numberOfDefaults.antlrtree.txt @@ -410,6 +410,4 @@ File: numberOfDefaults.kt - fa8a330db0472425ce862ae6e91b2621 RPAREN(")") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/originalExamples.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/originalExamples.antlrtree.txt index 5f39fd2e5..c2ebc3cf2 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/originalExamples.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/originalExamples.antlrtree.txt @@ -1,5 +1,4 @@ -File: originalExamples.kt - 2cf4dded97d3440f88514ca6768c510d - NL("\n") +File: originalExamples.kt - 13b82ebdb8be0fdcfada9b68c64dfb3c NL("\n") NL("\n") packageHeader @@ -830,6 +829,4 @@ File: originalExamples.kt - 2cf4dded97d3440f88514ca6768c510d QUOTE_CLOSE(""") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.test.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.test.antlrtree.txt index 116ab4256..8d9832f41 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.test.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/overloadResolutionOnNullableContravariantParameter_compat.test.antlrtree.txt @@ -74,6 +74,4 @@ File: overloadResolutionOnNullableContravariantParameter_compat.test.kt - 86674e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/varargWithMoreSpecificSignature.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/varargWithMoreSpecificSignature.antlrtree.txt index b124e66a4..1cf0d7060 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/varargWithMoreSpecificSignature.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/varargWithMoreSpecificSignature.antlrtree.txt @@ -168,6 +168,4 @@ File: varargWithMoreSpecificSignature.kt - f7a3f5e4d350e1b9a83a25304ca5a068 QUOTE_OPEN(""") QUOTE_CLOSE(""") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/varargs.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/varargs.antlrtree.txt index 9cdd8ac04..bfcee627a 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/varargs.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/varargs.antlrtree.txt @@ -301,6 +301,4 @@ File: varargs.kt - 18c752815f7636dcb78c76ffea0e2568 QUOTE_CLOSE(""") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/varargsInDifferentPositions.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/varargsInDifferentPositions.antlrtree.txt index 0877d7ee7..d2ea68125 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/varargsInDifferentPositions.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/varargsInDifferentPositions.antlrtree.txt @@ -462,6 +462,4 @@ File: varargsInDifferentPositions.kt - e003cffe22ddd6148f47615d1598eb9d RPAREN(")") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/varargsMixed.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/varargsMixed.antlrtree.txt index b5a508191..e2b415369 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/varargsMixed.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/varargsMixed.antlrtree.txt @@ -403,6 +403,4 @@ File: varargsMixed.kt - 7716b2b80486a00509a33fd5329e83c4 QUOTE_CLOSE(""") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/varargsWithRecursiveGenerics.test.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/varargsWithRecursiveGenerics.test.antlrtree.txt index 6b793a6d7..692710f54 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/varargsWithRecursiveGenerics.test.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/varargsWithRecursiveGenerics.test.antlrtree.txt @@ -630,6 +630,4 @@ File: varargsWithRecursiveGenerics.test.kt - 11a134ceb01455162bb05e7578cf6c3e Identifier("a") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/overloadConflicts/withVariance.antlrtree.txt b/grammar/testData/diagnostics/resolve/overloadConflicts/withVariance.antlrtree.txt index 042a37dd1..7fb24a401 100644 --- a/grammar/testData/diagnostics/resolve/overloadConflicts/withVariance.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/overloadConflicts/withVariance.antlrtree.txt @@ -1,5 +1,4 @@ -File: withVariance.kt - b7adf7bcd567f178b75df66011e8c308 - NL("\n") +File: withVariance.kt - b5c384ab95b4d69c3be7e4d0307d4943 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/resolve/parameterAsDefaultValueInLocalFunction.antlrtree.txt b/grammar/testData/diagnostics/resolve/parameterAsDefaultValueInLocalFunction.antlrtree.txt index 0f8d290bd..369e87278 100644 --- a/grammar/testData/diagnostics/resolve/parameterAsDefaultValueInLocalFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/parameterAsDefaultValueInLocalFunction.antlrtree.txt @@ -1,4 +1,5 @@ -File: parameterAsDefaultValueInLocalFunction.kt - fef0a79378b642977f1abbfc5ac5e098 +File: parameterAsDefaultValueInLocalFunction.kt - 51cc9e87e254c72751bfd2b93d67cd3d + NL("\n") NL("\n") NL("\n") packageHeader @@ -17,6 +18,52 @@ File: parameterAsDefaultValueInLocalFunction.kt - fef0a79378b642977f1abbfc5ac5e0 LCURL("{") NL("\n") statements + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") statement declaration functionDeclaration @@ -135,5 +182,5 @@ File: parameterAsDefaultValueInLocalFunction.kt - fef0a79378b642977f1abbfc5ac5e0 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/resolve/priority/kt10510.antlrtree.txt b/grammar/testData/diagnostics/resolve/priority/kt10510.antlrtree.txt index 01410ea1b..7a8b5902f 100644 --- a/grammar/testData/diagnostics/resolve/priority/kt10510.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/priority/kt10510.antlrtree.txt @@ -267,6 +267,4 @@ File: kt10510.kt - 5574a0ec61702ce6aa24f64e14368a26 primaryExpression thisExpression THIS("this") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/priority/kt9810.antlrtree.txt b/grammar/testData/diagnostics/resolve/priority/kt9810.antlrtree.txt index 5d4d37bad..e811d0ac8 100644 --- a/grammar/testData/diagnostics/resolve/priority/kt9810.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/priority/kt9810.antlrtree.txt @@ -162,6 +162,4 @@ File: kt9810.kt - fc0c8243bea4378f73cabb9f0df4d333 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/priority/kt9965.antlrtree.txt b/grammar/testData/diagnostics/resolve/priority/kt9965.antlrtree.txt index 09ddbc2e7..2dda461d5 100644 --- a/grammar/testData/diagnostics/resolve/priority/kt9965.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/priority/kt9965.antlrtree.txt @@ -519,6 +519,4 @@ File: kt9965.kt - 1cf8be8f0ed09b40fdcc508a7fb7f697 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/priority/memberWithHidesMemberAnnotationVsMemberWithout.antlrtree.txt b/grammar/testData/diagnostics/resolve/priority/memberWithHidesMemberAnnotationVsMemberWithout.antlrtree.txt new file mode 100644 index 000000000..72022b373 --- /dev/null +++ b/grammar/testData/diagnostics/resolve/priority/memberWithHidesMemberAnnotationVsMemberWithout.antlrtree.txt @@ -0,0 +1,181 @@ +File: memberWithHidesMemberAnnotationVsMemberWithout.kt - c64460622c099501150b61f39de36a04 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Entities") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("Target") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("MutableCollection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Target") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Sequence") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Target") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("StringEntities") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Entities") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("forEach") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("println") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/priority/staticVsImplicitReceiverMember.1.antlrtree.txt b/grammar/testData/diagnostics/resolve/priority/staticVsImplicitReceiverMember.1.antlrtree.txt index 64167e40e..b549b402c 100644 --- a/grammar/testData/diagnostics/resolve/priority/staticVsImplicitReceiverMember.1.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/priority/staticVsImplicitReceiverMember.1.antlrtree.txt @@ -165,6 +165,4 @@ File: staticVsImplicitReceiverMember.1.kt - 60db77bf97927f7059fc8f57f0e1322a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/priority/synthesizedMembersVsExtension.antlrtree.txt b/grammar/testData/diagnostics/resolve/priority/synthesizedMembersVsExtension.antlrtree.txt index ac3335f86..144533fec 100644 --- a/grammar/testData/diagnostics/resolve/priority/synthesizedMembersVsExtension.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/priority/synthesizedMembersVsExtension.antlrtree.txt @@ -210,6 +210,4 @@ File: synthesizedMembersVsExtension.kt - 13f95d513c9b619c47c1dfc9a98b3d4f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/propertyInCompanionOfEnum.Aliased.antlrtree.txt b/grammar/testData/diagnostics/resolve/propertyInCompanionOfEnum.Aliased.antlrtree.txt new file mode 100644 index 000000000..692f921bd --- /dev/null +++ b/grammar/testData/diagnostics/resolve/propertyInCompanionOfEnum.Aliased.antlrtree.txt @@ -0,0 +1,346 @@ +File: propertyInCompanionOfEnum.Aliased.kt - 400098989d5eb608df28d3f20143e8e6 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("E") + importAlias + AS("as") + simpleIdentifier + Identifier("U") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("U") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Entry") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("U") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Entry") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("U") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Entry") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("U") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("NotEntry") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/propertyInCompanionOfEnum.main.antlrtree.txt b/grammar/testData/diagnostics/resolve/propertyInCompanionOfEnum.main.antlrtree.txt new file mode 100644 index 000000000..82d6cf3e1 --- /dev/null +++ b/grammar/testData/diagnostics/resolve/propertyInCompanionOfEnum.main.antlrtree.txt @@ -0,0 +1,534 @@ +File: propertyInCompanionOfEnum.main.kt - 87954a30f69614d7a1bd2697021929bb + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("E") + DOT(".") + simpleIdentifier + Identifier("Entry") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("E") + DOT(".") + simpleIdentifier + Identifier("Companion") + importAlias + AS("as") + simpleIdentifier + Identifier("W") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("E") + importAlias + AS("as") + simpleIdentifier + Identifier("U") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + simpleIdentifier + Identifier("E") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Entry") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Entry") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Entry") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("NotEntry") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Entry") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("W") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Entry") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/propertyInCompanionOfEnum.test.antlrtree.txt b/grammar/testData/diagnostics/resolve/propertyInCompanionOfEnum.test.antlrtree.txt new file mode 100644 index 000000000..fdeb382c9 --- /dev/null +++ b/grammar/testData/diagnostics/resolve/propertyInCompanionOfEnum.test.antlrtree.txt @@ -0,0 +1,103 @@ +File: propertyInCompanionOfEnum.test.kt - ea7fb3f1e400a8184b9ad491eb1a3868 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("test") + semi + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("E") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("Entry") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("Entry") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("NotEntry") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/resolveToStarImportMemberInsteadOfBuiltin.antlrtree.txt b/grammar/testData/diagnostics/resolve/resolveToStarImportMemberInsteadOfBuiltin.antlrtree.txt new file mode 100644 index 000000000..e4d7f5fba --- /dev/null +++ b/grammar/testData/diagnostics/resolve/resolveToStarImportMemberInsteadOfBuiltin.antlrtree.txt @@ -0,0 +1,279 @@ +File: resolveToStarImportMemberInsteadOfBuiltin.kt - e9032b2d4328acf07d5c4e2220145a11 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("TestEnum") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("TestEnum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("Annotation") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("Collection") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("Set") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("List") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("Map") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("Function") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("Enum") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Annotation") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Collection") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Set") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("List") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Map") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Function") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Enum") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/resolveTypeArgsForUnresolvedCall.antlrtree.txt b/grammar/testData/diagnostics/resolve/resolveTypeArgsForUnresolvedCall.antlrtree.txt index 8ec9bea22..957ebb7b5 100644 --- a/grammar/testData/diagnostics/resolve/resolveTypeArgsForUnresolvedCall.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/resolveTypeArgsForUnresolvedCall.antlrtree.txt @@ -102,6 +102,4 @@ File: resolveTypeArgsForUnresolvedCall.kt - bdc3e0fa3f4dbf86bc1c27613385d32f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/resolveWithGenerics.antlrtree.txt b/grammar/testData/diagnostics/resolve/resolveWithGenerics.antlrtree.txt index 084c5fc8b..5e827cdac 100644 --- a/grammar/testData/diagnostics/resolve/resolveWithGenerics.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/resolveWithGenerics.antlrtree.txt @@ -1,4 +1,5 @@ -File: resolveWithGenerics.kt - 00d938b0bcc10a59b3e1578d529837d9 +File: resolveWithGenerics.kt - 34e32c3e0337fb531a68014d56f0f67b + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -604,5 +605,5 @@ File: resolveWithGenerics.kt - 00d938b0bcc10a59b3e1578d529837d9 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/resolve/resolveWithRedeclarationError.antlrtree.txt b/grammar/testData/diagnostics/resolve/resolveWithRedeclarationError.antlrtree.txt index 75eae4c52..96b547029 100644 --- a/grammar/testData/diagnostics/resolve/resolveWithRedeclarationError.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/resolveWithRedeclarationError.antlrtree.txt @@ -1,4 +1,4 @@ -File: resolveWithRedeclarationError.kt - 3ddb4e12e6e617137c8c8a4ca22d5c32 +File: resolveWithRedeclarationError.kt - e0655c94d955ede6b181f881fc294984 NL("\n") packageHeader PACKAGE("package") @@ -5999,5 +5999,5 @@ File: resolveWithRedeclarationError.kt - 3ddb4e12e6e617137c8c8a4ca22d5c32 classMemberDeclarations RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/resolve/resolveWithSpecifiedFunctionLiteralWithId.antlrtree.txt b/grammar/testData/diagnostics/resolve/resolveWithSpecifiedFunctionLiteralWithId.antlrtree.txt index b8201e5c4..ddd7f0315 100644 --- a/grammar/testData/diagnostics/resolve/resolveWithSpecifiedFunctionLiteralWithId.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/resolveWithSpecifiedFunctionLiteralWithId.antlrtree.txt @@ -1,5 +1,4 @@ -File: resolveWithSpecifiedFunctionLiteralWithId.kt - afcd131e4f33e287a3b92f191f3ceab7 - NL("\n") +File: resolveWithSpecifiedFunctionLiteralWithId.kt - 1dafc23c5ee762ab87377d22e645cab6 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/resolve/resolveWithoutGenerics.antlrtree.txt b/grammar/testData/diagnostics/resolve/resolveWithoutGenerics.antlrtree.txt index 9c26fe939..ea4c09306 100644 --- a/grammar/testData/diagnostics/resolve/resolveWithoutGenerics.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/resolveWithoutGenerics.antlrtree.txt @@ -1,4 +1,5 @@ -File: resolveWithoutGenerics.kt - 435c03f2b6647846983837a82b708793 +File: resolveWithoutGenerics.kt - f8ae2a4ae15a49802f1dfb10dcabf027 + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -579,5 +580,5 @@ File: resolveWithoutGenerics.kt - 435c03f2b6647846983837a82b708793 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/resolve/smartcastToMoreSpecificProperty.antlrtree.txt b/grammar/testData/diagnostics/resolve/smartcastToMoreSpecificProperty.antlrtree.txt new file mode 100644 index 000000000..dc68c15e4 --- /dev/null +++ b/grammar/testData/diagnostics/resolve/smartcastToMoreSpecificProperty.antlrtree.txt @@ -0,0 +1,766 @@ +File: smartcastToMoreSpecificProperty.kt - dda551e595ca79ad1bb18ec2c6cf45cd + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("symbol") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ASymbol") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("symbol") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BSymbol") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("symbol") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CSymbol") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("ASymbol") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("BSymbol") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("ASymbol") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("CSymbol") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("BSymbol") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("symbol") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("BSymbol") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("symbol") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("CSymbol") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("symbol") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + VALUE("value") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("symbol") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("symbol") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/specialConstructions/constantsInIf.antlrtree.txt b/grammar/testData/diagnostics/resolve/specialConstructions/constantsInIf.antlrtree.txt index 41496f0c7..0eb4dbc62 100644 --- a/grammar/testData/diagnostics/resolve/specialConstructions/constantsInIf.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/specialConstructions/constantsInIf.antlrtree.txt @@ -1,5 +1,4 @@ -File: constantsInIf.kt - 8a91a8dc53eb121bfa2cfc5917cd913c - NL("\n") +File: constantsInIf.kt - 26abcb86e0b63ffa7064afd04dca7aad NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/resolve/specialConstructions/elvisAsCall.antlrtree.txt b/grammar/testData/diagnostics/resolve/specialConstructions/elvisAsCall.antlrtree.txt index 579116523..b2cc3f291 100644 --- a/grammar/testData/diagnostics/resolve/specialConstructions/elvisAsCall.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/specialConstructions/elvisAsCall.antlrtree.txt @@ -1,5 +1,4 @@ -File: elvisAsCall.kt - 0c6dba1217e32ba5ffd1271acad0fe92 - NL("\n") +File: elvisAsCall.kt - ef72c24aa98b72cd91af8f7988169d11 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/resolve/specialConstructions/exclExclAsCall.antlrtree.txt b/grammar/testData/diagnostics/resolve/specialConstructions/exclExclAsCall.antlrtree.txt index 4c169a893..25ef35e35 100644 --- a/grammar/testData/diagnostics/resolve/specialConstructions/exclExclAsCall.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/specialConstructions/exclExclAsCall.antlrtree.txt @@ -1,5 +1,4 @@ -File: exclExclAsCall.kt - a871b3778c4f48ea8b1878bba22ac566 - NL("\n") +File: exclExclAsCall.kt - e74b2194871c40adc8364050c22a9bb8 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/resolve/specialConstructions/inferenceForElvis.antlrtree.txt b/grammar/testData/diagnostics/resolve/specialConstructions/inferenceForElvis.antlrtree.txt index 0a945c283..9ece07a36 100644 --- a/grammar/testData/diagnostics/resolve/specialConstructions/inferenceForElvis.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/specialConstructions/inferenceForElvis.antlrtree.txt @@ -338,6 +338,4 @@ File: inferenceForElvis.kt - d705ae31268b3016f37e4731bbd314a0 QUOTE_CLOSE(""") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/specialConstructions/multipleSuperClasses.antlrtree.txt b/grammar/testData/diagnostics/resolve/specialConstructions/multipleSuperClasses.antlrtree.txt index 62ccfe869..10f4c1cd0 100644 --- a/grammar/testData/diagnostics/resolve/specialConstructions/multipleSuperClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/specialConstructions/multipleSuperClasses.antlrtree.txt @@ -1,4 +1,4 @@ -File: multipleSuperClasses.kt - dc066f09781491df28f14c084c2dd880 +File: multipleSuperClasses.kt - 5c825ff1455f914abb687350c703ca8c NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/resolve/specialConstructions/reportTypeMismatchDeeplyOnBranches.antlrtree.txt b/grammar/testData/diagnostics/resolve/specialConstructions/reportTypeMismatchDeeplyOnBranches.antlrtree.txt index 94f24d23b..11b4e29c9 100644 --- a/grammar/testData/diagnostics/resolve/specialConstructions/reportTypeMismatchDeeplyOnBranches.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/specialConstructions/reportTypeMismatchDeeplyOnBranches.antlrtree.txt @@ -1,5 +1,4 @@ -File: reportTypeMismatchDeeplyOnBranches.kt - 3c8c0018a28d8e1a41b2bad925008436 - NL("\n") +File: reportTypeMismatchDeeplyOnBranches.kt - 101ec2e7b0fdcb4f32ff87ef09994e7c packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/resolve/superInvoke.main.antlrtree.txt b/grammar/testData/diagnostics/resolve/superInvoke.main.antlrtree.txt new file mode 100644 index 000000000..dd4c95f3d --- /dev/null +++ b/grammar/testData/diagnostics/resolve/superInvoke.main.antlrtree.txt @@ -0,0 +1,221 @@ +File: superInvoke.main.kt - 06c20d06d274f1f7edb20e67a7af0dbe + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + modifier + inheritanceModifier + OPEN("open") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ARROW("->") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + superExpression + SUPER("super") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/typeParameterInDefaultValueInLocalFunction.antlrtree.txt b/grammar/testData/diagnostics/resolve/typeParameterInDefaultValueInLocalFunction.antlrtree.txt index 1d460e5d9..9767e62c8 100644 --- a/grammar/testData/diagnostics/resolve/typeParameterInDefaultValueInLocalFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/typeParameterInDefaultValueInLocalFunction.antlrtree.txt @@ -157,6 +157,4 @@ File: typeParameterInDefaultValueInLocalFunction.kt - 5cf8a6af1149041182040f7abb valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/resolve/varInsideLambdaThatPassedToExtensionFunctionWithTypeParametersThatDefinedInsideThisLambda.antlrtree.txt b/grammar/testData/diagnostics/resolve/varInsideLambdaThatPassedToExtensionFunctionWithTypeParametersThatDefinedInsideThisLambda.antlrtree.txt new file mode 100644 index 000000000..f0e2fed57 --- /dev/null +++ b/grammar/testData/diagnostics/resolve/varInsideLambdaThatPassedToExtensionFunctionWithTypeParametersThatDefinedInsideThisLambda.antlrtree.txt @@ -0,0 +1,397 @@ +File: varInsideLambdaThatPassedToExtensionFunctionWithTypeParametersThatDefinedInsideThisLambda.kt - 1656cca010b7fe3f834cecf34cf210f0 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("V") + RANGLE(">") + simpleIdentifier + Identifier("helper") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("builderAction") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MutableMap") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("V") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("builderAction") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mutableMapOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("helper") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("put") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("key") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("value") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("Error: ") + lineStringContent + LineStrRef("$x") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/resolve/wrongNumberOfTypeArguments.antlrtree.txt b/grammar/testData/diagnostics/resolve/wrongNumberOfTypeArguments.antlrtree.txt index afa53dcd5..898d8912a 100644 --- a/grammar/testData/diagnostics/resolve/wrongNumberOfTypeArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/wrongNumberOfTypeArguments.antlrtree.txt @@ -1,5 +1,4 @@ -File: wrongNumberOfTypeArguments.kt - 48b89aa320aa0849a68725e865b3d1fd - NL("\n") +File: wrongNumberOfTypeArguments.kt - 691f1051d60220d2b1f575366a03f4e8 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/resolve/wrongReceiver.antlrtree.txt b/grammar/testData/diagnostics/resolve/wrongReceiver.antlrtree.txt index f63c3b357..961aaec60 100644 --- a/grammar/testData/diagnostics/resolve/wrongReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/resolve/wrongReceiver.antlrtree.txt @@ -1,5 +1,4 @@ -File: wrongReceiver.kt - b6d001151f5dbb6cecdee32ef40a473f - NL("\n") +File: wrongReceiver.kt - 4b074f4954d8186d7cf6bf1b3edfa77a packageHeader PACKAGE("package") identifier @@ -372,6 +371,4 @@ File: wrongReceiver.kt - b6d001151f5dbb6cecdee32ef40a473f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/safeCall.antlrtree.txt b/grammar/testData/diagnostics/safeCall.antlrtree.txt index d45529047..2e127e758 100644 --- a/grammar/testData/diagnostics/safeCall.antlrtree.txt +++ b/grammar/testData/diagnostics/safeCall.antlrtree.txt @@ -1,5 +1,4 @@ -File: safeCall.kt - 3c66d91b4ec5a2292cddf47270326485 - NL("\n") +File: safeCall.kt - a5a822a020e62cd91a4c3a3a980daf12 NL("\n") NL("\n") packageHeader @@ -334,6 +333,4 @@ File: safeCall.kt - 3c66d91b4ec5a2292cddf47270326485 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/samConversions/DisabledForKTSimple.1.antlrtree.txt b/grammar/testData/diagnostics/samConversions/DisabledForKTSimple.1.antlrtree.txt index 15a6c34da..67fd671f0 100644 --- a/grammar/testData/diagnostics/samConversions/DisabledForKTSimple.1.antlrtree.txt +++ b/grammar/testData/diagnostics/samConversions/DisabledForKTSimple.1.antlrtree.txt @@ -510,6 +510,4 @@ File: DisabledForKTSimple.1.kt - 63288201c1db4d87658bc0140952bfd4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/samConversions/GenericSubstitution.1.antlrtree.txt b/grammar/testData/diagnostics/samConversions/GenericSubstitution.1.antlrtree.txt index bcbee45af..c2726b540 100644 --- a/grammar/testData/diagnostics/samConversions/GenericSubstitution.1.antlrtree.txt +++ b/grammar/testData/diagnostics/samConversions/GenericSubstitution.1.antlrtree.txt @@ -511,6 +511,4 @@ File: GenericSubstitution.1.kt - 8b4e33be80f4dd826645409ebca7cf11 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/samConversions/GenericSubstitutionKT.1.antlrtree.txt b/grammar/testData/diagnostics/samConversions/GenericSubstitutionKT.1.antlrtree.txt index 9714d95b6..dd136b0a9 100644 --- a/grammar/testData/diagnostics/samConversions/GenericSubstitutionKT.1.antlrtree.txt +++ b/grammar/testData/diagnostics/samConversions/GenericSubstitutionKT.1.antlrtree.txt @@ -741,6 +741,4 @@ File: GenericSubstitutionKT.1.kt - 965da0353e35edd17c6957f790dccfb2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/samConversions/OverloadPriority.1.antlrtree.txt b/grammar/testData/diagnostics/samConversions/OverloadPriority.1.antlrtree.txt index fc7bdbc14..d7b1897d4 100644 --- a/grammar/testData/diagnostics/samConversions/OverloadPriority.1.antlrtree.txt +++ b/grammar/testData/diagnostics/samConversions/OverloadPriority.1.antlrtree.txt @@ -1,4 +1,4 @@ -File: OverloadPriority.1.kt - 3e0e2f2f5019d6ff77589a842b501f32 +File: OverloadPriority.1.kt - 4c801afbf88c5ca1dd97920913a203cd packageHeader importList topLevelObject @@ -460,7 +460,6 @@ File: OverloadPriority.1.kt - 3e0e2f2f5019d6ff77589a842b501f32 semis NL("\n") NL("\n") - NL("\n") statement expression disjunction @@ -552,7 +551,7 @@ File: OverloadPriority.1.kt - 3e0e2f2f5019d6ff77589a842b501f32 userType simpleUserType simpleIdentifier - Identifier("Any") + Identifier("String") RANGLE(">") postfixUnarySuffix callSuffix diff --git a/grammar/testData/diagnostics/samConversions/OverloadPriorityKT.1.antlrtree.txt b/grammar/testData/diagnostics/samConversions/OverloadPriorityKT.1.antlrtree.txt index d4aa0211e..330d713dd 100644 --- a/grammar/testData/diagnostics/samConversions/OverloadPriorityKT.1.antlrtree.txt +++ b/grammar/testData/diagnostics/samConversions/OverloadPriorityKT.1.antlrtree.txt @@ -1,4 +1,4 @@ -File: OverloadPriorityKT.1.kt - c0632c689db671a1325cdd8dc422029e +File: OverloadPriorityKT.1.kt - 739a05b5c3e85d878b56ad1fde25ebcd packageHeader importList topLevelObject @@ -677,7 +677,6 @@ File: OverloadPriorityKT.1.kt - c0632c689db671a1325cdd8dc422029e semis NL("\n") NL("\n") - NL("\n") statement expression disjunction @@ -769,7 +768,7 @@ File: OverloadPriorityKT.1.kt - c0632c689db671a1325cdd8dc422029e userType simpleUserType simpleIdentifier - Identifier("Any") + Identifier("String") RANGLE(">") postfixUnarySuffix callSuffix diff --git a/grammar/testData/diagnostics/samConversions/SAMAfterSubstitution.1.antlrtree.txt b/grammar/testData/diagnostics/samConversions/SAMAfterSubstitution.1.antlrtree.txt index 08de413ad..4578f8140 100644 --- a/grammar/testData/diagnostics/samConversions/SAMAfterSubstitution.1.antlrtree.txt +++ b/grammar/testData/diagnostics/samConversions/SAMAfterSubstitution.1.antlrtree.txt @@ -345,6 +345,4 @@ File: SAMAfterSubstitution.1.kt - 343f0b5b0e0babdf80587fb3893ab0b3 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/samConversions/SAMAfterSubstitutionKT.1.antlrtree.txt b/grammar/testData/diagnostics/samConversions/SAMAfterSubstitutionKT.1.antlrtree.txt index a5f339ffb..cf0a179a3 100644 --- a/grammar/testData/diagnostics/samConversions/SAMAfterSubstitutionKT.1.antlrtree.txt +++ b/grammar/testData/diagnostics/samConversions/SAMAfterSubstitutionKT.1.antlrtree.txt @@ -399,6 +399,4 @@ File: SAMAfterSubstitutionKT.1.kt - 639a9309cdbe7185a943ce50531f66a0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/samConversions/SimpleCorrect.1.antlrtree.txt b/grammar/testData/diagnostics/samConversions/SimpleCorrect.1.antlrtree.txt index e683ed180..a3cba532a 100644 --- a/grammar/testData/diagnostics/samConversions/SimpleCorrect.1.antlrtree.txt +++ b/grammar/testData/diagnostics/samConversions/SimpleCorrect.1.antlrtree.txt @@ -1206,6 +1206,4 @@ File: SimpleCorrect.1.kt - 661c038c9e9568a48d8a3e75d128814c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/samConversions/SimpleCorrectKT.1.antlrtree.txt b/grammar/testData/diagnostics/samConversions/SimpleCorrectKT.1.antlrtree.txt index c2dbc0504..4e496d713 100644 --- a/grammar/testData/diagnostics/samConversions/SimpleCorrectKT.1.antlrtree.txt +++ b/grammar/testData/diagnostics/samConversions/SimpleCorrectKT.1.antlrtree.txt @@ -1321,6 +1321,4 @@ File: SimpleCorrectKT.1.kt - b5891fa5af3201fb5fb692a147a3f109 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/samConversions/checkSamConversionsAreDisabledByDefault.1.antlrtree.txt b/grammar/testData/diagnostics/samConversions/checkSamConversionsAreDisabledByDefault.1.antlrtree.txt index 61a5579dd..cc7edb18b 100644 --- a/grammar/testData/diagnostics/samConversions/checkSamConversionsAreDisabledByDefault.1.antlrtree.txt +++ b/grammar/testData/diagnostics/samConversions/checkSamConversionsAreDisabledByDefault.1.antlrtree.txt @@ -1321,6 +1321,4 @@ File: checkSamConversionsAreDisabledByDefault.1.kt - b5891fa5af3201fb5fb692a147a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/samConversions/conversionOnLambdaAsLastExpression.test.antlrtree.txt b/grammar/testData/diagnostics/samConversions/conversionOnLambdaAsLastExpression.test.antlrtree.txt index d9dd822a5..addb2f4ff 100644 --- a/grammar/testData/diagnostics/samConversions/conversionOnLambdaAsLastExpression.test.antlrtree.txt +++ b/grammar/testData/diagnostics/samConversions/conversionOnLambdaAsLastExpression.test.antlrtree.txt @@ -342,6 +342,4 @@ File: conversionOnLambdaAsLastExpression.test.kt - 9d97cdb2e94c62d25d146c950e7f9 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/samConversions/kt17765.1.antlrtree.txt b/grammar/testData/diagnostics/samConversions/kt17765.1.antlrtree.txt new file mode 100644 index 000000000..edf8386a9 --- /dev/null +++ b/grammar/testData/diagnostics/samConversions/kt17765.1.antlrtree.txt @@ -0,0 +1,76 @@ +File: kt17765.1.kt - 272ae22a33e8208d43a9791e3f6c5448 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("args") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Test") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/samConversions/kt50477.antlrtree.txt b/grammar/testData/diagnostics/samConversions/kt50477.antlrtree.txt new file mode 100644 index 000000000..8e73abdef --- /dev/null +++ b/grammar/testData/diagnostics/samConversions/kt50477.antlrtree.txt @@ -0,0 +1,483 @@ +File: kt50477.kt - d94a2275dd0c7e43fbeb1b94dd9a3b0d + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("FI") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("call") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("accept") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("fi") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("FI") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TODO") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + SUSPEND("suspend") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("fi") + COLON(":") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("accept") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("fi") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("accept") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("accept") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x1") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("accept") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo2") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("foo2") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("accept") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x2") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/samConversions/samPriorityVsGeneric.antlrtree.txt b/grammar/testData/diagnostics/samConversions/samPriorityVsGeneric.antlrtree.txt new file mode 100644 index 000000000..22ff0a91f --- /dev/null +++ b/grammar/testData/diagnostics/samConversions/samPriorityVsGeneric.antlrtree.txt @@ -0,0 +1,257 @@ +File: samPriorityVsGeneric.kt - a0c90a8503c9d8e042ac27f64ced81e3 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("action") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("action") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("action") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Runnable") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/samConversions/samPriorityVsGenericCompatibilityDisabled.antlrtree.txt b/grammar/testData/diagnostics/samConversions/samPriorityVsGenericCompatibilityDisabled.antlrtree.txt new file mode 100644 index 000000000..f2ae9df90 --- /dev/null +++ b/grammar/testData/diagnostics/samConversions/samPriorityVsGenericCompatibilityDisabled.antlrtree.txt @@ -0,0 +1,258 @@ +File: samPriorityVsGenericCompatibilityDisabled.kt - a52c142eeaa6db80ebafda38d8a2e9be + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("action") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("action") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("action") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Runnable") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/samConversions/sameCandidatesFromKotlinAndJavaInOneScope.test.antlrtree.txt b/grammar/testData/diagnostics/samConversions/sameCandidatesFromKotlinAndJavaInOneScope.test.antlrtree.txt index de258b094..fb190188e 100644 --- a/grammar/testData/diagnostics/samConversions/sameCandidatesFromKotlinAndJavaInOneScope.test.antlrtree.txt +++ b/grammar/testData/diagnostics/samConversions/sameCandidatesFromKotlinAndJavaInOneScope.test.antlrtree.txt @@ -147,6 +147,4 @@ File: sameCandidatesFromKotlinAndJavaInOneScope.test.kt - d77c10e8b1fa8e03d1192c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/AmbiguityBetweenRootAndPackage.using.antlrtree.txt b/grammar/testData/diagnostics/scopes/AmbiguityBetweenRootAndPackage.using.antlrtree.txt index 2b8241e9d..8bcc139a0 100644 --- a/grammar/testData/diagnostics/scopes/AmbiguityBetweenRootAndPackage.using.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/AmbiguityBetweenRootAndPackage.using.antlrtree.txt @@ -50,6 +50,4 @@ File: AmbiguityBetweenRootAndPackage.using.kt - ae523a07d364041ad3d88fd70c41c25e LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/AmbiguousNonExtensions.main.antlrtree.txt b/grammar/testData/diagnostics/scopes/AmbiguousNonExtensions.main.antlrtree.txt index 73cb5581a..04473a226 100644 --- a/grammar/testData/diagnostics/scopes/AmbiguousNonExtensions.main.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/AmbiguousNonExtensions.main.antlrtree.txt @@ -79,6 +79,4 @@ File: AmbiguousNonExtensions.main.kt - 4f2ea0c62871416cd887e59b9e442600 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/NoAmbiguityBetweenRootAndPackage.using.antlrtree.txt b/grammar/testData/diagnostics/scopes/NoAmbiguityBetweenRootAndPackage.using.antlrtree.txt index 61ee36d81..a5b749082 100644 --- a/grammar/testData/diagnostics/scopes/NoAmbiguityBetweenRootAndPackage.using.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/NoAmbiguityBetweenRootAndPackage.using.antlrtree.txt @@ -40,6 +40,4 @@ File: NoAmbiguityBetweenRootAndPackage.using.kt - f99023a95a88d77cd38918a24a78c7 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/classHeader/companionNestedVsOuter.antlrtree.txt b/grammar/testData/diagnostics/scopes/classHeader/companionNestedVsOuter.antlrtree.txt new file mode 100644 index 000000000..4a00282d2 --- /dev/null +++ b/grammar/testData/diagnostics/scopes/classHeader/companionNestedVsOuter.antlrtree.txt @@ -0,0 +1,62 @@ +File: companionNestedVsOuter.kt - 8652951f3f95325a3e32016f7faccf1d + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/scopes/classHeader/delegation.antlrtree.txt b/grammar/testData/diagnostics/scopes/classHeader/delegation.antlrtree.txt index 8dc66a039..268abf008 100644 --- a/grammar/testData/diagnostics/scopes/classHeader/delegation.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/classHeader/delegation.antlrtree.txt @@ -1,4 +1,5 @@ -File: delegation.kt - a3ec4ef0d521101f00ee9cbb269899f1 +File: delegation.kt - 7e30d5cd639dc58bb9102acbf879c285 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/scopes/classHeader/superConstructorArguments.antlrtree.txt b/grammar/testData/diagnostics/scopes/classHeader/superConstructorArguments.antlrtree.txt index 5cc6d58cf..93ffc5aa4 100644 --- a/grammar/testData/diagnostics/scopes/classHeader/superConstructorArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/classHeader/superConstructorArguments.antlrtree.txt @@ -1,4 +1,5 @@ -File: superConstructorArguments.kt - fb2320f78e931c33dd97db6324ef6f30 +File: superConstructorArguments.kt - cc564016dc671bec5c27e1072ff2c583 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/scopes/genericVsNested.antlrtree.txt b/grammar/testData/diagnostics/scopes/genericVsNested.antlrtree.txt index 912bed48e..daf98ceed 100644 --- a/grammar/testData/diagnostics/scopes/genericVsNested.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/genericVsNested.antlrtree.txt @@ -486,6 +486,4 @@ File: genericVsNested.kt - d831147ab7a7ca9ac1a4a1c6e66db5e9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/implicitReceiverMemberVsParameter.antlrtree.txt b/grammar/testData/diagnostics/scopes/implicitReceiverMemberVsParameter.antlrtree.txt index 8f96f341c..37fb64117 100644 --- a/grammar/testData/diagnostics/scopes/implicitReceiverMemberVsParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/implicitReceiverMemberVsParameter.antlrtree.txt @@ -1,4 +1,5 @@ -File: implicitReceiverMemberVsParameter.kt - fd3a677a48801f8385a59a91d92bb680 +File: implicitReceiverMemberVsParameter.kt - ab9b713908ac38e7041cbb8c67a24132 + NL("\n") packageHeader importList topLevelObject @@ -93,5 +94,5 @@ File: implicitReceiverMemberVsParameter.kt - fd3a677a48801f8385a59a91d92bb680 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/scopes/inheritance/companionObjectsOrder.antlrtree.txt b/grammar/testData/diagnostics/scopes/inheritance/companionObjectsOrder.antlrtree.txt index d5da94fc1..d8c8f67b8 100644 --- a/grammar/testData/diagnostics/scopes/inheritance/companionObjectsOrder.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/inheritance/companionObjectsOrder.antlrtree.txt @@ -629,6 +629,4 @@ File: companionObjectsOrder.kt - b4c98a2541931df4f6eb4d8e23099645 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/inheritance/kt3856.antlrtree.txt b/grammar/testData/diagnostics/scopes/inheritance/kt3856.antlrtree.txt index 60e248fb7..cc719adcd 100644 --- a/grammar/testData/diagnostics/scopes/inheritance/kt3856.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/inheritance/kt3856.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt3856.kt - dcddaf069734108236452b41118c0813 +File: kt3856.kt - 685e168e226a52c0832a9bb5b26ba0bf + NL("\n") packageHeader importList topLevelObject @@ -484,5 +485,5 @@ File: kt3856.kt - dcddaf069734108236452b41118c0813 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/scopes/inheritance/methodsPriority.1.antlrtree.txt b/grammar/testData/diagnostics/scopes/inheritance/methodsPriority.1.antlrtree.txt index b1297aa0c..19eb26f8a 100644 --- a/grammar/testData/diagnostics/scopes/inheritance/methodsPriority.1.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/inheritance/methodsPriority.1.antlrtree.txt @@ -349,6 +349,4 @@ File: methodsPriority.1.kt - 9275575d36080deab054fdf7d056ef15 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/inheritance/severalCompanions.antlrtree.txt b/grammar/testData/diagnostics/scopes/inheritance/severalCompanions.antlrtree.txt index 79ee79d04..94d0511b5 100644 --- a/grammar/testData/diagnostics/scopes/inheritance/severalCompanions.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/inheritance/severalCompanions.antlrtree.txt @@ -413,6 +413,4 @@ File: severalCompanions.kt - 20d50317644f546d76b0c647d1a9572e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/inheritance/statics/localVsStatic.2.antlrtree.txt b/grammar/testData/diagnostics/scopes/inheritance/statics/localVsStatic.2.antlrtree.txt index a77c8ca8f..85a1c42a6 100644 --- a/grammar/testData/diagnostics/scopes/inheritance/statics/localVsStatic.2.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/inheritance/statics/localVsStatic.2.antlrtree.txt @@ -124,6 +124,4 @@ File: localVsStatic.2.kt - 08a9721fea93de320f6a2a4ac8874975 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/inheritance/statics/overloadStatic.1.antlrtree.txt b/grammar/testData/diagnostics/scopes/inheritance/statics/overloadStatic.1.antlrtree.txt index a99069b60..dc501f1b0 100644 --- a/grammar/testData/diagnostics/scopes/inheritance/statics/overloadStatic.1.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/inheritance/statics/overloadStatic.1.antlrtree.txt @@ -99,6 +99,4 @@ File: overloadStatic.1.kt - 2828f83a0088419a1b6cf4df0662a5d9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/inheritance/statics/staticFunAndPropertyImport.1.antlrtree.txt b/grammar/testData/diagnostics/scopes/inheritance/statics/staticFunAndPropertyImport.1.antlrtree.txt new file mode 100644 index 000000000..a46440088 --- /dev/null +++ b/grammar/testData/diagnostics/scopes/inheritance/statics/staticFunAndPropertyImport.1.antlrtree.txt @@ -0,0 +1,87 @@ +File: staticFunAndPropertyImport.1.kt - aff3b84bfe22fb7b6c2e7f9b39b6ac72 + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("foo") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("bar") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("quux") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("B") + DOT(".") + simpleIdentifier + Identifier("foo2") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("B") + DOT(".") + simpleIdentifier + Identifier("bar2") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("baz") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("B") + DOT(".") + simpleIdentifier + Identifier("baz") + semi + NL("\n") + NL("\n") + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("B") + DOT(".") + simpleIdentifier + Identifier("quux2") + semi + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/scopes/inheritance/statics/staticFunVsImport.1.antlrtree.txt b/grammar/testData/diagnostics/scopes/inheritance/statics/staticFunVsImport.1.antlrtree.txt index 68f1fa978..985374723 100644 --- a/grammar/testData/diagnostics/scopes/inheritance/statics/staticFunVsImport.1.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/inheritance/statics/staticFunVsImport.1.antlrtree.txt @@ -1,4 +1,4 @@ -File: staticFunVsImport.1.kt - 4b6c46fd1e526388b4bfa37baebb2bee +File: staticFunVsImport.1.kt - 557393afba882baa8335c6f3f753dffa packageHeader importList importHeader @@ -21,6 +21,26 @@ File: staticFunVsImport.1.kt - 4b6c46fd1e526388b4bfa37baebb2bee Identifier("bar") semi NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("nonStatic1") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("B") + DOT(".") + simpleIdentifier + Identifier("nonStatic2") + semi + NL("\n") NL("\n") topLevelObject declaration diff --git a/grammar/testData/diagnostics/scopes/inheritance/statics/staticFunVsImport.3.antlrtree.txt b/grammar/testData/diagnostics/scopes/inheritance/statics/staticFunVsImport.3.antlrtree.txt index 2a0a7ef9c..655c6ad97 100644 --- a/grammar/testData/diagnostics/scopes/inheritance/statics/staticFunVsImport.3.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/inheritance/statics/staticFunVsImport.3.antlrtree.txt @@ -83,6 +83,4 @@ File: staticFunVsImport.3.kt - c7cbdbed3b89210d68b157555c578d6e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/inheritance/statics/staticPropertyVsImport.4.antlrtree.txt b/grammar/testData/diagnostics/scopes/inheritance/statics/staticPropertyVsImport.4.antlrtree.txt index 8b1044866..736488825 100644 --- a/grammar/testData/diagnostics/scopes/inheritance/statics/staticPropertyVsImport.4.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/inheritance/statics/staticPropertyVsImport.4.antlrtree.txt @@ -98,6 +98,4 @@ File: staticPropertyVsImport.4.kt - 1c311a47112993f2d823246eff6a638f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/inheritance/statics/staticVsMember.1.antlrtree.txt b/grammar/testData/diagnostics/scopes/inheritance/statics/staticVsMember.1.antlrtree.txt index 06da264e2..6b778d0bc 100644 --- a/grammar/testData/diagnostics/scopes/inheritance/statics/staticVsMember.1.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/inheritance/statics/staticVsMember.1.antlrtree.txt @@ -969,6 +969,4 @@ File: staticVsMember.1.kt - f8d584549209b0d285de4fc5fe9eb84d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/inheritance/statics/staticVsOuter.1.antlrtree.txt b/grammar/testData/diagnostics/scopes/inheritance/statics/staticVsOuter.1.antlrtree.txt index ed647e4f9..b92bffe41 100644 --- a/grammar/testData/diagnostics/scopes/inheritance/statics/staticVsOuter.1.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/inheritance/statics/staticVsOuter.1.antlrtree.txt @@ -1,4 +1,4 @@ -File: staticVsOuter.1.kt - 1985e1fe4ca6bac86ad04722828675ea +File: staticVsOuter.1.kt - a314923715d59704aaf1d3c22bcd6f5f packageHeader importList topLevelObject @@ -108,5 +108,5 @@ File: staticVsOuter.1.kt - 1985e1fe4ca6bac86ad04722828675ea NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/scopes/invisibleSetter.antlrtree.txt b/grammar/testData/diagnostics/scopes/invisibleSetter.antlrtree.txt index 54e209b66..e5c767760 100644 --- a/grammar/testData/diagnostics/scopes/invisibleSetter.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/invisibleSetter.antlrtree.txt @@ -1,4 +1,5 @@ -File: invisibleSetter.kt - 13b905a461785a206e8ecbf74238ad52 +File: invisibleSetter.kt - a3bb5dfb955435e8080529daf49ef5c9 + NL("\n") packageHeader importList topLevelObject @@ -160,6 +161,4 @@ File: invisibleSetter.kt - 13b905a461785a206e8ecbf74238ad52 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/kt1579.b.antlrtree.txt b/grammar/testData/diagnostics/scopes/kt1579.b.antlrtree.txt index 216b0dde3..e4be37077 100644 --- a/grammar/testData/diagnostics/scopes/kt1579.b.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/kt1579.b.antlrtree.txt @@ -18,6 +18,4 @@ File: kt1579.b.kt - a95c767d6d3d6c7a596cfed82562bdb4 DOT(".") simpleIdentifier Identifier("Inner") - semi - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/kt1579_map_entry.c.antlrtree.txt b/grammar/testData/diagnostics/scopes/kt1579_map_entry.c.antlrtree.txt index 732bfa5e8..56044fbf4 100644 --- a/grammar/testData/diagnostics/scopes/kt1579_map_entry.c.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/kt1579_map_entry.c.antlrtree.txt @@ -71,6 +71,4 @@ File: kt1579_map_entry.c.kt - e892ff38f9a2a430baaeda8ad0e80569 primaryExpression simpleIdentifier Identifier("b") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/kt1580.b.antlrtree.txt b/grammar/testData/diagnostics/scopes/kt1580.b.antlrtree.txt index 43503777f..64cc054ed 100644 --- a/grammar/testData/diagnostics/scopes/kt1580.b.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/kt1580.b.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt1580.b.kt - b2f8df857da13c83630aead3db07436b +File: kt1580.b.kt - c5c6a877dccd948fdead2c6b2053b540 packageHeader PACKAGE("package") identifier @@ -62,5 +62,5 @@ File: kt1580.b.kt - b2f8df857da13c83630aead3db07436b statements RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/scopes/kt1642.b.antlrtree.txt b/grammar/testData/diagnostics/scopes/kt1642.b.antlrtree.txt index 41fdae2fd..fa3a47143 100644 --- a/grammar/testData/diagnostics/scopes/kt1642.b.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/kt1642.b.antlrtree.txt @@ -20,6 +20,4 @@ File: kt1642.b.kt - faccacb6183d69b15e034ae2c67d3f2c DOT(".") simpleIdentifier Identifier("ArrayList") - semi - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/kt1822.antlrtree.txt b/grammar/testData/diagnostics/scopes/kt1822.antlrtree.txt index cfdc32498..30d7386fc 100644 --- a/grammar/testData/diagnostics/scopes/kt1822.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/kt1822.antlrtree.txt @@ -303,6 +303,4 @@ File: kt1822.kt - b13c5ab2e64763f5c4d994410460ae03 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/kt2262.antlrtree.txt b/grammar/testData/diagnostics/scopes/kt2262.antlrtree.txt index 66916d1de..52139f2f1 100644 --- a/grammar/testData/diagnostics/scopes/kt2262.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/kt2262.antlrtree.txt @@ -204,6 +204,4 @@ File: kt2262.kt - ea12fd95a22ffbd5542f73a0a3a8e58b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/kt250.617.10.antlrtree.txt b/grammar/testData/diagnostics/scopes/kt250.617.10.antlrtree.txt index dde44dae2..10badedce 100644 --- a/grammar/testData/diagnostics/scopes/kt250.617.10.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/kt250.617.10.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt250.617.10.kt - 717bc8d74cad6d5013068a9195cc17cd (WITH_ERRORS) +File: kt250.617.10.kt - b272dad5809814c455312013d1b9815f (WITH_ERRORS) packageHeader PACKAGE("package") identifier @@ -997,5 +997,5 @@ File: kt250.617.10.kt - 717bc8d74cad6d5013068a9195cc17cd (WITH_ERRORS) NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/scopes/kt323.antlrtree.txt b/grammar/testData/diagnostics/scopes/kt323.antlrtree.txt index 898e6f339..70f7601cc 100644 --- a/grammar/testData/diagnostics/scopes/kt323.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/kt323.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt323.kt - 7dab1ac218ef9d1dcf84743d567c2ce8 +File: kt323.kt - ececd590d5207940c28fca475949d0f1 NL("\n") packageHeader PACKAGE("package") @@ -258,5 +258,5 @@ File: kt323.kt - 7dab1ac218ef9d1dcf84743d567c2ce8 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/scopes/kt900-1.antlrtree.txt b/grammar/testData/diagnostics/scopes/kt900-1.antlrtree.txt index 078a3e93e..82b95c92b 100644 --- a/grammar/testData/diagnostics/scopes/kt900-1.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/kt900-1.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt900-1.kt - b9b80d0f24c6cb146f2d7f66a3cf3bb7 +File: kt900-1.kt - dd004c68bc002e2316f9df2d069ec17d + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -236,5 +237,5 @@ File: kt900-1.kt - b9b80d0f24c6cb146f2d7f66a3cf3bb7 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/scopes/kt900-2.antlrtree.txt b/grammar/testData/diagnostics/scopes/kt900-2.antlrtree.txt index 76db4a351..ff00dbbb3 100644 --- a/grammar/testData/diagnostics/scopes/kt900-2.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/kt900-2.antlrtree.txt @@ -388,6 +388,4 @@ File: kt900-2.kt - 5963990ba4a2010bfc112d22c4547339 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/scopes/kt900.b.antlrtree.txt b/grammar/testData/diagnostics/scopes/kt900.b.antlrtree.txt index 4a1d7b414..7a7a3e7a3 100644 --- a/grammar/testData/diagnostics/scopes/kt900.b.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/kt900.b.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt900.b.kt - b56eee652cd4fb1bb019e1890be72587 +File: kt900.b.kt - 63b215ff24477d69a90829f3d59647f8 packageHeader PACKAGE("package") identifier @@ -354,5 +354,5 @@ File: kt900.b.kt - b56eee652cd4fb1bb019e1890be72587 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/scopes/protectedVisibility/generic.antlrtree.txt b/grammar/testData/diagnostics/scopes/protectedVisibility/generic.antlrtree.txt new file mode 100644 index 000000000..5228232bf --- /dev/null +++ b/grammar/testData/diagnostics/scopes/protectedVisibility/generic.antlrtree.txt @@ -0,0 +1,160 @@ +File: generic.kt - 4f381ff7cf73547bdf961bd846623cd6 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Parent") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("F") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derived") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Parent") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/scopes/protectedVisibility/nonSuperCallConstructor.antlrtree.txt b/grammar/testData/diagnostics/scopes/protectedVisibility/nonSuperCallConstructor.antlrtree.txt index 4892e4013..1c4bddf73 100644 --- a/grammar/testData/diagnostics/scopes/protectedVisibility/nonSuperCallConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/protectedVisibility/nonSuperCallConstructor.antlrtree.txt @@ -1,5 +1,4 @@ -File: nonSuperCallConstructor.kt - 47c5643c5f67d052b85dd19421adeae6 - NL("\n") +File: nonSuperCallConstructor.kt - 0c5af8d22794ad727888bdf93de8b0c1 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/scopes/protectedVisibility/protectedPropertyInPrimaryConstructor.antlrtree.txt b/grammar/testData/diagnostics/scopes/protectedVisibility/protectedPropertyInPrimaryConstructor.antlrtree.txt new file mode 100644 index 000000000..f5a5c9819 --- /dev/null +++ b/grammar/testData/diagnostics/scopes/protectedVisibility/protectedPropertyInPrimaryConstructor.antlrtree.txt @@ -0,0 +1,168 @@ +File: protectedPropertyInPrimaryConstructor.kt - 8d4d4f92ad332073c0d4f408aee754e7 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Test") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + visibilityModifier + PROTECTED("protected") + VAR("var") + simpleIdentifier + Identifier("prop1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("prop2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("prop1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("prop2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/scopes/protectedVisibility/syntheticPropertyExtensions.main.antlrtree.txt b/grammar/testData/diagnostics/scopes/protectedVisibility/syntheticPropertyExtensions.main.antlrtree.txt index 34bd62430..ea9469d7c 100644 --- a/grammar/testData/diagnostics/scopes/protectedVisibility/syntheticPropertyExtensions.main.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/protectedVisibility/syntheticPropertyExtensions.main.antlrtree.txt @@ -1,4 +1,4 @@ -File: syntheticPropertyExtensions.main.kt - aeac3a7c3765fb3decc81b6748963b35 +File: syntheticPropertyExtensions.main.kt - 04975bf9bb0de47efbf2c7cb026bc9dd packageHeader importList importHeader @@ -272,7 +272,6 @@ File: syntheticPropertyExtensions.main.kt - aeac3a7c3765fb3decc81b6748963b35 Identifier("foo") semis NL("\n") - NL("\n") statement assignment directlyAssignableExpression @@ -583,7 +582,6 @@ File: syntheticPropertyExtensions.main.kt - aeac3a7c3765fb3decc81b6748963b35 Identifier("foo") semis NL("\n") - NL("\n") statement assignment directlyAssignableExpression diff --git a/grammar/testData/diagnostics/scopes/protectedVisibility/unstableSmartCast.antlrtree.txt b/grammar/testData/diagnostics/scopes/protectedVisibility/unstableSmartCast.antlrtree.txt index 07c5f68d0..2604f4500 100644 --- a/grammar/testData/diagnostics/scopes/protectedVisibility/unstableSmartCast.antlrtree.txt +++ b/grammar/testData/diagnostics/scopes/protectedVisibility/unstableSmartCast.antlrtree.txt @@ -1,5 +1,4 @@ -File: unstableSmartCast.kt - 300452eda0486ddcdb9da53ebcf0aa25 - NL("\n") +File: unstableSmartCast.kt - c2ae91fe7f6ed03ce94f029b0f5511bf NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/scopes/visibleSetterFromSyntheticProperty.main.antlrtree.txt b/grammar/testData/diagnostics/scopes/visibleSetterFromSyntheticProperty.main.antlrtree.txt new file mode 100644 index 000000000..9f116e92d --- /dev/null +++ b/grammar/testData/diagnostics/scopes/visibleSetterFromSyntheticProperty.main.antlrtree.txt @@ -0,0 +1,71 @@ +File: visibleSetterFromSyntheticProperty.main.kt - fb938294a2d17592d306257310bc2697 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Java") + DOT(".") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("name") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/sealed/ExhaustiveOnRoot.antlrtree.txt b/grammar/testData/diagnostics/sealed/ExhaustiveOnRoot.antlrtree.txt index 0d6e65878..c87c6d599 100644 --- a/grammar/testData/diagnostics/sealed/ExhaustiveOnRoot.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/ExhaustiveOnRoot.antlrtree.txt @@ -1,4 +1,5 @@ -File: ExhaustiveOnRoot.kt - 99344bc9bf36a0f89e1dbbe8d230ec53 +File: ExhaustiveOnRoot.kt - cdfc1942f3fba0a4b9a9c5d235fb7192 + NL("\n") packageHeader importList topLevelObject @@ -459,6 +460,4 @@ File: ExhaustiveOnRoot.kt - 99344bc9bf36a0f89e1dbbe8d230ec53 semi NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/sealed/ExhaustiveOnTree.antlrtree.txt b/grammar/testData/diagnostics/sealed/ExhaustiveOnTree.antlrtree.txt index 18031eeee..4de47355c 100644 --- a/grammar/testData/diagnostics/sealed/ExhaustiveOnTree.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/ExhaustiveOnTree.antlrtree.txt @@ -786,6 +786,4 @@ File: ExhaustiveOnTree.kt - c460db60d20de4cf6bcf2c27e3a8be08 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/sealed/ExhaustiveOnTriangleStar.antlrtree.txt b/grammar/testData/diagnostics/sealed/ExhaustiveOnTriangleStar.antlrtree.txt index 6a62c4f49..e387bcc4a 100644 --- a/grammar/testData/diagnostics/sealed/ExhaustiveOnTriangleStar.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/ExhaustiveOnTriangleStar.antlrtree.txt @@ -518,6 +518,4 @@ File: ExhaustiveOnTriangleStar.kt - 15d201eddc1cb756be61026cdbdd07aa semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/sealed/LocalSealed.antlrtree.txt b/grammar/testData/diagnostics/sealed/LocalSealed.antlrtree.txt index 49941ab3e..26a91910a 100644 --- a/grammar/testData/diagnostics/sealed/LocalSealed.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/LocalSealed.antlrtree.txt @@ -1,4 +1,5 @@ -File: LocalSealed.kt - 806b5835908cc0eba0025ab2b533688f +File: LocalSealed.kt - 0d748b610b9dcb6dcdcd3f4c11a4496e + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/sealed/NeverConstructed.antlrtree.txt b/grammar/testData/diagnostics/sealed/NeverConstructed.antlrtree.txt index 72237a3a0..275cfb7e1 100644 --- a/grammar/testData/diagnostics/sealed/NeverConstructed.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/NeverConstructed.antlrtree.txt @@ -1,4 +1,5 @@ -File: NeverConstructed.kt - 48a6b8a43cab7b54641651fb671154f0 +File: NeverConstructed.kt - 3cc7820ac890b4466b617faf3c08f512 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/sealed/NeverEnum.antlrtree.txt b/grammar/testData/diagnostics/sealed/NeverEnum.antlrtree.txt index f05addd8b..094f437a2 100644 --- a/grammar/testData/diagnostics/sealed/NeverEnum.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/NeverEnum.antlrtree.txt @@ -1,4 +1,5 @@ -File: NeverEnum.kt - c2848df3d4fcf30922017c35b2b8ebf3 +File: NeverEnum.kt - 0a0fb2169e458e11bd1cf5f32915ac57 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/sealed/NeverFinal.antlrtree.txt b/grammar/testData/diagnostics/sealed/NeverFinal.antlrtree.txt index 38b5e8568..031f0b35d 100644 --- a/grammar/testData/diagnostics/sealed/NeverFinal.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/NeverFinal.antlrtree.txt @@ -21,6 +21,4 @@ File: NeverFinal.kt - 2ab2a74e7dda02b9419f0d5c04c2c379 NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/sealed/NeverObject.antlrtree.txt b/grammar/testData/diagnostics/sealed/NeverObject.antlrtree.txt index 21570d789..d88b8285d 100644 --- a/grammar/testData/diagnostics/sealed/NeverObject.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/NeverObject.antlrtree.txt @@ -1,4 +1,5 @@ -File: NeverObject.kt - a8599cabbc397acc635e2ebf8a5174aa +File: NeverObject.kt - d2b57a3d9a573350fbd2281dca1251b7 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/sealed/NeverOpen.antlrtree.txt b/grammar/testData/diagnostics/sealed/NeverOpen.antlrtree.txt index ab01d8bce..c11a7e529 100644 --- a/grammar/testData/diagnostics/sealed/NeverOpen.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/NeverOpen.antlrtree.txt @@ -21,6 +21,4 @@ File: NeverOpen.kt - 28c29fe8e53e3ef8e2db6d307f85ab62 NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/sealed/NonExhaustiveWhenWithAnyCase.antlrtree.txt b/grammar/testData/diagnostics/sealed/NonExhaustiveWhenWithAnyCase.antlrtree.txt index 5a0d70a95..a92e7da95 100644 --- a/grammar/testData/diagnostics/sealed/NonExhaustiveWhenWithAnyCase.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/NonExhaustiveWhenWithAnyCase.antlrtree.txt @@ -1,4 +1,5 @@ -File: NonExhaustiveWhenWithAnyCase.kt - 803f32d798d1f14dbfffc38a76bf1f11 +File: NonExhaustiveWhenWithAnyCase.kt - 1c31123578ba2a7223182c45ddfc1f60 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/sealed/NotFinal.antlrtree.txt b/grammar/testData/diagnostics/sealed/NotFinal.antlrtree.txt index ea73f4001..111aac0ae 100644 --- a/grammar/testData/diagnostics/sealed/NotFinal.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/NotFinal.antlrtree.txt @@ -124,6 +124,4 @@ File: NotFinal.kt - 3e9ef141b2f07d25a5e8f09dc37c4dff primaryExpression simpleIdentifier Identifier("arg") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/sealed/RedundantAbstract.antlrtree.txt b/grammar/testData/diagnostics/sealed/RedundantAbstract.antlrtree.txt index ff9f6a1bf..f3299ac86 100644 --- a/grammar/testData/diagnostics/sealed/RedundantAbstract.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/RedundantAbstract.antlrtree.txt @@ -21,6 +21,4 @@ File: RedundantAbstract.kt - 0a38c5f033b5c8e4ec49e5277f3e983a NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/sealed/TreeWhenFunctionalNoIs.antlrtree.txt b/grammar/testData/diagnostics/sealed/TreeWhenFunctionalNoIs.antlrtree.txt index 79a4f66b5..53d1e3177 100644 --- a/grammar/testData/diagnostics/sealed/TreeWhenFunctionalNoIs.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/TreeWhenFunctionalNoIs.antlrtree.txt @@ -703,6 +703,4 @@ File: TreeWhenFunctionalNoIs.kt - 40a3290160f3c5fa8d5df2d250372e3c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/sealed/WhenOnEmptySealed.antlrtree.txt b/grammar/testData/diagnostics/sealed/WhenOnEmptySealed.antlrtree.txt index 0bd001341..df93091f9 100644 --- a/grammar/testData/diagnostics/sealed/WhenOnEmptySealed.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/WhenOnEmptySealed.antlrtree.txt @@ -1,5 +1,4 @@ -File: WhenOnEmptySealed.kt - 2296306d79d804bbebd10cf36e2c2fed - NL("\n") +File: WhenOnEmptySealed.kt - 017b7b53240269c5a6c3259d65b71dbd NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/sealed/internalTypeInConstructor.antlrtree.txt b/grammar/testData/diagnostics/sealed/internalTypeInConstructor.antlrtree.txt index 7f49f26bb..976e90212 100644 --- a/grammar/testData/diagnostics/sealed/internalTypeInConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/internalTypeInConstructor.antlrtree.txt @@ -1,4 +1,5 @@ -File: internalTypeInConstructor.kt - 01a9ab9978f1a0cdb5bbe1bc36d83179 +File: internalTypeInConstructor.kt - 16dc4d67d8245ca1f1b20a1fc0cac224 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/sealed/privateSealedConstructors_error.base.antlrtree.txt b/grammar/testData/diagnostics/sealed/privateSealedConstructors_error.base.antlrtree.txt new file mode 100644 index 000000000..7f72f2c77 --- /dev/null +++ b/grammar/testData/diagnostics/sealed/privateSealedConstructors_error.base.antlrtree.txt @@ -0,0 +1,348 @@ +File: privateSealedConstructors_error.base.kt - 27efd5b8dbd6679fe99f4da99f7d4f33 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("SealedBase") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + modifiers + modifier + visibilityModifier + PRIVATE("private") + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + constructorDelegationCall + THIS("this") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SealedNested") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SealedBase") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("nested") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SealedOuter") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SealedBase") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("outer") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("RegularBase") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + modifiers + modifier + visibilityModifier + PRIVATE("private") + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + constructorDelegationCall + THIS("this") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("RegularNested") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("RegularBase") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("nested") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("RegularOuter") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("RegularBase") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("outer") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/sealed/privateSealedConstructors_error.derived.antlrtree.txt b/grammar/testData/diagnostics/sealed/privateSealedConstructors_error.derived.antlrtree.txt new file mode 100644 index 000000000..f0c206e7d --- /dev/null +++ b/grammar/testData/diagnostics/sealed/privateSealedConstructors_error.derived.antlrtree.txt @@ -0,0 +1,47 @@ +File: privateSealedConstructors_error.derived.kt - 75ae3c4dd566fadd320ddc2ada9165cf + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SealedOuterInDifferentFile") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SealedBase") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("other file") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/sealed/privateSealedConstructors_warning.base.antlrtree.txt b/grammar/testData/diagnostics/sealed/privateSealedConstructors_warning.base.antlrtree.txt new file mode 100644 index 000000000..d84b585c7 --- /dev/null +++ b/grammar/testData/diagnostics/sealed/privateSealedConstructors_warning.base.antlrtree.txt @@ -0,0 +1,348 @@ +File: privateSealedConstructors_warning.base.kt - 27efd5b8dbd6679fe99f4da99f7d4f33 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("SealedBase") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + modifiers + modifier + visibilityModifier + PRIVATE("private") + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + constructorDelegationCall + THIS("this") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SealedNested") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SealedBase") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("nested") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SealedOuter") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SealedBase") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("outer") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("RegularBase") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + modifiers + modifier + visibilityModifier + PRIVATE("private") + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + constructorDelegationCall + THIS("this") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("RegularNested") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("RegularBase") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("nested") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("RegularOuter") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("RegularBase") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("outer") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/sealed/privateSealedConstructors_warning.derived.antlrtree.txt b/grammar/testData/diagnostics/sealed/privateSealedConstructors_warning.derived.antlrtree.txt new file mode 100644 index 000000000..30c4a79b3 --- /dev/null +++ b/grammar/testData/diagnostics/sealed/privateSealedConstructors_warning.derived.antlrtree.txt @@ -0,0 +1,47 @@ +File: privateSealedConstructors_warning.derived.kt - 75ae3c4dd566fadd320ddc2ada9165cf + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("SealedOuterInDifferentFile") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SealedBase") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("other file") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/sealed/privateTypeInConstructor.antlrtree.txt b/grammar/testData/diagnostics/sealed/privateTypeInConstructor.antlrtree.txt index 1a05ae5fb..d3c4267f8 100644 --- a/grammar/testData/diagnostics/sealed/privateTypeInConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/privateTypeInConstructor.antlrtree.txt @@ -1,4 +1,4 @@ -File: privateTypeInConstructor.kt - 5822c09eb89d83d701d69bc6ef261aa2 +File: privateTypeInConstructor.kt - e989af2bc00a5eacffedd80b86937908 NL("\n") NL("\n") NL("\n") @@ -126,4 +126,171 @@ File: privateTypeInConstructor.kt - 5822c09eb89d83d701d69bc6ef261aa2 RPAREN(")") semis NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("b") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + quest + QUEST_NO_WS("?") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + modifiers + modifier + visibilityModifier + PRIVATE("private") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + classParameter + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + simpleIdentifier + Identifier("b") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + constructorDelegationCall + THIS("this") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/sealed/protectedConstructors_disabled.antlrtree.txt b/grammar/testData/diagnostics/sealed/protectedConstructors_disabled.antlrtree.txt index d78ea0438..fe12cdf98 100644 --- a/grammar/testData/diagnostics/sealed/protectedConstructors_disabled.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/protectedConstructors_disabled.antlrtree.txt @@ -1,4 +1,4 @@ -File: protectedConstructors_disabled.kt - c05fa60c25895fef463e637c232e0683 +File: protectedConstructors_disabled.kt - 4c3d1ee3155206ca19346f9d2500ec20 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/sealed/protectedConstructors_enabled.antlrtree.txt b/grammar/testData/diagnostics/sealed/protectedConstructors_enabled.antlrtree.txt index 95d7da232..e8e983cdf 100644 --- a/grammar/testData/diagnostics/sealed/protectedConstructors_enabled.antlrtree.txt +++ b/grammar/testData/diagnostics/sealed/protectedConstructors_enabled.antlrtree.txt @@ -1,4 +1,4 @@ -File: protectedConstructors_enabled.kt - afc6a28755492c038e7c864cac3abddf +File: protectedConstructors_enabled.kt - 1d513162e6852beba959c1ea500576fa NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/sealed/sealedInheritorErrorMessage.antlrtree.txt b/grammar/testData/diagnostics/sealed/sealedInheritorErrorMessage.antlrtree.txt new file mode 100644 index 000000000..fd3ae812b --- /dev/null +++ b/grammar/testData/diagnostics/sealed/sealedInheritorErrorMessage.antlrtree.txt @@ -0,0 +1,196 @@ +File: sealedInheritorErrorMessage.kt - 35125f77261f94f3089231b6398110b5 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("SealedClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("anon") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SealedClass") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Local") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SealedClass") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + INTERFACE("interface") + simpleIdentifier + Identifier("SealedInterface") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("anon") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SealedInterface") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Local") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("SealedInterface") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/secondaryConstructors/constructorCallType.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/constructorCallType.antlrtree.txt index b4ead39fc..553830b78 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/constructorCallType.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/constructorCallType.antlrtree.txt @@ -1,5 +1,4 @@ -File: constructorCallType.kt - f0e8f497f402ad873d74dd440f90912f - NL("\n") +File: constructorCallType.kt - 15ae602610506c6adaf98d609d3c9ad9 NL("\n") NL("\n") packageHeader @@ -1054,6 +1053,4 @@ File: constructorCallType.kt - f0e8f497f402ad873d74dd440f90912f QUOTE_CLOSE(""") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/secondaryConstructors/constructorInObject.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/constructorInObject.antlrtree.txt index 8c1330e50..609bc16e2 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/constructorInObject.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/constructorInObject.antlrtree.txt @@ -139,6 +139,4 @@ File: constructorInObject.kt - b9f1b54d91062a91673d769c46f60058 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/secondaryConstructors/constructorInTrait.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/constructorInTrait.antlrtree.txt index ad68ba3a5..a179c6b50 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/constructorInTrait.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/constructorInTrait.antlrtree.txt @@ -20,6 +20,4 @@ File: constructorInTrait.kt - f06597d3ecd9dea4aea8305a11894349 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/secondaryConstructors/generics2.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/generics2.antlrtree.txt index cd6c250c0..23e8cde39 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/generics2.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/generics2.antlrtree.txt @@ -1,5 +1,4 @@ -File: generics2.kt - 23d1527f5217744be8072906c8fb717c - NL("\n") +File: generics2.kt - de78390b9fca618789d636983a66f285 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/passingInstance.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/passingInstance.antlrtree.txt index cfec35536..3d893e339 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/passingInstance.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/headerCallChecker/passingInstance.antlrtree.txt @@ -1,4 +1,5 @@ -File: passingInstance.kt - 4d0c1ee48469004942385663d9cf4eab +File: passingInstance.kt - 8ddfdadbf78aff5ae98ed4719f925d7e + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/secondaryConstructors/kt6993.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/kt6993.antlrtree.txt index 616dbe824..b67abc4cf 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/kt6993.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/kt6993.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt6993.kt - ec4ee0a6d5a239691c7c2a9fe253318e - NL("\n") +File: kt6993.kt - 153cd806ff384e1cdf3f2a64eaf32448 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/secondaryConstructors/noPrimaryConstructor.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/noPrimaryConstructor.antlrtree.txt index 789fdbb97..e5d6d7b66 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/noPrimaryConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/noPrimaryConstructor.antlrtree.txt @@ -1,4 +1,5 @@ -File: noPrimaryConstructor.kt - 00fe98c9a214b56a288c546d9fdab7ec +File: noPrimaryConstructor.kt - 8e8c3f5d809a2f9819db3f7fb9a54b85 + NL("\n") NL("\n") packageHeader importList @@ -66,6 +67,4 @@ File: noPrimaryConstructor.kt - 00fe98c9a214b56a288c546d9fdab7ec LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/secondaryConstructors/redeclarationsOfConstructorsIgnored.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/redeclarationsOfConstructorsIgnored.antlrtree.txt index e391b5ce2..3c1405d54 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/redeclarationsOfConstructorsIgnored.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/redeclarationsOfConstructorsIgnored.antlrtree.txt @@ -1,4 +1,5 @@ -File: redeclarationsOfConstructorsIgnored.kt - 46265d638336c0fcf0420006ecc6c75b +File: redeclarationsOfConstructorsIgnored.kt - f0ad5feb52f8a0e6f988d5c571cb8961 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/secondaryConstructors/return.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/return.antlrtree.txt index ae40c9e52..eb64472b0 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/return.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/return.antlrtree.txt @@ -1,5 +1,4 @@ -File: return.kt - 07134ec6ad43307e530e0a378dd9de43 - NL("\n") +File: return.kt - 53ef554d1ccc077b392bb9c320a90f08 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/secondaryConstructors/superAnyNonEmpty.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/superAnyNonEmpty.antlrtree.txt index 4d570d48a..2497c64ee 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/superAnyNonEmpty.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/superAnyNonEmpty.antlrtree.txt @@ -1,4 +1,5 @@ -File: superAnyNonEmpty.kt - 4c0c349c6bae8c17b63a95112d45a516 +File: superAnyNonEmpty.kt - 28b00b4a23a1cf2d78c8a3cce398759d + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/secondaryConstructors/thisNonExisting.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/thisNonExisting.antlrtree.txt index 8031745f5..2ff2dac98 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/thisNonExisting.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/thisNonExisting.antlrtree.txt @@ -1,5 +1,4 @@ -File: thisNonExisting.kt - 412e989717d1085d604a1f33a4e837e1 - NL("\n") +File: thisNonExisting.kt - 886fd924683641b3d83b118463df7b9e NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/secondaryConstructors/valOrValAndModifiersInCtr.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/valOrValAndModifiersInCtr.antlrtree.txt index b0671bf38..416f8a437 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/valOrValAndModifiersInCtr.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/valOrValAndModifiersInCtr.antlrtree.txt @@ -1,4 +1,5 @@ -File: valOrValAndModifiersInCtr.kt - 5667da2bcd96c1fb26fbf868703e9e5d (WITH_ERRORS) +File: valOrValAndModifiersInCtr.kt - 29cb663f927a5d5a226133d54e40f169 (WITH_ERRORS) + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/secondaryConstructors/varargsInDelegationCallToSecondary.antlrtree.txt b/grammar/testData/diagnostics/secondaryConstructors/varargsInDelegationCallToSecondary.antlrtree.txt index aad9dcdf6..3b3273c92 100644 --- a/grammar/testData/diagnostics/secondaryConstructors/varargsInDelegationCallToSecondary.antlrtree.txt +++ b/grammar/testData/diagnostics/secondaryConstructors/varargsInDelegationCallToSecondary.antlrtree.txt @@ -723,6 +723,4 @@ File: varargsInDelegationCallToSecondary.kt - 5c491c1bab0168618ca1f5ef1dac81e6 IntegerLiteral("1") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/senselessComparison/noExplicitType.antlrtree.txt b/grammar/testData/diagnostics/senselessComparison/noExplicitType.antlrtree.txt index a046a8ec1..640600553 100644 --- a/grammar/testData/diagnostics/senselessComparison/noExplicitType.antlrtree.txt +++ b/grammar/testData/diagnostics/senselessComparison/noExplicitType.antlrtree.txt @@ -1,4 +1,5 @@ -File: noExplicitType.kt - b423ef9cdf9ac161e1d2d790ec4744e9 +File: noExplicitType.kt - 3b1cb4d549a3d2c3725ad2a6bd10725d + NL("\n") packageHeader importList topLevelObject @@ -269,6 +270,4 @@ File: noExplicitType.kt - b423ef9cdf9ac161e1d2d790ec4744e9 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/senselessComparison/parenthesized.antlrtree.txt b/grammar/testData/diagnostics/senselessComparison/parenthesized.antlrtree.txt index 4e86f3382..e744a975c 100644 --- a/grammar/testData/diagnostics/senselessComparison/parenthesized.antlrtree.txt +++ b/grammar/testData/diagnostics/senselessComparison/parenthesized.antlrtree.txt @@ -954,6 +954,4 @@ File: parenthesized.kt - 80b23ab65dc49a48e508b8ffff969a20 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/shadowing/ShadowLambdaParameter.antlrtree.txt b/grammar/testData/diagnostics/shadowing/ShadowLambdaParameter.antlrtree.txt index 4fba275db..f2ba8aace 100644 --- a/grammar/testData/diagnostics/shadowing/ShadowLambdaParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/shadowing/ShadowLambdaParameter.antlrtree.txt @@ -1,4 +1,4 @@ -File: ShadowLambdaParameter.kt - fbf3bc99a0ef5d957e2f0adff577591b +File: ShadowLambdaParameter.kt - 7b383b1150e27b3fde80f7c637af87c2 NL("\n") NL("\n") packageHeader @@ -410,5 +410,5 @@ File: ShadowLambdaParameter.kt - fbf3bc99a0ef5d957e2f0adff577591b Identifier("Int") RPAREN(")") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/shadowing/ShadowParameterInFunctionBody.antlrtree.txt b/grammar/testData/diagnostics/shadowing/ShadowParameterInFunctionBody.antlrtree.txt index 12be5bce7..10142183d 100644 --- a/grammar/testData/diagnostics/shadowing/ShadowParameterInFunctionBody.antlrtree.txt +++ b/grammar/testData/diagnostics/shadowing/ShadowParameterInFunctionBody.antlrtree.txt @@ -1,4 +1,5 @@ -File: ShadowParameterInFunctionBody.kt - e474e741bc8e38c67db2a62f4bfeb0e3 +File: ShadowParameterInFunctionBody.kt - f88f1063abbed438b2aac354ce4e85e9 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/shadowing/ShadowParameterInNestedBlockInFor.antlrtree.txt b/grammar/testData/diagnostics/shadowing/ShadowParameterInNestedBlockInFor.antlrtree.txt index dfbc6bf2b..143663256 100644 --- a/grammar/testData/diagnostics/shadowing/ShadowParameterInNestedBlockInFor.antlrtree.txt +++ b/grammar/testData/diagnostics/shadowing/ShadowParameterInNestedBlockInFor.antlrtree.txt @@ -1,4 +1,5 @@ -File: ShadowParameterInNestedBlockInFor.kt - 13ee4d2daff2e549613b52e6972fbfa3 +File: ShadowParameterInNestedBlockInFor.kt - fbe628f3a5128e1f8204bc2d94deeabb + NL("\n") packageHeader importList topLevelObject @@ -125,5 +126,5 @@ File: ShadowParameterInNestedBlockInFor.kt - 13ee4d2daff2e549613b52e6972fbfa3 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/shadowing/ShadowPropertyInClosure.antlrtree.txt b/grammar/testData/diagnostics/shadowing/ShadowPropertyInClosure.antlrtree.txt index 5b63a7ff1..1d0c4e8aa 100644 --- a/grammar/testData/diagnostics/shadowing/ShadowPropertyInClosure.antlrtree.txt +++ b/grammar/testData/diagnostics/shadowing/ShadowPropertyInClosure.antlrtree.txt @@ -120,6 +120,4 @@ File: ShadowPropertyInClosure.kt - 78a2340398e8e79762bc3cc0d32e08ab Identifier("i") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/shadowing/ShadowVariableInNestedBlock.antlrtree.txt b/grammar/testData/diagnostics/shadowing/ShadowVariableInNestedBlock.antlrtree.txt index 6a73848af..bf4917ea8 100644 --- a/grammar/testData/diagnostics/shadowing/ShadowVariableInNestedBlock.antlrtree.txt +++ b/grammar/testData/diagnostics/shadowing/ShadowVariableInNestedBlock.antlrtree.txt @@ -1,4 +1,5 @@ -File: ShadowVariableInNestedBlock.kt - 605f545fac2fd8bd9cb0433f2d4f5f8d +File: ShadowVariableInNestedBlock.kt - e074152e496cefc24459a4579813da39 + NL("\n") packageHeader importList topLevelObject @@ -127,5 +128,5 @@ File: ShadowVariableInNestedBlock.kt - 605f545fac2fd8bd9cb0433f2d4f5f8d NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/shadowing/ShadowVariableInNestedClosure.antlrtree.txt b/grammar/testData/diagnostics/shadowing/ShadowVariableInNestedClosure.antlrtree.txt index c482d2f30..a5053c9e9 100644 --- a/grammar/testData/diagnostics/shadowing/ShadowVariableInNestedClosure.antlrtree.txt +++ b/grammar/testData/diagnostics/shadowing/ShadowVariableInNestedClosure.antlrtree.txt @@ -1,4 +1,5 @@ -File: ShadowVariableInNestedClosure.kt - e45e23b8d4d4ff89d5a97553d822e578 +File: ShadowVariableInNestedClosure.kt - 00773b7a8ec5920dbe8bccdb9a01ac27 + NL("\n") packageHeader importList topLevelObject @@ -125,5 +126,5 @@ File: ShadowVariableInNestedClosure.kt - e45e23b8d4d4ff89d5a97553d822e578 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/shadowing/noNameShadowingForSimpleParameters.antlrtree.txt b/grammar/testData/diagnostics/shadowing/noNameShadowingForSimpleParameters.antlrtree.txt index e41eacf95..c60595ded 100644 --- a/grammar/testData/diagnostics/shadowing/noNameShadowingForSimpleParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/shadowing/noNameShadowingForSimpleParameters.antlrtree.txt @@ -316,6 +316,4 @@ File: noNameShadowingForSimpleParameters.kt - 87f9f519ba75c0902cc6cc51291f00af LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/alwaysNull.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/alwaysNull.antlrtree.txt index 1dc916569..bd9169b41 100644 --- a/grammar/testData/diagnostics/smartCasts/alwaysNull.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/alwaysNull.antlrtree.txt @@ -1,5 +1,4 @@ -File: alwaysNull.kt - ca7f445a172cd802e0ebc5d0f23e6595 - NL("\n") +File: alwaysNull.kt - b8d3e61347a22609bee15ea95456ecb7 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/alwaysNullWithJava.Test.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/alwaysNullWithJava.Test.antlrtree.txt index 15c983849..f0c7aa04e 100644 --- a/grammar/testData/diagnostics/smartCasts/alwaysNullWithJava.Test.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/alwaysNullWithJava.Test.antlrtree.txt @@ -1,4 +1,4 @@ -File: alwaysNullWithJava.Test.kt - 63e1ed1b5aeef77325d976890c819ee0 +File: alwaysNullWithJava.Test.kt - 14e001fefa10779fe1f393dd8a13d992 packageHeader importList topLevelObject @@ -152,5 +152,4 @@ File: alwaysNullWithJava.Test.kt - 63e1ed1b5aeef77325d976890c819ee0 RCURL("}") semis NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/castchecks/basicOn.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/castchecks/basicOn.antlrtree.txt index ecddc07c0..50d7a0986 100644 --- a/grammar/testData/diagnostics/smartCasts/castchecks/basicOn.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/castchecks/basicOn.antlrtree.txt @@ -909,6 +909,4 @@ File: basicOn.kt - bee34b6f56901cbab1649e4d7a29654f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/castchecks/impossible.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/castchecks/impossible.antlrtree.txt index efc9c7dca..aa6212c54 100644 --- a/grammar/testData/diagnostics/smartCasts/castchecks/impossible.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/castchecks/impossible.antlrtree.txt @@ -1,4 +1,5 @@ -File: impossible.kt - 556ea427526abb512235f23cc7c2e61f +File: impossible.kt - 7b0f788cdce0a1d8dc6de6ab07056518 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/smartCasts/castchecks/insideCall.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/castchecks/insideCall.antlrtree.txt index 10c42a661..723804546 100644 --- a/grammar/testData/diagnostics/smartCasts/castchecks/insideCall.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/castchecks/insideCall.antlrtree.txt @@ -234,6 +234,4 @@ File: insideCall.kt - feadb3f4162acdab67e993350faf0628 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/castchecks/smartCastOfNullableExpressionWithExpectedType.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/castchecks/smartCastOfNullableExpressionWithExpectedType.antlrtree.txt index 7f60ffc14..80d3a94f3 100644 --- a/grammar/testData/diagnostics/smartCasts/castchecks/smartCastOfNullableExpressionWithExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/castchecks/smartCastOfNullableExpressionWithExpectedType.antlrtree.txt @@ -165,6 +165,4 @@ File: smartCastOfNullableExpressionWithExpectedType.kt - e160be2a77ad8b88fe11550 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/castchecks/variables.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/castchecks/variables.antlrtree.txt index 1f7e86031..de3e88112 100644 --- a/grammar/testData/diagnostics/smartCasts/castchecks/variables.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/castchecks/variables.antlrtree.txt @@ -1,5 +1,4 @@ -File: variables.kt - 73628492dbeb3bba0a8446e870215238 - NL("\n") +File: variables.kt - 93b57bfd90f38b298dad02896c512557 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/smartCasts/classObjectMember.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/classObjectMember.antlrtree.txt index 17f2f180c..67dbc6ce5 100644 --- a/grammar/testData/diagnostics/smartCasts/classObjectMember.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/classObjectMember.antlrtree.txt @@ -359,6 +359,4 @@ File: classObjectMember.kt - e0e5f926eab1a9037fd4df4874e002e9 primaryExpression simpleIdentifier Identifier("i") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/combineWithNoSelectorInfo.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/combineWithNoSelectorInfo.antlrtree.txt index d1bc2d345..984febd3e 100644 --- a/grammar/testData/diagnostics/smartCasts/combineWithNoSelectorInfo.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/combineWithNoSelectorInfo.antlrtree.txt @@ -1,4 +1,5 @@ -File: combineWithNoSelectorInfo.kt - 69658ef4db417470a742e84f623b984d +File: combineWithNoSelectorInfo.kt - fcdd356ad02104159d44c510b5967294 + NL("\n") packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/smartCasts/comparisonUnderAnd.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/comparisonUnderAnd.antlrtree.txt index a8e5aeee5..caef02f2f 100644 --- a/grammar/testData/diagnostics/smartCasts/comparisonUnderAnd.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/comparisonUnderAnd.antlrtree.txt @@ -1,5 +1,4 @@ -File: comparisonUnderAnd.kt - d11fcadef12704bcd900ad50e0ca7415 - NL("\n") +File: comparisonUnderAnd.kt - fb0cd3b6e747639ec1994ad53978b93e packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/complexComparison.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/complexComparison.antlrtree.txt index 4cc519dca..20a4223c0 100644 --- a/grammar/testData/diagnostics/smartCasts/complexComparison.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/complexComparison.antlrtree.txt @@ -1,5 +1,4 @@ -File: complexComparison.kt - e28154c7353ba1cfadb289e876757b14 - NL("\n") +File: complexComparison.kt - 13f66579a4e7a27232b89f848bb6d674 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/complexConditionsWithExcl.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/complexConditionsWithExcl.antlrtree.txt index 0acc7eff5..c5f4fb313 100644 --- a/grammar/testData/diagnostics/smartCasts/complexConditionsWithExcl.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/complexConditionsWithExcl.antlrtree.txt @@ -1689,6 +1689,4 @@ File: complexConditionsWithExcl.kt - 9aabb16ad2ce37605cef99284abd15e9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/doubleLambdaArgument.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/doubleLambdaArgument.antlrtree.txt index c297464e0..3c9a5ece1 100644 --- a/grammar/testData/diagnostics/smartCasts/doubleLambdaArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/doubleLambdaArgument.antlrtree.txt @@ -276,6 +276,4 @@ File: doubleLambdaArgument.kt - 1b62b0beec9febb0e475570a801b7a6c NL("\n") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/elvis/basicOff.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/elvis/basicOff.antlrtree.txt index 4b204e464..e3f487554 100644 --- a/grammar/testData/diagnostics/smartCasts/elvis/basicOff.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/elvis/basicOff.antlrtree.txt @@ -866,6 +866,4 @@ File: basicOff.kt - 8e94993cc005495532c1392c2b259067 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/elvis/basicOn.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/elvis/basicOn.antlrtree.txt index 6305c1e31..51ff223f9 100644 --- a/grammar/testData/diagnostics/smartCasts/elvis/basicOn.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/elvis/basicOn.antlrtree.txt @@ -865,6 +865,4 @@ File: basicOn.kt - a29d14924c71ef9a909feb2a20df10a7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/elvis/impossible.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/elvis/impossible.antlrtree.txt index 16d376548..432e031c3 100644 --- a/grammar/testData/diagnostics/smartCasts/elvis/impossible.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/elvis/impossible.antlrtree.txt @@ -1,4 +1,4 @@ -File: impossible.kt - 2ae1f4ca53c1fa61c5efe61619730a68 +File: impossible.kt - e0535ed071cb104757f0498d8f21ddd1 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/smartCasts/elvisExprNotNull.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/elvisExprNotNull.antlrtree.txt index 0ed613c4d..7b83f3f42 100644 --- a/grammar/testData/diagnostics/smartCasts/elvisExprNotNull.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/elvisExprNotNull.antlrtree.txt @@ -1,5 +1,4 @@ -File: elvisExprNotNull.kt - 61ecc1841e0739601f8c0d49e7e12fe2 - NL("\n") +File: elvisExprNotNull.kt - 05869eef3d76d2a0c2fe4f9d6fb46d0d packageHeader importList topLevelObject @@ -905,6 +904,4 @@ File: elvisExprNotNull.kt - 61ecc1841e0739601f8c0d49e7e12fe2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/equals.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/equals.antlrtree.txt index 389ad5995..04bad4bbe 100644 --- a/grammar/testData/diagnostics/smartCasts/equals.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/equals.antlrtree.txt @@ -836,6 +836,4 @@ File: equals.kt - 443dea8f677a64b4ddbe7f1faa306151 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/explicitDefaultGetter.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/explicitDefaultGetter.antlrtree.txt index 61df28e16..9eeb0f618 100644 --- a/grammar/testData/diagnostics/smartCasts/explicitDefaultGetter.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/explicitDefaultGetter.antlrtree.txt @@ -1,5 +1,4 @@ -File: explicitDefaultGetter.kt - 293899005cfa5ee8d4420d6c2e894a0e - NL("\n") +File: explicitDefaultGetter.kt - 95b85d7d6367f8a18d595c3d1dc01860 packageHeader importList topLevelObject @@ -218,6 +217,4 @@ File: explicitDefaultGetter.kt - 293899005cfa5ee8d4420d6c2e894a0e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/extensionSafeCall.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/extensionSafeCall.antlrtree.txt index 552542df1..c086cf4b7 100644 --- a/grammar/testData/diagnostics/smartCasts/extensionSafeCall.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/extensionSafeCall.antlrtree.txt @@ -350,6 +350,4 @@ File: extensionSafeCall.kt - cba06a191aa5163a6bad47429d923477 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/fakeSmartCastOnEquality.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/fakeSmartCastOnEquality.antlrtree.txt index 66a7f44b5..3d6545495 100644 --- a/grammar/testData/diagnostics/smartCasts/fakeSmartCastOnEquality.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/fakeSmartCastOnEquality.antlrtree.txt @@ -1720,6 +1720,4 @@ File: fakeSmartCastOnEquality.kt - fadbdd7cb963c548de160577f67cc78e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/falseUnnecessaryCall.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/falseUnnecessaryCall.antlrtree.txt index 3b6dc2a14..bd29407fa 100644 --- a/grammar/testData/diagnostics/smartCasts/falseUnnecessaryCall.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/falseUnnecessaryCall.antlrtree.txt @@ -171,6 +171,4 @@ File: falseUnnecessaryCall.kt - 6607e72fb4c48cb9f7fb135d5f35e1f9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/fieldExclExcl.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/fieldExclExcl.antlrtree.txt index 64cc6aa9a..ea38f695f 100644 --- a/grammar/testData/diagnostics/smartCasts/fieldExclExcl.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/fieldExclExcl.antlrtree.txt @@ -276,6 +276,4 @@ File: fieldExclExcl.kt - e7ef37e66e6253c230ec1ca52d0fd03b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/fieldPlus.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/fieldPlus.antlrtree.txt index 7682b5033..09dd4c318 100644 --- a/grammar/testData/diagnostics/smartCasts/fieldPlus.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/fieldPlus.antlrtree.txt @@ -456,6 +456,4 @@ File: fieldPlus.kt - a80f03fd2ead2cc44350932233339e7b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/ifExprInConditionNonNull.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/ifExprInConditionNonNull.antlrtree.txt index 0203341dd..28aa8f99d 100644 --- a/grammar/testData/diagnostics/smartCasts/ifExprInConditionNonNull.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/ifExprInConditionNonNull.antlrtree.txt @@ -486,6 +486,4 @@ File: ifExprInConditionNonNull.kt - 2570dcb4573bd48a1b18404c6b43fb05 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/ifExprInWhenSubjectNonNull.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/ifExprInWhenSubjectNonNull.antlrtree.txt index a1e1eb9a6..63d764944 100644 --- a/grammar/testData/diagnostics/smartCasts/ifExprInWhenSubjectNonNull.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/ifExprInWhenSubjectNonNull.antlrtree.txt @@ -461,6 +461,4 @@ File: ifExprInWhenSubjectNonNull.kt - 8860833cbad5914ebdec82574f2f1129 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/implicitReceiverAcrossFunctions.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/implicitReceiverAcrossFunctions.antlrtree.txt new file mode 100644 index 000000000..cbdc24576 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/implicitReceiverAcrossFunctions.antlrtree.txt @@ -0,0 +1,287 @@ +File: implicitReceiverAcrossFunctions.kt - f9b9459a2b964b5ec583ac7b0ded8fb4 + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("prop") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("prop") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("prop") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("prop") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("prop") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/implicitThisOnRefInLambdaInSmartcast.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/implicitThisOnRefInLambdaInSmartcast.antlrtree.txt new file mode 100644 index 000000000..a63fe3008 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/implicitThisOnRefInLambdaInSmartcast.antlrtree.txt @@ -0,0 +1,225 @@ +File: implicitThisOnRefInLambdaInSmartcast.kt - 826a1c49df95f3b4ec17e0041abaadc5 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + DOT(".") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("length") + RCURL("}") + RCURL("}") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RCURL("}") + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/incDecToNull.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/incDecToNull.antlrtree.txt index 1ba86fa91..813fac9f0 100644 --- a/grammar/testData/diagnostics/smartCasts/incDecToNull.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/incDecToNull.antlrtree.txt @@ -1,4 +1,5 @@ -File: incDecToNull.kt - eb9ff976e6f07a8bad9251a76d66b6a0 +File: incDecToNull.kt - 5d99646c9320d353fd7a0b06902208cf + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/inference/dependentOnPrevArg.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/inference/dependentOnPrevArg.antlrtree.txt index d55ce9578..d71260109 100644 --- a/grammar/testData/diagnostics/smartCasts/inference/dependentOnPrevArg.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/inference/dependentOnPrevArg.antlrtree.txt @@ -1,4 +1,4 @@ -File: dependentOnPrevArg.kt - c8eeaee828e9259f01f7eb766be90955 +File: dependentOnPrevArg.kt - a4f8df8785a56832aedc0194b1f175df packageHeader PACKAGE("package") identifier @@ -189,5 +189,5 @@ File: dependentOnPrevArg.kt - c8eeaee828e9259f01f7eb766be90955 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/inference/intersectionTypes.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/inference/intersectionTypes.antlrtree.txt index 87130712f..4440b70f5 100644 --- a/grammar/testData/diagnostics/smartCasts/inference/intersectionTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/inference/intersectionTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: intersectionTypes.kt - a1135380ba3ce7654cdc5f497ffbbafe - NL("\n") +File: intersectionTypes.kt - 185ab3b58efc513680de62d6e2361daf NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/smartCasts/inference/kt1275.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/inference/kt1275.antlrtree.txt index 74f17987e..a8977f55f 100644 --- a/grammar/testData/diagnostics/smartCasts/inference/kt1275.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/inference/kt1275.antlrtree.txt @@ -382,6 +382,4 @@ File: kt1275.kt - a8c5cd301720b8a121296f616a2ee66e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/inference/kt1355.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/inference/kt1355.antlrtree.txt index 656007f0b..1a3e794a7 100644 --- a/grammar/testData/diagnostics/smartCasts/inference/kt1355.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/inference/kt1355.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt1355.kt - 7768d4c235a9f0574c2677e0c0071133 +File: kt1355.kt - f2027d79188f7e789004a889bc987497 NL("\n") NL("\n") packageHeader @@ -1082,6 +1082,4 @@ File: kt1355.kt - 7768d4c235a9f0574c2677e0c0071133 RPAREN(")") semis NL("\n") - NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/inference/kt25432.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/inference/kt25432.antlrtree.txt index 4293f7bbb..73b74ea06 100644 --- a/grammar/testData/diagnostics/smartCasts/inference/kt25432.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/inference/kt25432.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt25432.kt - 9ba40e9b15bf7da55ad9304a39353eee - NL("\n") +File: kt25432.kt - 4802e0289f01addcdc235e4bd33b6204 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/smartCasts/inference/kt29767.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/inference/kt29767.antlrtree.txt index 612f07eb5..c4013cfb3 100644 --- a/grammar/testData/diagnostics/smartCasts/inference/kt29767.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/inference/kt29767.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt29767.kt - a67967e1bfa29e862ea968a80b390b58 - NL("\n") +File: kt29767.kt - 4db70c76138f7ed834dbed467a140746 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/smartCasts/inference/kt39010.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/inference/kt39010.antlrtree.txt index 35071fd90..170a38238 100644 --- a/grammar/testData/diagnostics/smartCasts/inference/kt39010.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/inference/kt39010.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt39010.kt - aeff71c5459286931cc4e662eae94c19 +File: kt39010.kt - c7bd974f300644ffc799b29ac848d86e + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/inference/kt39010_2.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/inference/kt39010_2.antlrtree.txt index f67799674..bbc9dcc22 100644 --- a/grammar/testData/diagnostics/smartCasts/inference/kt39010_2.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/inference/kt39010_2.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt39010_2.kt - 651dc29578c8c82a71b5da3620bef430 +File: kt39010_2.kt - 97b4bf957081509c5105eba9dda94a29 + NL("\n") packageHeader importList topLevelObject @@ -220,6 +221,4 @@ File: kt39010_2.kt - 651dc29578c8c82a71b5da3620bef430 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/inference/kt4009.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/inference/kt4009.antlrtree.txt index 5d301a143..788861084 100644 --- a/grammar/testData/diagnostics/smartCasts/inference/kt4009.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/inference/kt4009.antlrtree.txt @@ -474,6 +474,4 @@ File: kt4009.kt - a17b86f447d883c5382a40750504539d LineStrRef("$any") QUOTE_CLOSE(""") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/inference/kt4403.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/inference/kt4403.antlrtree.txt index ffba5126b..da708bb16 100644 --- a/grammar/testData/diagnostics/smartCasts/inference/kt4403.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/inference/kt4403.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt4403.kt - 96300318cdf83e0cbd280b7638388b48 +File: kt4403.kt - 55129e522a63a4de43ada87f36db02f6 NL("\n") NL("\n") packageHeader @@ -214,5 +214,5 @@ File: kt4403.kt - 96300318cdf83e0cbd280b7638388b48 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/inference/kt6242.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/inference/kt6242.antlrtree.txt index 82fe05602..89beea674 100644 --- a/grammar/testData/diagnostics/smartCasts/inference/kt6242.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/inference/kt6242.antlrtree.txt @@ -274,6 +274,4 @@ File: kt6242.kt - f2b087d8c12733f6238c2a72603996f5 RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/inference/smartCastOnReceiver.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/inference/smartCastOnReceiver.antlrtree.txt index e220d0723..c2193d973 100644 --- a/grammar/testData/diagnostics/smartCasts/inference/smartCastOnReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/inference/smartCastOnReceiver.antlrtree.txt @@ -398,6 +398,4 @@ File: smartCastOnReceiver.kt - 2376d087c7a6dc419d073557ee3e3012 simpleIdentifier Identifier("that") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/inference/stabilityOfSmartcastsAgainstGenericFunctions.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/inference/stabilityOfSmartcastsAgainstGenericFunctions.antlrtree.txt index ef6fb94de..096e9d7f6 100644 --- a/grammar/testData/diagnostics/smartCasts/inference/stabilityOfSmartcastsAgainstGenericFunctions.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/inference/stabilityOfSmartcastsAgainstGenericFunctions.antlrtree.txt @@ -253,6 +253,4 @@ File: stabilityOfSmartcastsAgainstGenericFunctions.kt - 9bcf3d5d99c6dac117d1e15e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/inference/syntheticPropertyOnUnstableSmartcast.p_test.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/inference/syntheticPropertyOnUnstableSmartcast.p_test.antlrtree.txt new file mode 100644 index 000000000..7cf268e73 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/inference/syntheticPropertyOnUnstableSmartcast.p_test.antlrtree.txt @@ -0,0 +1,344 @@ +File: syntheticPropertyOnUnstableSmartcast.p_test.kt - 6eeee0d4360bf31f348d6a11d2ad4836 + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("p") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Sub") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Super") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("onlyInSub") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("getName") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("setName") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Super") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Sub") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Sub") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + assignableSuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("name") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("onlyInSub") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/inference/unneededUnstableSmartcast.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/inference/unneededUnstableSmartcast.antlrtree.txt new file mode 100644 index 000000000..b9b54fb55 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/inference/unneededUnstableSmartcast.antlrtree.txt @@ -0,0 +1,153 @@ +File: unneededUnstableSmartcast.kt - 12a37256d391ad8a97c5742c7493ac99 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Test") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAR("var") + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("size") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/intersectionScope/unstableSmartCast.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/intersectionScope/unstableSmartCast.antlrtree.txt index d2dbadd90..2cd47929c 100644 --- a/grammar/testData/diagnostics/smartCasts/intersectionScope/unstableSmartCast.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/intersectionScope/unstableSmartCast.antlrtree.txt @@ -1,4 +1,4 @@ -File: unstableSmartCast.kt - 71389b804eb402da1184e7269b42508f +File: unstableSmartCast.kt - b77d44fff5a3a73f4f83685209d76ef8 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/smartCasts/kt10232.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt10232.antlrtree.txt index e76620103..26761b299 100644 --- a/grammar/testData/diagnostics/smartCasts/kt10232.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt10232.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt10232.kt - c65b617d80ba2cdfdcb2e3133c896fb8 +File: kt10232.kt - 25ccaf81e1c4a6d72ef47e4adf500480 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/smartCasts/kt10444.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt10444.antlrtree.txt index fbba728a1..f357f04e5 100644 --- a/grammar/testData/diagnostics/smartCasts/kt10444.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt10444.antlrtree.txt @@ -1,10 +1,27 @@ -File: kt10444.kt - b3d3e74a9d180ca2eac80f7858b21b2e - NL("\n") +File: kt10444.kt - 1ca889dc8d413b0c0d124d78d0eac410 NL("\n") NL("\n") NL("\n") packageHeader importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Base") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + varianceModifier + IN("in") + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") topLevelObject declaration classDeclaration @@ -289,6 +306,79 @@ File: kt10444.kt - b3d3e74a9d180ca2eac80f7858b21b2e semis NL("\n") NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") classMemberDeclaration declaration functionDeclaration diff --git a/grammar/testData/diagnostics/smartCasts/kt1461.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt1461.antlrtree.txt index 97a25ed2e..470ac4679 100644 --- a/grammar/testData/diagnostics/smartCasts/kt1461.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt1461.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt1461.kt - cff441e439b608004ba335e870eb3860 +File: kt1461.kt - d0c2937ddd440f092e35088e9f128f7d + NL("\n") NL("\n") packageHeader PACKAGE("package") @@ -517,5 +518,5 @@ File: kt1461.kt - cff441e439b608004ba335e870eb3860 RPAREN(")") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/kt2422.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt2422.antlrtree.txt index c189a9897..2c90e434a 100644 --- a/grammar/testData/diagnostics/smartCasts/kt2422.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt2422.antlrtree.txt @@ -698,6 +698,4 @@ File: kt2422.kt - 0a836e61ecee507306057a1e6040423a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/kt27221.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt27221.antlrtree.txt index 31ece1b72..8df6be7dd 100644 --- a/grammar/testData/diagnostics/smartCasts/kt27221.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt27221.antlrtree.txt @@ -558,6 +558,4 @@ File: kt27221.kt - 27317dba6d2ec0b9e3a7b8cfbdf76155 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/kt27221_2.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt27221_2.antlrtree.txt index b3c4dd90a..9658789f6 100644 --- a/grammar/testData/diagnostics/smartCasts/kt27221_2.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt27221_2.antlrtree.txt @@ -714,6 +714,4 @@ File: kt27221_2.kt - e19cecc28cb73664f988a6f2b569a4de semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/kt27221_irrelevantClasses.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt27221_irrelevantClasses.antlrtree.txt index 9fb1471f1..e0db6dfb9 100644 --- a/grammar/testData/diagnostics/smartCasts/kt27221_irrelevantClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt27221_irrelevantClasses.antlrtree.txt @@ -558,6 +558,4 @@ File: kt27221_irrelevantClasses.kt - ae719cbdd6e3e436b74893e6ad908241 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/kt2865.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt2865.antlrtree.txt index 051b94fc7..cd748f2ca 100644 --- a/grammar/testData/diagnostics/smartCasts/kt2865.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt2865.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt2865.kt - 368e5eea8581d0dfc2eaff530f6cc5a1 - NL("\n") +File: kt2865.kt - 4819ed2e8b37ae5d6f8f1026830aa9eb packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/kt30826.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt30826.antlrtree.txt index ec6fe50c7..5b5260c5c 100644 --- a/grammar/testData/diagnostics/smartCasts/kt30826.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt30826.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt30826.kt - fa628981ccbbfea01e28f2d0a6448461 +File: kt30826.kt - c1c6316c8789c5555a6cd04774b5ea66 NL("\n") NL("\n") NL("\n") @@ -268,6 +268,4 @@ File: kt30826.kt - fa628981ccbbfea01e28f2d0a6448461 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/kt30927.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt30927.antlrtree.txt index 03fb4d609..9fe264f9f 100644 --- a/grammar/testData/diagnostics/smartCasts/kt30927.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt30927.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt30927.kt - 9578c1dcfa7073708362cc0a7224b61b - NL("\n") +File: kt30927.kt - 2be95784cfc65754168f2bf747588e5b NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/smartCasts/kt3224.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt3224.antlrtree.txt index 96f15017d..403c91cad 100644 --- a/grammar/testData/diagnostics/smartCasts/kt3224.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt3224.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt3224.kt - f71d55470ee3e39f91ff6a8aaca2de53 +File: kt3224.kt - 167e5208f688a6aad3d4870eeaa62943 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/smartCasts/kt32358_2.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt32358_2.antlrtree.txt index 1a115eb2b..48daf94d2 100644 --- a/grammar/testData/diagnostics/smartCasts/kt32358_2.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt32358_2.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt32358_2.kt - 70c4959773a5929ed08facf9fc4c6ab8 +File: kt32358_2.kt - 4d0f917f467181cf327b549b8593497b NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/smartCasts/kt3244.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt3244.antlrtree.txt index 15f0a0afa..c4b476ed6 100644 --- a/grammar/testData/diagnostics/smartCasts/kt3244.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt3244.antlrtree.txt @@ -261,6 +261,4 @@ File: kt3244.kt - 99506448d69f79778d7988badcb20845 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/kt3572.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt3572.antlrtree.txt index 4f5028f5f..0ed3f8ddb 100644 --- a/grammar/testData/diagnostics/smartCasts/kt3572.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt3572.antlrtree.txt @@ -220,6 +220,4 @@ File: kt3572.kt - 54e29251b3d56fd2bc3f862556cf51c5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/kt3711.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt3711.antlrtree.txt index b3438bfa0..dae123248 100644 --- a/grammar/testData/diagnostics/smartCasts/kt3711.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt3711.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt3711.kt - 24db1ae69b0f782becf9b222a993a59f +File: kt3711.kt - 4b00ed34548c0d20e803fe7cd7dd22d4 packageHeader importList topLevelObject @@ -277,5 +277,5 @@ File: kt3711.kt - 24db1ae69b0f782becf9b222a993a59f NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/kt3899.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt3899.antlrtree.txt index 8cd119410..5f9182e36 100644 --- a/grammar/testData/diagnostics/smartCasts/kt3899.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt3899.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt3899.kt - c7335136a9014494305d715fb4c540b5 +File: kt3899.kt - bee41e64d4ab0ce356ce07d9b4a2ccba packageHeader importList topLevelObject @@ -455,5 +455,5 @@ File: kt3899.kt - c7335136a9014494305d715fb4c540b5 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/kt3993.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt3993.antlrtree.txt index 260b684d0..686f27c36 100644 --- a/grammar/testData/diagnostics/smartCasts/kt3993.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt3993.antlrtree.txt @@ -244,6 +244,4 @@ File: kt3993.kt - a9f8f403c9784deaae59dcf799c05781 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/kt51460.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt51460.antlrtree.txt new file mode 100644 index 000000000..7acdc93e5 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/kt51460.antlrtree.txt @@ -0,0 +1,284 @@ +File: kt51460.kt - 9aafaba26191c8e0ea154679efb9dc15 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + modifier + visibilityModifier + PROTECTED("protected") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + quest + QUEST_NO_WS("?") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + semis + NL("\n") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + quest + QUEST_NO_WS("?") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/kt5455.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt5455.antlrtree.txt index e527b1ef7..028b3f09e 100644 --- a/grammar/testData/diagnostics/smartCasts/kt5455.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt5455.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt5455.kt - f3b480967069150abd9097265b81786c +File: kt5455.kt - fd18c79dc62068b4a3e7fece5caf2ac8 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/smartCasts/kt6819.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/kt6819.antlrtree.txt index 2bd8e84d0..94b9f8b7d 100644 --- a/grammar/testData/diagnostics/smartCasts/kt6819.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/kt6819.antlrtree.txt @@ -210,6 +210,4 @@ File: kt6819.kt - 21fa0a0ea1585a9c00f7946d284a6f53 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithBoundWithoutType.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithBoundWithoutType.antlrtree.txt index ce7f3bc07..72d829cfe 100644 --- a/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithBoundWithoutType.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithBoundWithoutType.antlrtree.txt @@ -1,5 +1,4 @@ -File: lambdaArgumentWithBoundWithoutType.kt - 6e4e954f7d9b841b1625800250a09f78 - NL("\n") +File: lambdaArgumentWithBoundWithoutType.kt - 986f26130ddd962f3c97544c4e867fad packageHeader importList topLevelObject @@ -774,6 +773,4 @@ File: lambdaArgumentWithBoundWithoutType.kt - 6e4e954f7d9b841b1625800250a09f78 NL("\n") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithExpectedGenericType.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithExpectedGenericType.antlrtree.txt index 7d54bdfca..07189732d 100644 --- a/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithExpectedGenericType.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithExpectedGenericType.antlrtree.txt @@ -239,6 +239,4 @@ File: lambdaArgumentWithExpectedGenericType.kt - d75704f65f528999e6e129da44a09ec semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithoutType.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithoutType.antlrtree.txt index fe34fcd46..d824496c2 100644 --- a/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithoutType.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithoutType.antlrtree.txt @@ -526,6 +526,4 @@ File: lambdaArgumentWithoutType.kt - f6187d507267a87b1a9dcc100ba109ee semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithoutTypeIf.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithoutTypeIf.antlrtree.txt index 625ede865..ca2b277e5 100644 --- a/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithoutTypeIf.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithoutTypeIf.antlrtree.txt @@ -275,6 +275,4 @@ File: lambdaArgumentWithoutTypeIf.kt - 36a03f7e75f472b8f24960af08c3361f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithoutTypeIfMerge.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithoutTypeIfMerge.antlrtree.txt index c92413626..f2e6cb31c 100644 --- a/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithoutTypeIfMerge.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithoutTypeIfMerge.antlrtree.txt @@ -1,4 +1,4 @@ -File: lambdaArgumentWithoutTypeIfMerge.kt - 4929fd341c3671a8d6ac4f614e124a43 +File: lambdaArgumentWithoutTypeIfMerge.kt - 8459b00bf2458a7dc3bc461e79bbbf75 NL("\n") NL("\n") packageHeader @@ -319,5 +319,5 @@ File: lambdaArgumentWithoutTypeIfMerge.kt - 4929fd341c3671a8d6ac4f614e124a43 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithoutTypeWhen.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithoutTypeWhen.antlrtree.txt index b53dc23f0..b10229939 100644 --- a/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithoutTypeWhen.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/lambdaArgumentWithoutTypeWhen.antlrtree.txt @@ -346,6 +346,4 @@ File: lambdaArgumentWithoutTypeWhen.kt - d1aa0bff8f32f5059309201ba7571fbe semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/lambdaCall.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/lambdaCall.antlrtree.txt index d3b5314f2..8895e7f82 100644 --- a/grammar/testData/diagnostics/smartCasts/lambdaCall.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/lambdaCall.antlrtree.txt @@ -113,6 +113,4 @@ File: lambdaCall.kt - 4632e6ac6209a586576f8357b56d0f1c valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/lambdaCallAnnotated.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/lambdaCallAnnotated.antlrtree.txt index 0ffb960d6..f48ab6b8b 100644 --- a/grammar/testData/diagnostics/smartCasts/lambdaCallAnnotated.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/lambdaCallAnnotated.antlrtree.txt @@ -210,6 +210,4 @@ File: lambdaCallAnnotated.kt - 33c67b62667c61c5f2a9204ec7d15100 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/lambdaDeclaresAndModifies.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/lambdaDeclaresAndModifies.antlrtree.txt index 59e73fcef..79b8fea4b 100644 --- a/grammar/testData/diagnostics/smartCasts/lambdaDeclaresAndModifies.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/lambdaDeclaresAndModifies.antlrtree.txt @@ -197,6 +197,4 @@ File: lambdaDeclaresAndModifies.kt - 5fd4553e6b59820de07f71d1708ea075 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/lambdaDeclaresAndModifiesInLoop.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/lambdaDeclaresAndModifiesInLoop.antlrtree.txt index 07e719b11..689c875fb 100644 --- a/grammar/testData/diagnostics/smartCasts/lambdaDeclaresAndModifiesInLoop.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/lambdaDeclaresAndModifiesInLoop.antlrtree.txt @@ -255,6 +255,4 @@ File: lambdaDeclaresAndModifiesInLoop.kt - 0c49b59666cba78c3706d3d6055a14ed semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/lambdaDeclaresAndModifiesInSecondary.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/lambdaDeclaresAndModifiesInSecondary.antlrtree.txt index 7194c81d0..12152f17a 100644 --- a/grammar/testData/diagnostics/smartCasts/lambdaDeclaresAndModifiesInSecondary.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/lambdaDeclaresAndModifiesInSecondary.antlrtree.txt @@ -206,6 +206,4 @@ File: lambdaDeclaresAndModifiesInSecondary.kt - f1b9cce9569e451e5cb79023f6a88918 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/lambdaDeclaresAndModifiesWithDirectEq.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/lambdaDeclaresAndModifiesWithDirectEq.antlrtree.txt index 061964cd1..3f529b094 100644 --- a/grammar/testData/diagnostics/smartCasts/lambdaDeclaresAndModifiesWithDirectEq.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/lambdaDeclaresAndModifiesWithDirectEq.antlrtree.txt @@ -581,6 +581,4 @@ File: lambdaDeclaresAndModifiesWithDirectEq.kt - 9ff7b860b7db6b95ad9ed947f3f7318 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/lambdaUsesOwnerModifies.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/lambdaUsesOwnerModifies.antlrtree.txt index 3805194a2..7bf2757f8 100644 --- a/grammar/testData/diagnostics/smartCasts/lambdaUsesOwnerModifies.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/lambdaUsesOwnerModifies.antlrtree.txt @@ -1,4 +1,4 @@ -File: lambdaUsesOwnerModifies.kt - fe72527859941d6fbf26eaabc0032a3d +File: lambdaUsesOwnerModifies.kt - 7c4776ad57428c4c3aaee6a3beb48eef NL("\n") packageHeader importList @@ -224,6 +224,4 @@ File: lambdaUsesOwnerModifies.kt - fe72527859941d6fbf26eaabc0032a3d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/localClassChanges.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/localClassChanges.antlrtree.txt index 742d3d6fb..351bd559f 100644 --- a/grammar/testData/diagnostics/smartCasts/localClassChanges.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/localClassChanges.antlrtree.txt @@ -1,4 +1,5 @@ -File: localClassChanges.kt - 3af7e1a4e7afad90cc6620e055164127 +File: localClassChanges.kt - 831f57d8d8c4a7d5c9056d7bef566849 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/localDelegatedPropertyAfter.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/localDelegatedPropertyAfter.antlrtree.txt index 815db68a1..b2197b391 100644 --- a/grammar/testData/diagnostics/smartCasts/localDelegatedPropertyAfter.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/localDelegatedPropertyAfter.antlrtree.txt @@ -365,6 +365,4 @@ File: localDelegatedPropertyAfter.kt - 39977b8a65375702b70d81536f4ebbde semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/localDelegatedPropertyBefore.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/localDelegatedPropertyBefore.antlrtree.txt index c69a16bc2..d2ab5bc89 100644 --- a/grammar/testData/diagnostics/smartCasts/localDelegatedPropertyBefore.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/localDelegatedPropertyBefore.antlrtree.txt @@ -365,6 +365,4 @@ File: localDelegatedPropertyBefore.kt - 7ffd08f43537d5c40aaa31d4881f17c0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/localFunChanges.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/localFunChanges.antlrtree.txt index 1f7c0f865..3101bcd63 100644 --- a/grammar/testData/diagnostics/smartCasts/localFunChanges.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/localFunChanges.antlrtree.txt @@ -1,4 +1,4 @@ -File: localFunChanges.kt - 951837bb4fbd11299cbcc97c6c25426a +File: localFunChanges.kt - 0a37fd0aee1cc997671ee44cf6bee59e NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/smartCasts/loops/assignElvisIfBreakInsideWhileTrue.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/assignElvisIfBreakInsideWhileTrue.antlrtree.txt index 19d444c01..4362cc953 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/assignElvisIfBreakInsideWhileTrue.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/assignElvisIfBreakInsideWhileTrue.antlrtree.txt @@ -308,6 +308,4 @@ File: assignElvisIfBreakInsideWhileTrue.kt - 9e5eb83c859b3a773933303df2fc0ee4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/doWhile.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/doWhile.antlrtree.txt index dc9359cde..41fc7feec 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/doWhile.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/doWhile.antlrtree.txt @@ -224,6 +224,4 @@ File: doWhile.kt - 985c25c2160b67d571e3c4acf103f450 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/doWhileBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/doWhileBreak.antlrtree.txt index 321ff410b..f0a8b6963 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/doWhileBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/doWhileBreak.antlrtree.txt @@ -304,6 +304,4 @@ File: doWhileBreak.kt - cb3cfe11f87dca6e76c61da36e005374 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/doWhileContinue.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/doWhileContinue.antlrtree.txt index e0badbd50..af4cf55d7 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/doWhileContinue.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/doWhileContinue.antlrtree.txt @@ -304,6 +304,4 @@ File: doWhileContinue.kt - 28f9534a6e7a8e6e06cd8fe688c0b4b5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/doWhileInCondition.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/doWhileInCondition.antlrtree.txt index 5d15a64a9..5a8919f0b 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/doWhileInCondition.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/doWhileInCondition.antlrtree.txt @@ -141,6 +141,4 @@ File: doWhileInCondition.kt - 1dccdd820219a5ae51498c13f3188945 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/doWhileInConditionWithBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/doWhileInConditionWithBreak.antlrtree.txt index 0933791e1..fca23443c 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/doWhileInConditionWithBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/doWhileInConditionWithBreak.antlrtree.txt @@ -270,6 +270,4 @@ File: doWhileInConditionWithBreak.kt - 4a0b346258ac064ca9063081b3453c39 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/doWhileLiteral.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/doWhileLiteral.antlrtree.txt index 0756ac27e..fe47c4720 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/doWhileLiteral.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/doWhileLiteral.antlrtree.txt @@ -1,4 +1,5 @@ -File: doWhileLiteral.kt - 42550886cb53d6739a41dbda86c09852 +File: doWhileLiteral.kt - 054db52d6d462ee699392d211f63c6a1 + NL("\n") packageHeader importList topLevelObject @@ -243,5 +244,5 @@ File: doWhileLiteral.kt - 42550886cb53d6739a41dbda86c09852 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/doWhileNotNullBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/doWhileNotNullBreak.antlrtree.txt index 43bd6e8c3..8e12ae4af 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/doWhileNotNullBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/doWhileNotNullBreak.antlrtree.txt @@ -269,6 +269,4 @@ File: doWhileNotNullBreak.kt - 16e87828c4ca323f3f16c319a7ae479b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/doWhileNull.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/doWhileNull.antlrtree.txt index 04443b66f..1ef0d2a59 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/doWhileNull.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/doWhileNull.antlrtree.txt @@ -131,6 +131,4 @@ File: doWhileNull.kt - 0358a816ab8fc0832a37dd8d613472f6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/doWhileNullWithBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/doWhileNullWithBreak.antlrtree.txt index 31190158a..5fcbf2b34 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/doWhileNullWithBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/doWhileNullWithBreak.antlrtree.txt @@ -260,6 +260,4 @@ File: doWhileNullWithBreak.kt - 81ca7fa9df0e4f4758361c3c1e334c8c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/elvisBreakInsideDoWhile.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/elvisBreakInsideDoWhile.antlrtree.txt index 6f79a614f..536c2f178 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/elvisBreakInsideDoWhile.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/elvisBreakInsideDoWhile.antlrtree.txt @@ -183,6 +183,4 @@ File: elvisBreakInsideDoWhile.kt - c50ea25bddb63eb0025efbc37b01c55d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/elvisInsideDoWhile.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/elvisInsideDoWhile.antlrtree.txt index 97549996a..618c9b30a 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/elvisInsideDoWhile.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/elvisInsideDoWhile.antlrtree.txt @@ -249,6 +249,4 @@ File: elvisInsideDoWhile.kt - 6976e8d76d7d34fb6c096922ad92b958 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/elvisLeftBreakInsideWhileTrue.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/elvisLeftBreakInsideWhileTrue.antlrtree.txt index 0104b1dd9..c1d7a983f 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/elvisLeftBreakInsideWhileTrue.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/elvisLeftBreakInsideWhileTrue.antlrtree.txt @@ -298,6 +298,4 @@ File: elvisLeftBreakInsideWhileTrue.kt - 8e1292be80ff1d9f09cc14abc5396fe4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/ifBlockInsideDoWhile.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/ifBlockInsideDoWhile.antlrtree.txt index f36cdb3e2..d1bb1fe90 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/ifBlockInsideDoWhile.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/ifBlockInsideDoWhile.antlrtree.txt @@ -332,6 +332,4 @@ File: ifBlockInsideDoWhile.kt - ba10d79ee92108b99239566185f8d6c2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/ifElseBlockInsideDoWhile.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/ifElseBlockInsideDoWhile.antlrtree.txt index 5e053d288..3993282e7 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/ifElseBlockInsideDoWhile.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/ifElseBlockInsideDoWhile.antlrtree.txt @@ -384,6 +384,4 @@ File: ifElseBlockInsideDoWhile.kt - 94afe9f5764b5fc97c6bef66c48af16b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/ifInsideDoWhile.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/ifInsideDoWhile.antlrtree.txt index 6b4d53bbd..4342ddc65 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/ifInsideDoWhile.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/ifInsideDoWhile.antlrtree.txt @@ -289,6 +289,4 @@ File: ifInsideDoWhile.kt - 0b297672d9f6bb57d89d2783b863eb7c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/leftElvisBreakInsideWhileTrue.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/leftElvisBreakInsideWhileTrue.antlrtree.txt index bd8468160..1af268d20 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/leftElvisBreakInsideWhileTrue.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/leftElvisBreakInsideWhileTrue.antlrtree.txt @@ -327,6 +327,4 @@ File: leftElvisBreakInsideWhileTrue.kt - ae10b68810e37335c50ae2ee873a0c84 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/nestedDoWhile.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/nestedDoWhile.antlrtree.txt index 471eb99c9..71d2a3e47 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/nestedDoWhile.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/nestedDoWhile.antlrtree.txt @@ -314,6 +314,4 @@ File: nestedDoWhile.kt - 4667477a71e3ed0583762150acc4c7a0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/nestedDoWhileWithLongContinue.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/nestedDoWhileWithLongContinue.antlrtree.txt index cc7c13a1e..1bde1be4a 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/nestedDoWhileWithLongContinue.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/nestedDoWhileWithLongContinue.antlrtree.txt @@ -388,6 +388,4 @@ File: nestedDoWhileWithLongContinue.kt - 31464393f6579fc589a0538c8ca139d6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/nestedLoops.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/nestedLoops.antlrtree.txt index 4935ffe3f..5e1c232c9 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/nestedLoops.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/nestedLoops.antlrtree.txt @@ -489,6 +489,4 @@ File: nestedLoops.kt - 8661cfff49ea1a255a4091491fda2a6b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/nestedLoopsShort.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/nestedLoopsShort.antlrtree.txt index e8c1ca74a..e1eab7a1c 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/nestedLoopsShort.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/nestedLoopsShort.antlrtree.txt @@ -447,6 +447,4 @@ File: nestedLoopsShort.kt - 9e158e8dfc04f24d9aad1367650846a8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/nestedLoopsWithBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/nestedLoopsWithBreak.antlrtree.txt index 27260f796..eee65144c 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/nestedLoopsWithBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/nestedLoopsWithBreak.antlrtree.txt @@ -545,6 +545,4 @@ File: nestedLoopsWithBreak.kt - 95dd340fd376cf1c27065aed27ea8e1f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/nestedLoopsWithLongBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/nestedLoopsWithLongBreak.antlrtree.txt index 1e83e8cf5..53520d87d 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/nestedLoopsWithLongBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/nestedLoopsWithLongBreak.antlrtree.txt @@ -704,6 +704,4 @@ File: nestedLoopsWithLongBreak.kt - a357c4e80b436dcc8172c08b37658d2d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/nestedLoopsWithLongContinue.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/nestedLoopsWithLongContinue.antlrtree.txt index edce8a82b..64d9a16e5 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/nestedLoopsWithLongContinue.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/nestedLoopsWithLongContinue.antlrtree.txt @@ -560,6 +560,4 @@ File: nestedLoopsWithLongContinue.kt - ecbf558c66ec3c5c37721d0f40bb9ac2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/useInsideDoWhile.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/useInsideDoWhile.antlrtree.txt index 7bd5cefb6..b4f526201 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/useInsideDoWhile.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/useInsideDoWhile.antlrtree.txt @@ -271,6 +271,4 @@ File: useInsideDoWhile.kt - ee3406484e79a0fa22f00164df6e4bb1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/whileInCondition.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/whileInCondition.antlrtree.txt index b8d142348..4d7d5a0bb 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/whileInCondition.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/whileInCondition.antlrtree.txt @@ -167,6 +167,4 @@ File: whileInCondition.kt - ff384b28439e71821a0b8eb8cfe070af semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/whileInConditionWithBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/whileInConditionWithBreak.antlrtree.txt index 848ccfaa2..d89577dab 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/whileInConditionWithBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/whileInConditionWithBreak.antlrtree.txt @@ -294,6 +294,4 @@ File: whileInConditionWithBreak.kt - 467ab639f8a028c1506d51f50c90fcf7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/whileNull.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/whileNull.antlrtree.txt index 31b4da844..1b43bc8a6 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/whileNull.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/whileNull.antlrtree.txt @@ -130,6 +130,4 @@ File: whileNull.kt - 00a78458612f26f465983c767e227f27 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/whileNullAssignToSomething.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/whileNullAssignToSomething.antlrtree.txt index 8e6bbcc8f..d9d9cdffb 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/whileNullAssignToSomething.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/whileNullAssignToSomething.antlrtree.txt @@ -268,6 +268,4 @@ File: whileNullAssignToSomething.kt - 502d25625b053d71019146ed0c192679 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/whileNullWithBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/whileNullWithBreak.antlrtree.txt index 2c5cc16b9..9ec6c1ca6 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/whileNullWithBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/whileNullWithBreak.antlrtree.txt @@ -259,6 +259,4 @@ File: whileNullWithBreak.kt - 89f1c63fe531835a2f0aa3ab0dcdb49e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/whileSimple.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/whileSimple.antlrtree.txt index 0087e5d15..a7a6f5ba2 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/whileSimple.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/whileSimple.antlrtree.txt @@ -284,6 +284,4 @@ File: whileSimple.kt - c448f1223e000cede6550487efd0f575 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/whileTrivial.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/whileTrivial.antlrtree.txt index cd0854a07..c5eb74c2e 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/whileTrivial.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/whileTrivial.antlrtree.txt @@ -1,4 +1,4 @@ -File: whileTrivial.kt - cfe2fdb8cf7f886b5a34fcf2635d9ad3 +File: whileTrivial.kt - 1fdeab9c3e2b56e8c0bf07960c13ecfc NL("\n") packageHeader importList @@ -297,5 +297,5 @@ File: whileTrivial.kt - cfe2fdb8cf7f886b5a34fcf2635d9ad3 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/whileTrue.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/whileTrue.antlrtree.txt index f67f82f94..4c57f86f4 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/whileTrue.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/whileTrue.antlrtree.txt @@ -280,6 +280,4 @@ File: whileTrue.kt - 66a699419c765b7c35f632e3308ed960 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/whileTrueBreakReturn.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/whileTrueBreakReturn.antlrtree.txt index 7cc9b0534..bd3dca46d 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/whileTrueBreakReturn.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/whileTrueBreakReturn.antlrtree.txt @@ -372,6 +372,4 @@ File: whileTrueBreakReturn.kt - e3ca0d067ead4a6093cf812ec6c96c86 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/whileTrueEarlyBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/whileTrueEarlyBreak.antlrtree.txt index 4c6832901..a8eb78658 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/whileTrueEarlyBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/whileTrueEarlyBreak.antlrtree.txt @@ -280,6 +280,4 @@ File: whileTrueEarlyBreak.kt - 07888b25a332b6cb5ec56626e91de633 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/whileTrueReturn.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/whileTrueReturn.antlrtree.txt index 46cde00ae..0a18086e0 100644 --- a/grammar/testData/diagnostics/smartCasts/loops/whileTrueReturn.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/loops/whileTrueReturn.antlrtree.txt @@ -373,6 +373,4 @@ File: whileTrueReturn.kt - f234b555131b1f47728606e0a8ef68df semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/loops/whileWithAssertInConditionAndBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/loops/whileWithAssertInConditionAndBreak.antlrtree.txt new file mode 100644 index 000000000..f4a431819 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/loops/whileWithAssertInConditionAndBreak.antlrtree.txt @@ -0,0 +1,413 @@ +File: whileWithAssertInConditionAndBreak.kt - fae837326e0f5eaada0489c0ba18a309 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("123") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + semis + NL("\n") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("ArrayList") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + semis + NL("\n") + statement + loopStatement + forStatement + FOR("for") + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("i") + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + semis + NL("\n") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("size") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/noErrorCheckForPackageLevelVal.bar.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/noErrorCheckForPackageLevelVal.bar.antlrtree.txt index 750098aa8..108220ce1 100644 --- a/grammar/testData/diagnostics/smartCasts/noErrorCheckForPackageLevelVal.bar.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/noErrorCheckForPackageLevelVal.bar.antlrtree.txt @@ -46,6 +46,4 @@ File: noErrorCheckForPackageLevelVal.bar.kt - def3a24ba723c69cac3c6463aba5cd95 IntegerLiteral("2") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/noErrorCheckForPackageLevelVal.foo.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/noErrorCheckForPackageLevelVal.foo.antlrtree.txt index cf3f6d965..a8c11d8b4 100644 --- a/grammar/testData/diagnostics/smartCasts/noErrorCheckForPackageLevelVal.foo.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/noErrorCheckForPackageLevelVal.foo.antlrtree.txt @@ -381,6 +381,4 @@ File: noErrorCheckForPackageLevelVal.foo.kt - 23f82b3632ebe69b6117ec5a15d7d302 primaryExpression simpleIdentifier Identifier("i") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/noSmartcastForNonFinalMembersFromJava.test.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/noSmartcastForNonFinalMembersFromJava.test.antlrtree.txt new file mode 100644 index 000000000..7761c9939 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/noSmartcastForNonFinalMembersFromJava.test.antlrtree.txt @@ -0,0 +1,227 @@ +File: noSmartcastForNonFinalMembersFromJava.test.kt - 086c6be62af14c5b942e8da0db29ab0b + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + FIELD("field") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + FIELD("field") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("finalField") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("finalField") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/noUnnecessarySmartCastForReceiver.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/noUnnecessarySmartCastForReceiver.antlrtree.txt index dc84d31fa..acbb36769 100644 --- a/grammar/testData/diagnostics/smartCasts/noUnnecessarySmartCastForReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/noUnnecessarySmartCastForReceiver.antlrtree.txt @@ -153,6 +153,4 @@ File: noUnnecessarySmartCastForReceiver.kt - 3697de82122fac8936e45d0c8fc4d32c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/notNullorNotNull.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/notNullorNotNull.antlrtree.txt index a421023c2..e8c06bb0b 100644 --- a/grammar/testData/diagnostics/smartCasts/notNullorNotNull.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/notNullorNotNull.antlrtree.txt @@ -282,6 +282,4 @@ File: notNullorNotNull.kt - 5f0c3e13f3bd335cc79b7a0843af4be2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/objectLiterals/captured.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/objectLiterals/captured.antlrtree.txt index 94493e9e9..5663ebec7 100644 --- a/grammar/testData/diagnostics/smartCasts/objectLiterals/captured.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/objectLiterals/captured.antlrtree.txt @@ -1,5 +1,4 @@ -File: captured.kt - 5623989469e992e5d2dc219b6012e0f4 - NL("\n") +File: captured.kt - 1c238e6196288f91ce8f57c55fda2cca packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/objectLiterals/exclexcl.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/objectLiterals/exclexcl.antlrtree.txt index 93e1ea224..fe8f11969 100644 --- a/grammar/testData/diagnostics/smartCasts/objectLiterals/exclexcl.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/objectLiterals/exclexcl.antlrtree.txt @@ -1,5 +1,4 @@ -File: exclexcl.kt - 2ae6f2705c3f832af420c2be1d85c2b0 - NL("\n") +File: exclexcl.kt - 13ee523e73f03d9d2c2df4b3ac5cd63a packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/openInSealed.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/openInSealed.antlrtree.txt index 6a53f0504..4036297cd 100644 --- a/grammar/testData/diagnostics/smartCasts/openInSealed.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/openInSealed.antlrtree.txt @@ -144,6 +144,4 @@ File: openInSealed.kt - ca2ac5e1c467adaaab60c07a9bfeebed semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/ownerDeclaresBothModifies.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/ownerDeclaresBothModifies.antlrtree.txt index 0d791dfff..2c7942862 100644 --- a/grammar/testData/diagnostics/smartCasts/ownerDeclaresBothModifies.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/ownerDeclaresBothModifies.antlrtree.txt @@ -1,4 +1,4 @@ -File: ownerDeclaresBothModifies.kt - a41e85cb013de88d8f76009f70e4d01d +File: ownerDeclaresBothModifies.kt - d78f2edfdfcaae84b66b50f697dca6d3 NL("\n") packageHeader importList @@ -339,6 +339,4 @@ File: ownerDeclaresBothModifies.kt - a41e85cb013de88d8f76009f70e4d01d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/propertyAsCondition.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/propertyAsCondition.antlrtree.txt index f27a6d3eb..7e719e27f 100644 --- a/grammar/testData/diagnostics/smartCasts/propertyAsCondition.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/propertyAsCondition.antlrtree.txt @@ -1,4 +1,5 @@ -File: propertyAsCondition.kt - 58cccf537e232b21e90f838e22acc167 +File: propertyAsCondition.kt - c4453e0e764538d6317a99afb760f298 + NL("\n") NL("\n") packageHeader importList @@ -723,5 +724,5 @@ File: propertyAsCondition.kt - 58cccf537e232b21e90f838e22acc167 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/propertyToNotNull.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/propertyToNotNull.antlrtree.txt index 6449b32ab..ee70a95dd 100644 --- a/grammar/testData/diagnostics/smartCasts/propertyToNotNull.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/propertyToNotNull.antlrtree.txt @@ -1,5 +1,4 @@ -File: propertyToNotNull.kt - f30f64367da40dab7ab2eae6c086c559 - NL("\n") +File: propertyToNotNull.kt - c2f993853ffc8ca108bf7a75d3a32f09 packageHeader importList topLevelObject @@ -383,6 +382,4 @@ File: propertyToNotNull.kt - f30f64367da40dab7ab2eae6c086c559 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/publicVals/customGetter.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/publicVals/customGetter.antlrtree.txt index 4e8cebf59..f55c2d368 100644 --- a/grammar/testData/diagnostics/smartCasts/publicVals/customGetter.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/publicVals/customGetter.antlrtree.txt @@ -1,4 +1,5 @@ -File: customGetter.kt - 1983519ce896da0bcdaeafcf87da4681 +File: customGetter.kt - 383b8a6d0d39f71e10d09d9165c70626 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/publicVals/delegate.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/publicVals/delegate.antlrtree.txt index b627401c7..69af98be8 100644 --- a/grammar/testData/diagnostics/smartCasts/publicVals/delegate.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/publicVals/delegate.antlrtree.txt @@ -1,5 +1,4 @@ -File: delegate.kt - d3bb2b1c1bc47e9024e6ce03907635bb - NL("\n") +File: delegate.kt - 1e9f5a60c3d2ed460c51a1496eb1fb92 packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/smartCasts/publicVals/kt4409.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/publicVals/kt4409.antlrtree.txt index 1b8588b57..8717cfacf 100644 --- a/grammar/testData/diagnostics/smartCasts/publicVals/kt4409.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/publicVals/kt4409.antlrtree.txt @@ -253,6 +253,4 @@ File: kt4409.kt - 4e0f5d15c8360c453b622678992a48d3 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/publicVals/kt5502.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/publicVals/kt5502.antlrtree.txt index f1d40e050..6ffb8a4ff 100644 --- a/grammar/testData/diagnostics/smartCasts/publicVals/kt5502.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/publicVals/kt5502.antlrtree.txt @@ -364,6 +364,4 @@ File: kt5502.kt - 98daae5461323dbb3172276c303a0272 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/publicVals/open.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/publicVals/open.antlrtree.txt index d9f5d8a17..134c5b793 100644 --- a/grammar/testData/diagnostics/smartCasts/publicVals/open.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/publicVals/open.antlrtree.txt @@ -1,4 +1,5 @@ -File: open.kt - 2be373e28b263e83a11de17b6b91a63f +File: open.kt - e42f57cef5f3829f40a82d68b7993ad1 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/publicVals/otherModuleInheritance.A.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/publicVals/otherModuleInheritance.A.antlrtree.txt new file mode 100644 index 000000000..e376436eb --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/publicVals/otherModuleInheritance.A.antlrtree.txt @@ -0,0 +1,66 @@ +File: otherModuleInheritance.A.kt - 55ba010c9f67445bbc4bd3505dfd553f + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Generic") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/publicVals/otherModuleInheritance.B.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/publicVals/otherModuleInheritance.B.antlrtree.txt new file mode 100644 index 000000000..62b25c51c --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/publicVals/otherModuleInheritance.B.antlrtree.txt @@ -0,0 +1,354 @@ +File: otherModuleInheritance.B.kt - 06154b6fe644aecac7c44155fd5672f6 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("123") + QUOTE_CLOSE(""") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("MyGeneric") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Generic") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/publicVals/otherModuleInheritance_after.A.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/publicVals/otherModuleInheritance_after.A.antlrtree.txt new file mode 100644 index 000000000..72ce4b5b5 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/publicVals/otherModuleInheritance_after.A.antlrtree.txt @@ -0,0 +1,66 @@ +File: otherModuleInheritance_after.A.kt - 55ba010c9f67445bbc4bd3505dfd553f + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Generic") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/publicVals/otherModuleInheritance_after.B.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/publicVals/otherModuleInheritance_after.B.antlrtree.txt new file mode 100644 index 000000000..cf24bb236 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/publicVals/otherModuleInheritance_after.B.antlrtree.txt @@ -0,0 +1,354 @@ +File: otherModuleInheritance_after.B.kt - 06154b6fe644aecac7c44155fd5672f6 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("123") + QUOTE_CLOSE(""") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("MyGeneric") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Generic") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + RANGLE(">") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("42") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("baz") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("baz") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/publicVals/var.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/publicVals/var.antlrtree.txt index 7bb9aea5c..b664580d5 100644 --- a/grammar/testData/diagnostics/smartCasts/publicVals/var.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/publicVals/var.antlrtree.txt @@ -1,4 +1,5 @@ -File: var.kt - 8f09ce5147236976200a01231e8a6895 +File: var.kt - 47560a43266ae1e306074f13b7fc80c4 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/safecalls/anotherVal.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/safecalls/anotherVal.antlrtree.txt index 845ea0023..966efc600 100644 --- a/grammar/testData/diagnostics/smartCasts/safecalls/anotherVal.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/safecalls/anotherVal.antlrtree.txt @@ -1,5 +1,4 @@ -File: anotherVal.kt - ec74a7e216e7ff984f48364d3ef928c5 - NL("\n") +File: anotherVal.kt - 56bed47a9666970c1b84249a89e8968d NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/smartCasts/safecalls/argument.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/safecalls/argument.antlrtree.txt index 036b81677..6f5655e0f 100644 --- a/grammar/testData/diagnostics/smartCasts/safecalls/argument.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/safecalls/argument.antlrtree.txt @@ -1,4 +1,5 @@ -File: argument.kt - ed0921bc85e7588f9316574dbb466ae9 +File: argument.kt - a3741cd4f5a4ad586f402e0e5c1fa623 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/safecalls/extensionCall.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/safecalls/extensionCall.antlrtree.txt index 561e6aa59..2cc450da7 100644 --- a/grammar/testData/diagnostics/smartCasts/safecalls/extensionCall.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/safecalls/extensionCall.antlrtree.txt @@ -192,6 +192,4 @@ File: extensionCall.kt - 735eb61ef585bd99a128f780ab8cdfc6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/safecalls/falseSecondArgument.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/safecalls/falseSecondArgument.antlrtree.txt index 478a099d2..38c07b0a9 100644 --- a/grammar/testData/diagnostics/smartCasts/safecalls/falseSecondArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/safecalls/falseSecondArgument.antlrtree.txt @@ -1,5 +1,4 @@ -File: falseSecondArgument.kt - 011373d9bfd7ec75a06244c7c0182682 - NL("\n") +File: falseSecondArgument.kt - 191454dc70beb98699e51fb86a5a9d91 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/smartCasts/safecalls/nullableReceiverWithExclExcl.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/safecalls/nullableReceiverWithExclExcl.antlrtree.txt index a4b347b91..a9aceb870 100644 --- a/grammar/testData/diagnostics/smartCasts/safecalls/nullableReceiverWithExclExcl.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/safecalls/nullableReceiverWithExclExcl.antlrtree.txt @@ -1,4 +1,4 @@ -File: nullableReceiverWithExclExcl.kt - 5e715aa0c4b8307149c70b25c96b3a37 +File: nullableReceiverWithExclExcl.kt - 3519c5edf580ab6818adb682b31f1da0 packageHeader importList topLevelObject @@ -213,5 +213,5 @@ File: nullableReceiverWithExclExcl.kt - 5e715aa0c4b8307149c70b25c96b3a37 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/safecalls/nullableReceiverWithFlexible.Test.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/safecalls/nullableReceiverWithFlexible.Test.antlrtree.txt index 6a782a4a3..0ec12fb7c 100644 --- a/grammar/testData/diagnostics/smartCasts/safecalls/nullableReceiverWithFlexible.Test.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/safecalls/nullableReceiverWithFlexible.Test.antlrtree.txt @@ -217,6 +217,4 @@ File: nullableReceiverWithFlexible.Test.kt - 5e3f0ab88b6928ae2f774745d4861265 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/safecalls/property.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/safecalls/property.antlrtree.txt index af0b76df9..411446cfc 100644 --- a/grammar/testData/diagnostics/smartCasts/safecalls/property.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/safecalls/property.antlrtree.txt @@ -226,6 +226,4 @@ File: property.kt - 97c72bf5387c06e6c865bc9bd69a062c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/safecalls/propertyChain.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/safecalls/propertyChain.antlrtree.txt index 3419740b2..2572d7c9c 100644 --- a/grammar/testData/diagnostics/smartCasts/safecalls/propertyChain.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/safecalls/propertyChain.antlrtree.txt @@ -365,6 +365,4 @@ File: propertyChain.kt - 6a35494fef33e257c6b141cbe7f22b9d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/safecalls/receiverAndChainFalse.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/safecalls/receiverAndChainFalse.antlrtree.txt index b6f7e7689..71398b58c 100644 --- a/grammar/testData/diagnostics/smartCasts/safecalls/receiverAndChainFalse.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/safecalls/receiverAndChainFalse.antlrtree.txt @@ -1,5 +1,4 @@ -File: receiverAndChainFalse.kt - 7fb44a9066bf0eb4c85208aeb19840d1 - NL("\n") +File: receiverAndChainFalse.kt - 0adaf7d612baa7debb32f387b754a392 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/smartCasts/safecalls/safeCallIsAlwaysNullable.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/safecalls/safeCallIsAlwaysNullable.antlrtree.txt new file mode 100644 index 000000000..381b7dfb6 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/safecalls/safeCallIsAlwaysNullable.antlrtree.txt @@ -0,0 +1,362 @@ +File: safeCallIsAlwaysNullable.kt - 2db1bbae3a1d4c614f63a6b055c77914 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("takeInt") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("takeInt") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/safecalls/simpleNullableReceiver.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/safecalls/simpleNullableReceiver.antlrtree.txt index 046d16ba1..3a69bdf03 100644 --- a/grammar/testData/diagnostics/smartCasts/safecalls/simpleNullableReceiver.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/safecalls/simpleNullableReceiver.antlrtree.txt @@ -176,6 +176,4 @@ File: simpleNullableReceiver.kt - 22113109014f868724f820c8b286a4c0 simpleIdentifier Identifier("my") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/severalSmartCastsOnReified.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/severalSmartCastsOnReified.antlrtree.txt index 9df019c35..b7f098010 100644 --- a/grammar/testData/diagnostics/smartCasts/severalSmartCastsOnReified.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/severalSmartCastsOnReified.antlrtree.txt @@ -250,6 +250,4 @@ File: severalSmartCastsOnReified.kt - cf7ba69c05caca76475749a39c7a51c4 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/smartCastOnElvis.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/smartCastOnElvis.antlrtree.txt index 4ece749ea..3a2a278d2 100644 --- a/grammar/testData/diagnostics/smartCasts/smartCastOnElvis.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/smartCastOnElvis.antlrtree.txt @@ -486,6 +486,4 @@ File: smartCastOnElvis.kt - 32f9eb2cacbd08df554248f4f3afd35f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/smartcastToNothingAfterCheckingForNull.test.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/smartcastToNothingAfterCheckingForNull.test.antlrtree.txt index 784e169a4..ac988218b 100644 --- a/grammar/testData/diagnostics/smartCasts/smartcastToNothingAfterCheckingForNull.test.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/smartcastToNothingAfterCheckingForNull.test.antlrtree.txt @@ -520,6 +520,4 @@ File: smartcastToNothingAfterCheckingForNull.test.kt - ce7ef9c779e0c7f10cab627cb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/thisWithLabel.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/thisWithLabel.antlrtree.txt index c777408ed..57d4b5f0a 100644 --- a/grammar/testData/diagnostics/smartCasts/thisWithLabel.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/thisWithLabel.antlrtree.txt @@ -832,6 +832,4 @@ File: thisWithLabel.kt - 621cc8a887e5f0ea58484e2972f224d5 primaryExpression simpleIdentifier Identifier("f") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/toInvisible.main.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/toInvisible.main.antlrtree.txt new file mode 100644 index 000000000..55ae4d464 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/toInvisible.main.antlrtree.txt @@ -0,0 +1,399 @@ +File: toInvisible.main.kt - 0adc10d68fb6613ff12486322b70c47a + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("a") + DOT(".") + simpleIdentifier + Identifier("A") + semi + NL("\n") + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("a") + DOT(".") + simpleIdentifier + Identifier("AImpl") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AImpl") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("b") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("b") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("aImpl") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AImpl") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("aImpl") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("b") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("b") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/typeDegradation.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/typeDegradation.antlrtree.txt index 6aa94c29c..461834dec 100644 --- a/grammar/testData/diagnostics/smartCasts/typeDegradation.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/typeDegradation.antlrtree.txt @@ -364,6 +364,4 @@ File: typeDegradation.kt - bfb71358ffd2c4898cd9269453e35138 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/typeInComparison.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/typeInComparison.antlrtree.txt index ea034baa7..0d8aef5b9 100644 --- a/grammar/testData/diagnostics/smartCasts/typeInComparison.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/typeInComparison.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeInComparison.kt - 66bb7ee89b471f0fc61fd38aaa60c411 - NL("\n") +File: typeInComparison.kt - 1b18ae2133be8276a7b834c1360c5476 packageHeader importList topLevelObject @@ -240,6 +239,4 @@ File: typeInComparison.kt - 66bb7ee89b471f0fc61fd38aaa60c411 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/unstableToStable.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/unstableToStable.antlrtree.txt index 3a711d973..d713c22df 100644 --- a/grammar/testData/diagnostics/smartCasts/unstableToStable.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/unstableToStable.antlrtree.txt @@ -1,4 +1,5 @@ -File: unstableToStable.kt - 90412dfb7e465c0f7c516910f7245292 +File: unstableToStable.kt - 45d9abd08d97a68d0ea5e5f771ea3007 + NL("\n") packageHeader importList topLevelObject @@ -420,6 +421,4 @@ File: unstableToStable.kt - 90412dfb7e465c0f7c516910f7245292 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/unstableToStableTypes.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/unstableToStableTypes.antlrtree.txt index 252eb0130..1fa46fe3e 100644 --- a/grammar/testData/diagnostics/smartCasts/unstableToStableTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/unstableToStableTypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: unstableToStableTypes.kt - ee665f4b5f55059586059369c9efa5ad +File: unstableToStableTypes.kt - eb68e0d619aaed34ab2a9fc957ed3000 + NL("\n") packageHeader importList topLevelObject @@ -431,6 +432,4 @@ File: unstableToStableTypes.kt - ee665f4b5f55059586059369c9efa5ad semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varChangedInInitializer.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varChangedInInitializer.antlrtree.txt index cb8f40a31..212a02577 100644 --- a/grammar/testData/diagnostics/smartCasts/varChangedInInitializer.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varChangedInInitializer.antlrtree.txt @@ -99,6 +99,4 @@ File: varChangedInInitializer.kt - b3cb118849be6ca0f15e8be7ac5407f0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varChangedInLocalInitializer.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varChangedInLocalInitializer.antlrtree.txt index 0937e1bf9..84f6604b6 100644 --- a/grammar/testData/diagnostics/smartCasts/varChangedInLocalInitializer.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varChangedInLocalInitializer.antlrtree.txt @@ -136,6 +136,4 @@ File: varChangedInLocalInitializer.kt - 8602cdd9f726924fc270ccead4e1150c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varInAccessor.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varInAccessor.antlrtree.txt index e4cf9cf2e..c0c81919b 100644 --- a/grammar/testData/diagnostics/smartCasts/varInAccessor.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varInAccessor.antlrtree.txt @@ -422,6 +422,4 @@ File: varInAccessor.kt - 6245568ce0fc7d44488eb508d85f0765 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varInInitNoPrimary.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varInInitNoPrimary.antlrtree.txt index 4218ef13e..ef279ab4c 100644 --- a/grammar/testData/diagnostics/smartCasts/varInInitNoPrimary.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varInInitNoPrimary.antlrtree.txt @@ -331,6 +331,4 @@ File: varInInitNoPrimary.kt - 8b75b9f810e4d3efa667b839ac71e19b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varInInitializer.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varInInitializer.antlrtree.txt index eb1163ca1..d0fe61654 100644 --- a/grammar/testData/diagnostics/smartCasts/varInInitializer.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varInInitializer.antlrtree.txt @@ -209,6 +209,4 @@ File: varInInitializer.kt - 916d92789b9b634ed65f61f05ef1fd5e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varInSecondaryConstructor.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varInSecondaryConstructor.antlrtree.txt index 72b4927c5..0f71822ed 100644 --- a/grammar/testData/diagnostics/smartCasts/varInSecondaryConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varInSecondaryConstructor.antlrtree.txt @@ -260,6 +260,4 @@ File: varInSecondaryConstructor.kt - 825d304e0aca792db64c5cfcfede7b48 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varInsideLocalFun.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varInsideLocalFun.antlrtree.txt index 7e4d5b93a..6154dfc13 100644 --- a/grammar/testData/diagnostics/smartCasts/varInsideLocalFun.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varInsideLocalFun.antlrtree.txt @@ -307,6 +307,4 @@ File: varInsideLocalFun.kt - e17f88fc7e9d37589896a240f0012464 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/accessorAndFunction.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/accessorAndFunction.antlrtree.txt index 4ce2c5d02..d69630f60 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/accessorAndFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/accessorAndFunction.antlrtree.txt @@ -1,4 +1,4 @@ -File: accessorAndFunction.kt - b259e0ca5f901b783b31fed879e99640 +File: accessorAndFunction.kt - 8a43662936a136f129f62d70fefe85f0 packageHeader importList topLevelObject @@ -383,6 +383,4 @@ File: accessorAndFunction.kt - b259e0ca5f901b783b31fed879e99640 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/aliasing.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/aliasing.antlrtree.txt new file mode 100644 index 000000000..7ae709177 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/variables/aliasing.antlrtree.txt @@ -0,0 +1,1556 @@ +File: aliasing.kt - 838db4764b6f709a5f9dfe85bd46eab5 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + NL("\n") + NL("\n") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryPlus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryPlus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("c") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryPlus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("unaryPlus") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/assignment.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/assignment.antlrtree.txt index ccc5117af..e5f38d1cf 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/assignment.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/assignment.antlrtree.txt @@ -255,6 +255,4 @@ File: assignment.kt - 6142904d7456921084bbf8700e46b917 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/capturedByAtLeastOnce.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/capturedByAtLeastOnce.antlrtree.txt new file mode 100644 index 000000000..0c83f03c7 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/variables/capturedByAtLeastOnce.antlrtree.txt @@ -0,0 +1,1431 @@ +File: capturedByAtLeastOnce.kt - 6158608bcded29ed84ac64add94986a0 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("contracts") + DOT(".") + MULT("*") + semi + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Suppress") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OPT_IN_USAGE_ERROR") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OPT_IN_USAGE_FUTURE_ERROR") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("atLeastOnce") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("contract") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("callsInPlace") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("block") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InvocationKind") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("AT_LEAST_ONCE") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("block") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Suppress") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OPT_IN_USAGE_ERROR") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OPT_IN_USAGE_FUTURE_ERROR") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("atMostOnce") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("contract") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("callsInPlace") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("block") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InvocationKind") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("AT_MOST_ONCE") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("block") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Suppress") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OPT_IN_USAGE_ERROR") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OPT_IN_USAGE_FUTURE_ERROR") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + functionModifier + INLINE("inline") + FUN("fun") + simpleIdentifier + Identifier("exactlyOnce") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("contract") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("callsInPlace") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("block") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InvocationKind") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("EXACTLY_ONCE") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("block") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("s") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("atLeastOnce") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("s2") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("exactlyOnce") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("s2") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("atMostOnce") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("s2") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/capturedByMultipleLambdas.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/capturedByMultipleLambdas.antlrtree.txt new file mode 100644 index 000000000..34427f9a6 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/variables/capturedByMultipleLambdas.antlrtree.txt @@ -0,0 +1,882 @@ +File: capturedByMultipleLambdas.kt - 2b8abe35f043d9dd4a382178e28fcb43 + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("contracts") + DOT(".") + MULT("*") + semi + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Suppress") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OPT_IN_USAGE_ERROR") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OPT_IN_USAGE_FUTURE_ERROR") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f1") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("f2") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("contract") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("callsInPlace") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InvocationKind") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("EXACTLY_ONCE") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("callsInPlace") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InvocationKind") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("EXACTLY_ONCE") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("s") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RCURL("}") + COMMA(",") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + COMMA(",") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + RCURL("}") + COMMA(",") + RPAREN(")") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/capturedByNested.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/capturedByNested.antlrtree.txt new file mode 100644 index 000000000..2796fdef3 --- /dev/null +++ b/grammar/testData/diagnostics/smartCasts/variables/capturedByNested.antlrtree.txt @@ -0,0 +1,516 @@ +File: capturedByNested.kt - 11ce244ffc7e17641a36f7d27395be5b + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("contracts") + DOT(".") + MULT("*") + semi + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Suppress") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OPT_IN_USAGE_ERROR") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OPT_IN_USAGE_FUTURE_ERROR") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("exactlyOnce") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("contract") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("callsInPlace") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("InvocationKind") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("EXACTLY_ONCE") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("s") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("exactlyOnce") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("block") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("block") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/doWhileWithMiddleBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/doWhileWithMiddleBreak.antlrtree.txt index 25465c518..c82ac1d8a 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/doWhileWithMiddleBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/doWhileWithMiddleBreak.antlrtree.txt @@ -382,6 +382,4 @@ File: doWhileWithMiddleBreak.kt - 723a778cf7b0ec79b30a0b98e2ba10fa semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/ifElseBlockInsideDoWhile.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/ifElseBlockInsideDoWhile.antlrtree.txt index 9a4d71f98..9f2ecc51b 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/ifElseBlockInsideDoWhile.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/ifElseBlockInsideDoWhile.antlrtree.txt @@ -342,6 +342,4 @@ File: ifElseBlockInsideDoWhile.kt - bfd8cb9a01701000cc8c461b27a04fea semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/ifElseBlockInsideDoWhileWithBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/ifElseBlockInsideDoWhileWithBreak.antlrtree.txt index 665f01490..c490b2dd6 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/ifElseBlockInsideDoWhileWithBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/ifElseBlockInsideDoWhileWithBreak.antlrtree.txt @@ -308,6 +308,4 @@ File: ifElseBlockInsideDoWhileWithBreak.kt - 35b929764447f768f5784f36ba57d363 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/ifNullAssignment.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/ifNullAssignment.antlrtree.txt index dbd11b429..0d6f0cc76 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/ifNullAssignment.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/ifNullAssignment.antlrtree.txt @@ -1,5 +1,4 @@ -File: ifNullAssignment.kt - 082164152fce4ba124d07771babd8b23 - NL("\n") +File: ifNullAssignment.kt - 8788b60540b89562b1ad17541bbbddf3 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/smartCasts/variables/ifVarIsAnd.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/ifVarIsAnd.antlrtree.txt index 03ba07dd3..bcd8b7769 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/ifVarIsAnd.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/ifVarIsAnd.antlrtree.txt @@ -281,6 +281,4 @@ File: ifVarIsAnd.kt - 848b0c949aa8cf00655d6e3b98d69b42 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/inPropertySam.test.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/inPropertySam.test.antlrtree.txt index 2b60ba84e..5e950f075 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/inPropertySam.test.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/inPropertySam.test.antlrtree.txt @@ -245,6 +245,4 @@ File: inPropertySam.test.kt - 110c503399f3741e175f3e0332137e57 RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/infix.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/infix.antlrtree.txt index 450b75574..c116748b1 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/infix.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/infix.antlrtree.txt @@ -237,6 +237,4 @@ File: infix.kt - 569411e57e2bd4625a84951ef0aabd02 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/initialization.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/initialization.antlrtree.txt index 0ca7b21a8..190ca061f 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/initialization.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/initialization.antlrtree.txt @@ -148,6 +148,4 @@ File: initialization.kt - b9eeed6306fdbc48bcdfbdaa91964e89 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/lambdaBetweenArguments.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/lambdaBetweenArguments.antlrtree.txt index ba2442d77..3b129426c 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/lambdaBetweenArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/lambdaBetweenArguments.antlrtree.txt @@ -1,5 +1,4 @@ -File: lambdaBetweenArguments.kt - 8fd8a08413d1823eebdd27248d9b8643 - NL("\n") +File: lambdaBetweenArguments.kt - 09bab04a0dbb13d516b8f1ea41220c6a NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/smartCasts/variables/property.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/property.antlrtree.txt index 57c3ed940..3cd4065a4 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/property.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/property.antlrtree.txt @@ -1,5 +1,4 @@ -File: property.kt - 0f2d9aaddd54debf90d0f27ed4a82574 - NL("\n") +File: property.kt - 6325b8d31696376287edc0f1e0db9d5a packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/variables/propertyNotNeeded.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/propertyNotNeeded.antlrtree.txt index 518c9a553..455d512f6 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/propertyNotNeeded.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/propertyNotNeeded.antlrtree.txt @@ -271,6 +271,4 @@ File: propertyNotNeeded.kt - 871b7b656dd6abb37d94049300f9deeb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/propertySubtype.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/propertySubtype.antlrtree.txt index ef69cce88..b624ffeb1 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/propertySubtype.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/propertySubtype.antlrtree.txt @@ -252,6 +252,4 @@ File: propertySubtype.kt - 105a53e69c74a1d390a135fb41aa6064 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/varAsUse.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/varAsUse.antlrtree.txt index 521b7a3ff..c864feead 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/varAsUse.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/varAsUse.antlrtree.txt @@ -228,6 +228,4 @@ File: varAsUse.kt - 56b37796c8bb616c53ebaa2e491a0a14 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/varNotChangedInLoop.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/varNotChangedInLoop.antlrtree.txt index bf825e986..2a800f5b8 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/varNotChangedInLoop.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/varNotChangedInLoop.antlrtree.txt @@ -182,6 +182,4 @@ File: varNotChangedInLoop.kt - 77264ebc4aa3fb3b947d7e1a24d4d98d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/whileTrue.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/whileTrue.antlrtree.txt index 2a85e7cdc..7ce0a72bd 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/whileTrue.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/whileTrue.antlrtree.txt @@ -1,5 +1,4 @@ -File: whileTrue.kt - 5560f498230a239db13fd47f2dd7bfe8 - NL("\n") +File: whileTrue.kt - 3bce1cbc857fb7439c86b12555d568dc packageHeader importList topLevelObject @@ -359,5 +358,5 @@ File: whileTrue.kt - 5560f498230a239db13fd47f2dd7bfe8 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/variables/whileWithBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/variables/whileWithBreak.antlrtree.txt index 97d633512..03806f2cf 100644 --- a/grammar/testData/diagnostics/smartCasts/variables/whileWithBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/variables/whileWithBreak.antlrtree.txt @@ -413,6 +413,4 @@ File: whileWithBreak.kt - dbbd459bbe9ce085ca49854e17825e18 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/assignNestedWhile.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/assignNestedWhile.antlrtree.txt index 527d8a941..a9855c936 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/assignNestedWhile.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/assignNestedWhile.antlrtree.txt @@ -640,6 +640,4 @@ File: assignNestedWhile.kt - c1f611bc3eafd9b11f0b0eb4cce3372b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/assignment.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/assignment.antlrtree.txt index 398b88ab3..4ed3aa071 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/assignment.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/assignment.antlrtree.txt @@ -1,5 +1,4 @@ -File: assignment.kt - 3af88e98949e69b5569bb22de9dd1a40 - NL("\n") +File: assignment.kt - 5736493ee39086cb9399cdfe9f3a5f8d packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/boundInitializerWrong.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/boundInitializerWrong.antlrtree.txt index fbb7e0278..a46a11920 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/boundInitializerWrong.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/boundInitializerWrong.antlrtree.txt @@ -1,5 +1,4 @@ -File: boundInitializerWrong.kt - c195183d2ea46932fdea068dcd49bbdf - NL("\n") +File: boundInitializerWrong.kt - 9b3d71e35855c4df32b64be06f22d970 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/capturedInClosureModifiedBefore.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/capturedInClosureModifiedBefore.antlrtree.txt index 0b1bbbc82..190ff4b91 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/capturedInClosureModifiedBefore.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/capturedInClosureModifiedBefore.antlrtree.txt @@ -1273,6 +1273,4 @@ File: capturedInClosureModifiedBefore.kt - fa95d6eac23dd16b2432d70740ef930d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/doWhileWithBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/doWhileWithBreak.antlrtree.txt index 69de5c3a8..0f9c40e11 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/doWhileWithBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/doWhileWithBreak.antlrtree.txt @@ -389,6 +389,4 @@ File: doWhileWithBreak.kt - 4a3b709c422707a7af025e7c09e3b0e6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/doWhileWithMiddleBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/doWhileWithMiddleBreak.antlrtree.txt index 7132394b2..26e817d03 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/doWhileWithMiddleBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/doWhileWithMiddleBreak.antlrtree.txt @@ -358,6 +358,4 @@ File: doWhileWithMiddleBreak.kt - df8fde06508b94985c8aa108b7f42414 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/forEach.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/forEach.antlrtree.txt index 430ccdeb1..8f7173acb 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/forEach.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/forEach.antlrtree.txt @@ -1,5 +1,4 @@ -File: forEach.kt - 6e892b7386d8fde8fc85523d72941b94 - NL("\n") +File: forEach.kt - fdd24e84a4476eb0643e2b8ceb3ed618 packageHeader importList topLevelObject @@ -322,6 +321,4 @@ File: forEach.kt - 6e892b7386d8fde8fc85523d72941b94 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/forEachWithBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/forEachWithBreak.antlrtree.txt index 6c8c8af15..587df13c3 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/forEachWithBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/forEachWithBreak.antlrtree.txt @@ -1,5 +1,4 @@ -File: forEachWithBreak.kt - 60e2392b333b2df4b6051e685ea2aab7 - NL("\n") +File: forEachWithBreak.kt - 05b1c186c3e97622a9ce0aa1eec3791a packageHeader importList topLevelObject @@ -399,6 +398,4 @@ File: forEachWithBreak.kt - 60e2392b333b2df4b6051e685ea2aab7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/forEachWithContinue.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/forEachWithContinue.antlrtree.txt index cb6f59ea9..4fc61e2ce 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/forEachWithContinue.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/forEachWithContinue.antlrtree.txt @@ -1,5 +1,4 @@ -File: forEachWithContinue.kt - dfc9790e4165da7d6516296913b972fd - NL("\n") +File: forEachWithContinue.kt - 2662ba860cc62b6297b767e74b1e29a1 packageHeader importList topLevelObject @@ -399,6 +398,4 @@ File: forEachWithContinue.kt - dfc9790e4165da7d6516296913b972fd semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/ifVarNotNullAnd.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/ifVarNotNullAnd.antlrtree.txt index fd211122e..011804876 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/ifVarNotNullAnd.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/ifVarNotNullAnd.antlrtree.txt @@ -295,6 +295,4 @@ File: ifVarNotNullAnd.kt - 868a607ee251cc22761f5d2a73eb9486 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/inference.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/inference.antlrtree.txt index b14bb4809..3b043731a 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/inference.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/inference.antlrtree.txt @@ -428,6 +428,4 @@ File: inference.kt - 9497e1a80fc9fca44c9e146b257b7a24 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/infiniteWhileWithBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/infiniteWhileWithBreak.antlrtree.txt index 4adc9840f..7a1558f26 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/infiniteWhileWithBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/infiniteWhileWithBreak.antlrtree.txt @@ -386,6 +386,4 @@ File: infiniteWhileWithBreak.kt - b0624bc21d2254936a4f1d32d3c6300b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/infix.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/infix.antlrtree.txt index 55ccbd052..bcf1323b4 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/infix.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/infix.antlrtree.txt @@ -248,6 +248,4 @@ File: infix.kt - 5b0724de03e06a644f1dd9375ff9d515 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/initInTryReturnInCatch.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/initInTryReturnInCatch.antlrtree.txt index ae66b96e6..2e610648d 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/initInTryReturnInCatch.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/initInTryReturnInCatch.antlrtree.txt @@ -1,5 +1,4 @@ -File: initInTryReturnInCatch.kt - 4adc9699b518c8f3f97a98e667fe2b0f - NL("\n") +File: initInTryReturnInCatch.kt - d914b46fba9166d59f63eb6fbd7e66ab NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/initialization.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/initialization.antlrtree.txt index cb04383c4..7503a2125 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/initialization.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/initialization.antlrtree.txt @@ -1,4 +1,4 @@ -File: initialization.kt - 23e7b9b18f2d64a321235e8d45211270 +File: initialization.kt - 75fd4807e9cb640c9c691b559e2916a9 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/iterations.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/iterations.antlrtree.txt index 85aeb935a..0a17fd6e1 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/iterations.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/iterations.antlrtree.txt @@ -277,6 +277,4 @@ File: iterations.kt - d42db7bb7557a63b8d8473b5e4e98c33 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/nestedDoWhile.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/nestedDoWhile.antlrtree.txt index 708380a7f..3417c5a01 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/nestedDoWhile.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/nestedDoWhile.antlrtree.txt @@ -370,6 +370,4 @@ File: nestedDoWhile.kt - 9bb15b4c14d4c3c02d4aa8a1a4a725fb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/nestedLoops.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/nestedLoops.antlrtree.txt index 948e3f22e..fe43aef93 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/nestedLoops.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/nestedLoops.antlrtree.txt @@ -485,6 +485,4 @@ File: nestedLoops.kt - 7cc2068565f09d06d7d4f0fbf9b29b95 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/nestedWhile.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/nestedWhile.antlrtree.txt index 29464cf1a..57aa513db 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/nestedWhile.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/nestedWhile.antlrtree.txt @@ -633,6 +633,4 @@ File: nestedWhile.kt - 74bb6b902c729f06fb32f6130b055ee7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/plusplusMinusminus.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/plusplusMinusminus.antlrtree.txt index 4293bf465..180b42293 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/plusplusMinusminus.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/plusplusMinusminus.antlrtree.txt @@ -1,5 +1,4 @@ -File: plusplusMinusminus.kt - 904b39c1291647c60438e1aa9cb08012 - NL("\n") +File: plusplusMinusminus.kt - ad7391255f7160d77fb2ce55248ac3c9 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/postfixNotnullClassIncrement.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/postfixNotnullClassIncrement.antlrtree.txt index 633d5af9a..9643a9337 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/postfixNotnullClassIncrement.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/postfixNotnullClassIncrement.antlrtree.txt @@ -1,5 +1,4 @@ -File: postfixNotnullClassIncrement.kt - 0cde1aa56c13e9279188c4f6671b796f - NL("\n") +File: postfixNotnullClassIncrement.kt - b6f144873a7735a4b75b12e5dd5aa7a8 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/prefixNotnullClassIncrement.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/prefixNotnullClassIncrement.antlrtree.txt index 9d599f7fb..a4270c764 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/prefixNotnullClassIncrement.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/prefixNotnullClassIncrement.antlrtree.txt @@ -1,5 +1,4 @@ -File: prefixNotnullClassIncrement.kt - 03a55dc505386fbd6b88fe1cae453000 - NL("\n") +File: prefixNotnullClassIncrement.kt - 6dc84db2e8a67bfb833fca0806869ad5 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/setNotNullInTry.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/setNotNullInTry.antlrtree.txt index f01c0e17c..312539d22 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/setNotNullInTry.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/setNotNullInTry.antlrtree.txt @@ -322,6 +322,4 @@ File: setNotNullInTry.kt - c77f7af3cd5cf7507bca0c3dba17393e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/setNullInTry.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/setNullInTry.antlrtree.txt index c8f54f178..2e66fb8c1 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/setNullInTry.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/setNullInTry.antlrtree.txt @@ -169,6 +169,4 @@ File: setNullInTry.kt - 3bebdaa6d7f0d32557ea371a5f481978 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/setNullInTryFinally.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/setNullInTryFinally.antlrtree.txt index b9a11f724..2fa990023 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/setNullInTryFinally.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/setNullInTryFinally.antlrtree.txt @@ -221,6 +221,4 @@ File: setNullInTryFinally.kt - b0a36f144d263eb41fc3d698e8d0f170 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/setSameInTry.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/setSameInTry.antlrtree.txt index 19d6bff16..83c059fc0 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/setSameInTry.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/setSameInTry.antlrtree.txt @@ -173,6 +173,4 @@ File: setSameInTry.kt - 1aa607f3f28b67aa040442f992363865 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/toFlexibleType.test.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/toFlexibleType.test.antlrtree.txt index 9bec905e5..2838bd1bd 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/toFlexibleType.test.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/toFlexibleType.test.antlrtree.txt @@ -1,4 +1,4 @@ -File: toFlexibleType.test.kt - 3f3ab8b7ac77f24d758ac71dc31bfd64 +File: toFlexibleType.test.kt - 68e2b9951b8dd4132c49f4fef1b8ae80 packageHeader importList topLevelObject @@ -143,6 +143,105 @@ File: toFlexibleType.test.kt - 3f3ab8b7ac77f24d758ac71dc31bfd64 RPAREN(")") semis NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("l") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + quest + QUEST_NO_WS("?") + semis + NL("\n") + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("l") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("J") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("l") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("isEmpty") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") RCURL("}") semis NL("\n") @@ -188,5 +287,5 @@ File: toFlexibleType.test.kt - 3f3ab8b7ac77f24d758ac71dc31bfd64 simpleIdentifier Identifier("v") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/unnecessary.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/unnecessary.antlrtree.txt index dbb16d782..ddd8c2926 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/unnecessary.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/unnecessary.antlrtree.txt @@ -248,6 +248,4 @@ File: unnecessary.kt - 7b20a219f29a9ee81ba64c86b22e6629 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/unnecessaryWithBranch.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/unnecessaryWithBranch.antlrtree.txt index a4199e874..fcbe21f43 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/unnecessaryWithBranch.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/unnecessaryWithBranch.antlrtree.txt @@ -300,6 +300,4 @@ File: unnecessaryWithBranch.kt - 30fe8f133a449329c2939988e8626bcc semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/unnecessaryWithMap.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/unnecessaryWithMap.antlrtree.txt index a45db1993..c320168fa 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/unnecessaryWithMap.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/unnecessaryWithMap.antlrtree.txt @@ -1,6 +1,4 @@ -File: unnecessaryWithMap.kt - ab5500d69aa2c9b2648ab83e0abbc4b1 - NL("\n") - NL("\n") +File: unnecessaryWithMap.kt - 862d371b4b8d84fce12467fd8efc90c2 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInClosure.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInClosure.antlrtree.txt index 9c95b6567..cb85746e3 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInClosure.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInClosure.antlrtree.txt @@ -1,4 +1,5 @@ -File: varCapturedInClosure.kt - 24e32fa415c71e0aa5fd8bbabdea449e +File: varCapturedInClosure.kt - 64f072ed97a5ec6c4286ad9c4e757b83 + NL("\n") packageHeader importList topLevelObject @@ -563,5 +564,5 @@ File: varCapturedInClosure.kt - 24e32fa415c71e0aa5fd8bbabdea449e NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInInlineClosure.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInInlineClosure.antlrtree.txt index 429f00d99..1ec6955a3 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInInlineClosure.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInInlineClosure.antlrtree.txt @@ -1,4 +1,4 @@ -File: varCapturedInInlineClosure.kt - 38f1efaa1436fbf3aa043a875d9779c6 +File: varCapturedInInlineClosure.kt - 20979c79dab1cc8b423fca8c793d3a12 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInSafeClosure.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInSafeClosure.antlrtree.txt index 9885abb37..0aa4b83f4 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInSafeClosure.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/varCapturedInSafeClosure.antlrtree.txt @@ -424,6 +424,4 @@ File: varCapturedInSafeClosure.kt - b2b4c8c4eb1374ff0bf98d253727be9f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/varChangedInLoop.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/varChangedInLoop.antlrtree.txt index 078382dde..b445da86c 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/varChangedInLoop.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/varChangedInLoop.antlrtree.txt @@ -1,4 +1,5 @@ -File: varChangedInLoop.kt - e890e2ecebdc4e12f5fac3efa6a07653 +File: varChangedInLoop.kt - e85c85528a0f91f577eb2ca70f74c245 + NL("\n") packageHeader importList topLevelObject @@ -220,5 +221,5 @@ File: varChangedInLoop.kt - e890e2ecebdc4e12f5fac3efa6a07653 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/varCheck.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/varCheck.antlrtree.txt index 15aba10d2..8039109d7 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/varCheck.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/varCheck.antlrtree.txt @@ -212,6 +212,4 @@ File: varCheck.kt - c2f3fc89f8e3a950b3a1b052d2f092cf semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/varIntNull.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/varIntNull.antlrtree.txt index 5183c22db..0932ab4e4 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/varIntNull.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/varIntNull.antlrtree.txt @@ -1,5 +1,4 @@ -File: varIntNull.kt - 3558f7d1471e01d5d3ea7fc376c67960 - NL("\n") +File: varIntNull.kt - a0895b07534e241267daf59bb3690150 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/varNotChangedInLoop.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/varNotChangedInLoop.antlrtree.txt index d7210642b..8bd7ac3e8 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/varNotChangedInLoop.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/varNotChangedInLoop.antlrtree.txt @@ -193,6 +193,4 @@ File: varNotChangedInLoop.kt - b6ceda040c350f8d93c6676c48e5402f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/varNull.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/varNull.antlrtree.txt index d8e4531ff..6316272aa 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/varNull.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/varNull.antlrtree.txt @@ -1,5 +1,4 @@ -File: varNull.kt - 9ae8a1d88ee4cf18fce748cff4616e30 - NL("\n") +File: varNull.kt - bdc96124afa9b5c9af082e19f21c8ff8 packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/whileTrue.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/whileTrue.antlrtree.txt index 1f8f429ac..40d103aff 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/whileTrue.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/whileTrue.antlrtree.txt @@ -333,6 +333,4 @@ File: whileTrue.kt - 695ba8ad5334bc727f27856d126e57d4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/whileTrueWithBracketSet.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/whileTrueWithBracketSet.antlrtree.txt index 57f2608eb..ab5ac7f16 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/whileTrueWithBracketSet.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/whileTrueWithBracketSet.antlrtree.txt @@ -345,6 +345,4 @@ File: whileTrueWithBracketSet.kt - 66df68600eede289c1a8cb1b4dbb779f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/whileTrueWithBrackets.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/whileTrueWithBrackets.antlrtree.txt index 6083e035c..16ff4b2bc 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/whileTrueWithBrackets.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/whileTrueWithBrackets.antlrtree.txt @@ -337,6 +337,4 @@ File: whileTrueWithBrackets.kt - e0bc7bc2c0b05c251744f948e64e0f87 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/varnotnull/whileWithBreak.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/varnotnull/whileWithBreak.antlrtree.txt index cbf3a4081..265ab7cfa 100644 --- a/grammar/testData/diagnostics/smartCasts/varnotnull/whileWithBreak.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/varnotnull/whileWithBreak.antlrtree.txt @@ -377,6 +377,4 @@ File: whileWithBreak.kt - d6eea612e990b15e8e5747660b1ec248 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/whenIfExprNonNull.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/whenIfExprNonNull.antlrtree.txt index 4e16cae74..e53250ad5 100644 --- a/grammar/testData/diagnostics/smartCasts/whenIfExprNonNull.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/whenIfExprNonNull.antlrtree.txt @@ -408,6 +408,4 @@ File: whenIfExprNonNull.kt - 888630de3f3597c6ffe70713379d6997 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/whenSubjectImpossible.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/whenSubjectImpossible.antlrtree.txt index a667f520a..a4ae08aa7 100644 --- a/grammar/testData/diagnostics/smartCasts/whenSubjectImpossible.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/whenSubjectImpossible.antlrtree.txt @@ -169,6 +169,4 @@ File: whenSubjectImpossible.kt - fe501ef0aa70726f2eac8dc1519cc957 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/smartCasts/whenSubjectImpossibleJava.My.antlrtree.txt b/grammar/testData/diagnostics/smartCasts/whenSubjectImpossibleJava.My.antlrtree.txt index be3fc0e81..4d0f847e5 100644 --- a/grammar/testData/diagnostics/smartCasts/whenSubjectImpossibleJava.My.antlrtree.txt +++ b/grammar/testData/diagnostics/smartCasts/whenSubjectImpossibleJava.My.antlrtree.txt @@ -109,6 +109,4 @@ File: whenSubjectImpossibleJava.My.kt - 1d8543964fd1e7346c99db14816ec73a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/sourceCompatibility/apiVersion/simpleMembers.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/apiVersion/simpleMembers.antlrtree.txt index fec791da6..e5b480fcf 100644 --- a/grammar/testData/diagnostics/sourceCompatibility/apiVersion/simpleMembers.antlrtree.txt +++ b/grammar/testData/diagnostics/sourceCompatibility/apiVersion/simpleMembers.antlrtree.txt @@ -1,4 +1,5 @@ -File: simpleMembers.kt - 07637d7b9d74b157be6b2ebb4676d0f5 +File: simpleMembers.kt - 6bedb4153e9d6c7a9a8e10970a725f68 + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsCompanionObjects.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsCompanionObjects.antlrtree.txt index eea9312d9..06f4cc3bf 100644 --- a/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsCompanionObjects.antlrtree.txt +++ b/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsCompanionObjects.antlrtree.txt @@ -240,6 +240,4 @@ File: typealiasesAsCompanionObjects.kt - e6f0342f92fa3d0007906b0ea36692be simpleIdentifier Identifier("x") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsConstructors.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsConstructors.antlrtree.txt index 07dbb04c3..49746cbb1 100644 --- a/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsConstructors.antlrtree.txt +++ b/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsConstructors.antlrtree.txt @@ -289,6 +289,4 @@ File: typealiasesAsConstructors.kt - ef0ad59d65a0a739a59d14514b56e44d valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsObjects.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsObjects.antlrtree.txt index 154f73e2c..682608538 100644 --- a/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsObjects.antlrtree.txt +++ b/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsObjects.antlrtree.txt @@ -155,6 +155,4 @@ File: typealiasesAsObjects.kt - 565d27524223333dbaea0489ed589076 DOT(".") simpleIdentifier Identifier("x") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsTypes.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsTypes.antlrtree.txt index 2c4e70d8e..f389cb99d 100644 --- a/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesAsTypes.antlrtree.txt @@ -330,6 +330,4 @@ File: typealiasesAsTypes.kt - 8fddf6ba72548a3c8a020d90656ef935 primaryExpression simpleIdentifier Identifier("x") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesOnImport.b.antlrtree.txt b/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesOnImport.b.antlrtree.txt index c3896f855..9c910eee4 100644 --- a/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesOnImport.b.antlrtree.txt +++ b/grammar/testData/diagnostics/sourceCompatibility/apiVersion/typealiasesOnImport.b.antlrtree.txt @@ -26,6 +26,4 @@ File: typealiasesOnImport.b.kt - e0bafacd948a30087bb450069d2687fc DOT(".") simpleIdentifier Identifier("Alias_1_1") - semi - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/substitutions/kt1558-short.antlrtree.txt b/grammar/testData/diagnostics/substitutions/kt1558-short.antlrtree.txt index d5204edf9..12c5c2fa9 100644 --- a/grammar/testData/diagnostics/substitutions/kt1558-short.antlrtree.txt +++ b/grammar/testData/diagnostics/substitutions/kt1558-short.antlrtree.txt @@ -188,6 +188,4 @@ File: kt1558-short.kt - 8e73a1ed1dd260ac579862842ab96768 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/substitutions/kt4887.antlrtree.txt b/grammar/testData/diagnostics/substitutions/kt4887.antlrtree.txt index 417dd79c1..918096c90 100644 --- a/grammar/testData/diagnostics/substitutions/kt4887.antlrtree.txt +++ b/grammar/testData/diagnostics/substitutions/kt4887.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt4887.kt - 65375fa5329f132c049cff3dd86581be +File: kt4887.kt - 35d31755caf39c0c4f2e040af1b0437d + NL("\n") packageHeader PACKAGE("package") identifier @@ -229,5 +230,5 @@ File: kt4887.kt - 65375fa5329f132c049cff3dd86581be NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/substitutions/starProjections.antlrtree.txt b/grammar/testData/diagnostics/substitutions/starProjections.antlrtree.txt index cbcd71a2d..b74d86036 100644 --- a/grammar/testData/diagnostics/substitutions/starProjections.antlrtree.txt +++ b/grammar/testData/diagnostics/substitutions/starProjections.antlrtree.txt @@ -1,5 +1,4 @@ -File: starProjections.kt - e33edd90c5f63ca08ab7b259c54cf484 - NL("\n") +File: starProjections.kt - b6ce8a740bfa662d1da4632dc9100822 NL("\n") NL("\n") packageHeader @@ -659,5 +658,4 @@ File: starProjections.kt - e33edd90c5f63ca08ab7b259c54cf484 RCURL("}") semis NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/substitutions/upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.antlrtree.txt b/grammar/testData/diagnostics/substitutions/upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.antlrtree.txt index 6f6af946f..a74326e7e 100644 --- a/grammar/testData/diagnostics/substitutions/upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/substitutions/upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.kt - 3d582a343a6a2496ec513c2e42721766 - NL("\n") +File: upperBoundsSubstitutionForOverloadResolutionWithErrorTypes.kt - e5de9f86df3d2c462123c24d5166a1af NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/subtyping/extFunctionTypeAsSuperType.antlrtree.txt b/grammar/testData/diagnostics/subtyping/extFunctionTypeAsSuperType.antlrtree.txt index 04793bdc6..3a75ea8b1 100644 --- a/grammar/testData/diagnostics/subtyping/extFunctionTypeAsSuperType.antlrtree.txt +++ b/grammar/testData/diagnostics/subtyping/extFunctionTypeAsSuperType.antlrtree.txt @@ -1,4 +1,5 @@ -File: extFunctionTypeAsSuperType.kt - b78b75e19854cba0388099d608fd34df +File: extFunctionTypeAsSuperType.kt - 40c1912262314954f9933b6c97a47c0d + NL("\n") packageHeader importList topLevelObject @@ -621,6 +622,4 @@ File: extFunctionTypeAsSuperType.kt - b78b75e19854cba0388099d608fd34df simpleUserType simpleIdentifier Identifier("Double") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/subtyping/extFunctionTypeAsSuperTypeRestrictionLifted.antlrtree.txt b/grammar/testData/diagnostics/subtyping/extFunctionTypeAsSuperTypeRestrictionLifted.antlrtree.txt new file mode 100644 index 000000000..fd40e9bf3 --- /dev/null +++ b/grammar/testData/diagnostics/subtyping/extFunctionTypeAsSuperTypeRestrictionLifted.antlrtree.txt @@ -0,0 +1,629 @@ +File: extFunctionTypeAsSuperTypeRestrictionLifted.kt - aff3c6b43d5dcedd09ae6ee3a26cc91e + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("invoke") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("p1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("p2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A0") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("D") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("B0") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("B1") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("B2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("E") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("C0") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("C") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("C1") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("C") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("E") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/subtyping/findClosestCorrespondingSupertype.antlrtree.txt b/grammar/testData/diagnostics/subtyping/findClosestCorrespondingSupertype.antlrtree.txt index dc92e49fc..7801e876d 100644 --- a/grammar/testData/diagnostics/subtyping/findClosestCorrespondingSupertype.antlrtree.txt +++ b/grammar/testData/diagnostics/subtyping/findClosestCorrespondingSupertype.antlrtree.txt @@ -1,4 +1,5 @@ -File: findClosestCorrespondingSupertype.kt - 0d077cd6266d6bade6ca2d8755c7dc24 +File: findClosestCorrespondingSupertype.kt - 03909f7fade4822701525be7e6c34b91 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/subtyping/functionTypeAsSuperType.antlrtree.txt b/grammar/testData/diagnostics/subtyping/functionTypeAsSuperType.antlrtree.txt index 58207cb40..18129622e 100644 --- a/grammar/testData/diagnostics/subtyping/functionTypeAsSuperType.antlrtree.txt +++ b/grammar/testData/diagnostics/subtyping/functionTypeAsSuperType.antlrtree.txt @@ -1148,6 +1148,4 @@ File: functionTypeAsSuperType.kt - 9bb4f956d9c304282b9e6f9b6092bf81 simpleIdentifier Identifier("Double") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/subtyping/javaAndKotlinSuperType.3.antlrtree.txt b/grammar/testData/diagnostics/subtyping/javaAndKotlinSuperType.3.antlrtree.txt index 1ac81a0b2..84e8ba99e 100644 --- a/grammar/testData/diagnostics/subtyping/javaAndKotlinSuperType.3.antlrtree.txt +++ b/grammar/testData/diagnostics/subtyping/javaAndKotlinSuperType.3.antlrtree.txt @@ -1,4 +1,4 @@ -File: javaAndKotlinSuperType.3.kt - 0f8060eb1ce5e19d0fb71c380e0219ae +File: javaAndKotlinSuperType.3.kt - 961d6112aa96b5c742c9a4ff60aca591 packageHeader importList topLevelObject @@ -205,5 +205,5 @@ File: javaAndKotlinSuperType.3.kt - 0f8060eb1ce5e19d0fb71c380e0219ae NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/subtyping/kt2069.antlrtree.txt b/grammar/testData/diagnostics/subtyping/kt2069.antlrtree.txt index 6b038991d..02a7efb9b 100644 --- a/grammar/testData/diagnostics/subtyping/kt2069.antlrtree.txt +++ b/grammar/testData/diagnostics/subtyping/kt2069.antlrtree.txt @@ -127,6 +127,4 @@ File: kt2069.kt - dd23a31722f462ec70ffc7e92314ab69 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/subtyping/kt2744.antlrtree.txt b/grammar/testData/diagnostics/subtyping/kt2744.antlrtree.txt index 5353819f6..6def513b7 100644 --- a/grammar/testData/diagnostics/subtyping/kt2744.antlrtree.txt +++ b/grammar/testData/diagnostics/subtyping/kt2744.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt2744.kt - f454d223507ba0dbddc75bdafebd1c84 +File: kt2744.kt - c51bfb9bac60b7deb56635e9a68bc895 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/subtyping/kt3159.antlrtree.txt b/grammar/testData/diagnostics/subtyping/kt3159.antlrtree.txt index 6c76b9d7d..e6f2397e1 100644 --- a/grammar/testData/diagnostics/subtyping/kt3159.antlrtree.txt +++ b/grammar/testData/diagnostics/subtyping/kt3159.antlrtree.txt @@ -149,6 +149,4 @@ File: kt3159.kt - 7e70ae07208fab74ad66319a0b5fdd18 QUOTE_CLOSE(""") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/subtyping/kt47148.antlrtree.txt b/grammar/testData/diagnostics/subtyping/kt47148.antlrtree.txt new file mode 100644 index 000000000..8a2520c25 --- /dev/null +++ b/grammar/testData/diagnostics/subtyping/kt47148.antlrtree.txt @@ -0,0 +1,411 @@ +File: kt47148.kt - f67fb71095cf9bf4f0fc57f481c33e3c + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Visitor") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("visit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("key") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("str1") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("str2") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("visit") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Visitor") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("str1") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("let") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@visit") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("visit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + RPAREN(")") + RCURL("}") + NL("\n") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("str2") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("let") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN_AT("return@visit") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("visit") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + RPAREN(")") + RCURL("}") + NL("\n") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("error") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("error") + QUOTE_CLOSE(""") + RPAREN(")") + EOF("") diff --git a/grammar/testData/diagnostics/subtyping/localAnonymousObjects.antlrtree.txt b/grammar/testData/diagnostics/subtyping/localAnonymousObjects.antlrtree.txt index 987b9ba65..ae533db28 100644 --- a/grammar/testData/diagnostics/subtyping/localAnonymousObjects.antlrtree.txt +++ b/grammar/testData/diagnostics/subtyping/localAnonymousObjects.antlrtree.txt @@ -79,6 +79,4 @@ File: localAnonymousObjects.kt - 2ee439faa5a391a49c15837c31299aa1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/subtyping/localClasses.antlrtree.txt b/grammar/testData/diagnostics/subtyping/localClasses.antlrtree.txt index 5e02185b3..683991de5 100644 --- a/grammar/testData/diagnostics/subtyping/localClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/subtyping/localClasses.antlrtree.txt @@ -1,5 +1,4 @@ -File: localClasses.kt - 99c20a4c6d13a5179b455273ac3224eb - NL("\n") +File: localClasses.kt - f9b34db65231aedd8bef72a7d36862de NL("\n") NL("\n") packageHeader @@ -276,6 +275,4 @@ File: localClasses.kt - 99c20a4c6d13a5179b455273ac3224eb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/subtyping/memberAnonymousObjects.antlrtree.txt b/grammar/testData/diagnostics/subtyping/memberAnonymousObjects.antlrtree.txt index f54b7cc53..d898d04cd 100644 --- a/grammar/testData/diagnostics/subtyping/memberAnonymousObjects.antlrtree.txt +++ b/grammar/testData/diagnostics/subtyping/memberAnonymousObjects.antlrtree.txt @@ -89,6 +89,4 @@ File: memberAnonymousObjects.kt - b38d69d15c5f678d5e4c15af616f4fdb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/subtyping/nestedIntoLocalClasses.antlrtree.txt b/grammar/testData/diagnostics/subtyping/nestedIntoLocalClasses.antlrtree.txt index e4a89f478..a08871de9 100644 --- a/grammar/testData/diagnostics/subtyping/nestedIntoLocalClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/subtyping/nestedIntoLocalClasses.antlrtree.txt @@ -1,5 +1,4 @@ -File: nestedIntoLocalClasses.kt - a1fcf25b858e0cd669ddcc79a156c61b - NL("\n") +File: nestedIntoLocalClasses.kt - e5b95165db525c46dd253b4dc9bb239b NL("\n") NL("\n") packageHeader @@ -378,6 +377,4 @@ File: nestedIntoLocalClasses.kt - a1fcf25b858e0cd669ddcc79a156c61b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/subtyping/nestedLocalClasses.antlrtree.txt b/grammar/testData/diagnostics/subtyping/nestedLocalClasses.antlrtree.txt index 8f6ceaa84..4d5edb0e4 100644 --- a/grammar/testData/diagnostics/subtyping/nestedLocalClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/subtyping/nestedLocalClasses.antlrtree.txt @@ -1,5 +1,4 @@ -File: nestedLocalClasses.kt - cf23f869c8ca9201aa54154e03e6dda0 - NL("\n") +File: nestedLocalClasses.kt - 87f4d36abe11c9ac23d97c596ea7c6ef NL("\n") NL("\n") packageHeader @@ -332,6 +331,4 @@ File: nestedLocalClasses.kt - cf23f869c8ca9201aa54154e03e6dda0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/subtyping/topLevelAnonymousObjects.antlrtree.txt b/grammar/testData/diagnostics/subtyping/topLevelAnonymousObjects.antlrtree.txt index 7efe143ee..2ee1c8eab 100644 --- a/grammar/testData/diagnostics/subtyping/topLevelAnonymousObjects.antlrtree.txt +++ b/grammar/testData/diagnostics/subtyping/topLevelAnonymousObjects.antlrtree.txt @@ -82,6 +82,4 @@ File: topLevelAnonymousObjects.kt - ea88a8405b46c79839e5fec6e392396c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnAnonymousObjectInVariable.antlrtree.txt b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnAnonymousObjectInVariable.antlrtree.txt index 43136dd5a..635dd200b 100644 --- a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnAnonymousObjectInVariable.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnAnonymousObjectInVariable.antlrtree.txt @@ -130,6 +130,4 @@ File: suppressWarningsOnAnonymousObjectInVariable.kt - 0c6514bb8dc00a11fbbb0065f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnClass.antlrtree.txt b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnClass.antlrtree.txt index 457b487a8..a4934f210 100644 --- a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnClass.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnClass.antlrtree.txt @@ -1,4 +1,4 @@ -File: suppressWarningsOnClass.kt - afd5fd3650366ef00cc29796a61864a7 +File: suppressWarningsOnClass.kt - b9e6c7a2dfae49759590b3eaf88bcc1b packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: suppressWarningsOnClass.kt - afd5fd3650366ef00cc29796a61864a7 modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType @@ -111,6 +111,4 @@ File: suppressWarningsOnClass.kt - afd5fd3650366ef00cc29796a61864a7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnClassObject.antlrtree.txt b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnClassObject.antlrtree.txt index c01059fc2..d71869527 100644 --- a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnClassObject.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnClassObject.antlrtree.txt @@ -111,6 +111,4 @@ File: suppressWarningsOnClassObject.kt - e5c6c00a778387ab48814c076a1e0c5e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnExpression.antlrtree.txt b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnExpression.antlrtree.txt index 2da4dd8b2..45e917464 100644 --- a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnExpression.antlrtree.txt @@ -108,6 +108,4 @@ File: suppressWarningsOnExpression.kt - 1ac1a2afab7b5e14ab09c95b269ff052 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnFile.antlrtree.txt b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnFile.antlrtree.txt index e5ce4303f..1fd8ea294 100644 --- a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnFile.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnFile.antlrtree.txt @@ -111,6 +111,4 @@ File: suppressWarningsOnFile.kt - 94362c261286e334faf77bd89ca1ca98 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnFunction.antlrtree.txt b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnFunction.antlrtree.txt index f7410d830..945c0a85d 100644 --- a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnFunction.antlrtree.txt @@ -82,6 +82,4 @@ File: suppressWarningsOnFunction.kt - fbbf54cec531d2871fd07d83e1cfe025 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnObject.antlrtree.txt b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnObject.antlrtree.txt index f9188e25e..75a9bf2c4 100644 --- a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnObject.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnObject.antlrtree.txt @@ -81,6 +81,4 @@ File: suppressWarningsOnObject.kt - 154c2fbc4917ff123c437e70e7097bc9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnParameter.antlrtree.txt b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnParameter.antlrtree.txt index b6ba87dd1..d7caf8b6a 100644 --- a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnParameter.antlrtree.txt @@ -110,6 +110,4 @@ File: suppressWarningsOnParameter.kt - 0c106fafbce5978a42814a4802a8ddf0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnProperty.antlrtree.txt b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnProperty.antlrtree.txt index ed3ad94cb..b2d818b01 100644 --- a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnProperty.antlrtree.txt @@ -100,6 +100,4 @@ File: suppressWarningsOnProperty.kt - e44f471426372f9250348e2279d9c388 QUEST_NO_WS("?") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnPropertyAccessor.antlrtree.txt b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnPropertyAccessor.antlrtree.txt index 9177e15e3..58afbf727 100644 --- a/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnPropertyAccessor.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/allWarnings/suppressWarningsOnPropertyAccessor.antlrtree.txt @@ -117,6 +117,4 @@ File: suppressWarningsOnPropertyAccessor.kt - 42fd4f36fb450cdefa8a3e1e70302cf5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/manyWarnings/mixed.antlrtree.txt b/grammar/testData/diagnostics/suppress/manyWarnings/mixed.antlrtree.txt index df07855e4..661974d22 100644 --- a/grammar/testData/diagnostics/suppress/manyWarnings/mixed.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/manyWarnings/mixed.antlrtree.txt @@ -149,6 +149,4 @@ File: mixed.kt - c5b520df660a8b0588e8a91d38866cc8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/manyWarnings/onClass.antlrtree.txt b/grammar/testData/diagnostics/suppress/manyWarnings/onClass.antlrtree.txt index 9f024f87b..75d827f0a 100644 --- a/grammar/testData/diagnostics/suppress/manyWarnings/onClass.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/manyWarnings/onClass.antlrtree.txt @@ -136,6 +136,4 @@ File: onClass.kt - 92b4a0b807dfac31142e5bf084d344b5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/manyWarnings/onClassObject.antlrtree.txt b/grammar/testData/diagnostics/suppress/manyWarnings/onClassObject.antlrtree.txt index 2b05d189d..7aa0d102d 100644 --- a/grammar/testData/diagnostics/suppress/manyWarnings/onClassObject.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/manyWarnings/onClassObject.antlrtree.txt @@ -143,6 +143,4 @@ File: onClassObject.kt - 03835d46824f555d6de8ed0588c991fe semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/manyWarnings/onExpression.antlrtree.txt b/grammar/testData/diagnostics/suppress/manyWarnings/onExpression.antlrtree.txt index 5a7a14651..62d8d07e4 100644 --- a/grammar/testData/diagnostics/suppress/manyWarnings/onExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/manyWarnings/onExpression.antlrtree.txt @@ -145,6 +145,4 @@ File: onExpression.kt - e7ce4db10b6d43fbdfc3f5b0dad93d07 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/manyWarnings/onFunction.antlrtree.txt b/grammar/testData/diagnostics/suppress/manyWarnings/onFunction.antlrtree.txt index 7cbee4abe..1976330df 100644 --- a/grammar/testData/diagnostics/suppress/manyWarnings/onFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/manyWarnings/onFunction.antlrtree.txt @@ -136,6 +136,4 @@ File: onFunction.kt - fdca154813aa2c41f014294f91f3a3ca semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/manyWarnings/onObject.antlrtree.txt b/grammar/testData/diagnostics/suppress/manyWarnings/onObject.antlrtree.txt index 5b405eec2..b66e8954b 100644 --- a/grammar/testData/diagnostics/suppress/manyWarnings/onObject.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/manyWarnings/onObject.antlrtree.txt @@ -136,6 +136,4 @@ File: onObject.kt - 19a4c15ac734303dd97894134abc1f34 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/manyWarnings/onParameter.antlrtree.txt b/grammar/testData/diagnostics/suppress/manyWarnings/onParameter.antlrtree.txt index 875e1496f..e9d421f8f 100644 --- a/grammar/testData/diagnostics/suppress/manyWarnings/onParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/manyWarnings/onParameter.antlrtree.txt @@ -158,6 +158,4 @@ File: onParameter.kt - ce7b2adc1e061e2e8796116be5c3053d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/manyWarnings/onProperty.antlrtree.txt b/grammar/testData/diagnostics/suppress/manyWarnings/onProperty.antlrtree.txt index ab85c8071..22f7b208e 100644 --- a/grammar/testData/diagnostics/suppress/manyWarnings/onProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/manyWarnings/onProperty.antlrtree.txt @@ -132,6 +132,4 @@ File: onProperty.kt - 462acd45df9fd2a61569d0f3c7d1827e QUEST_NO_WS("?") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/manyWarnings/onPropertyAccessor.antlrtree.txt b/grammar/testData/diagnostics/suppress/manyWarnings/onPropertyAccessor.antlrtree.txt index eb1a7d5d2..323c9eb0a 100644 --- a/grammar/testData/diagnostics/suppress/manyWarnings/onPropertyAccessor.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/manyWarnings/onPropertyAccessor.antlrtree.txt @@ -149,6 +149,4 @@ File: onPropertyAccessor.kt - b007d949cbb4c5d55ecc6285c5e89a82 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/oneWarning/onClass.antlrtree.txt b/grammar/testData/diagnostics/suppress/oneWarning/onClass.antlrtree.txt index e8d1e6395..1939d4891 100644 --- a/grammar/testData/diagnostics/suppress/oneWarning/onClass.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/oneWarning/onClass.antlrtree.txt @@ -1,4 +1,4 @@ -File: onClass.kt - 78c28e0ef730aeaacd046795dcabd5bb +File: onClass.kt - 59f5cc64376caee1bd839cf5b9c6cad7 packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: onClass.kt - 78c28e0ef730aeaacd046795dcabd5bb modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType @@ -105,6 +105,4 @@ File: onClass.kt - 78c28e0ef730aeaacd046795dcabd5bb semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/oneWarning/onClassObject.antlrtree.txt b/grammar/testData/diagnostics/suppress/oneWarning/onClassObject.antlrtree.txt index 50f970558..59c99362e 100644 --- a/grammar/testData/diagnostics/suppress/oneWarning/onClassObject.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/oneWarning/onClassObject.antlrtree.txt @@ -1,4 +1,5 @@ -File: onClassObject.kt - ef171612a6344f69209c888afb53d73a +File: onClassObject.kt - d38882df0025c43275fdb48271ce43bf + NL("\n") packageHeader importList topLevelObject @@ -112,6 +113,4 @@ File: onClassObject.kt - ef171612a6344f69209c888afb53d73a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/oneWarning/onExpression.antlrtree.txt b/grammar/testData/diagnostics/suppress/oneWarning/onExpression.antlrtree.txt index b67b4ab01..deaaf89ed 100644 --- a/grammar/testData/diagnostics/suppress/oneWarning/onExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/oneWarning/onExpression.antlrtree.txt @@ -1,4 +1,5 @@ -File: onExpression.kt - af46317cddca2ccec956a4f5b789152b +File: onExpression.kt - 7495f129e393103ac66e1b4caa700ca8 + NL("\n") packageHeader importList topLevelObject @@ -114,6 +115,4 @@ File: onExpression.kt - af46317cddca2ccec956a4f5b789152b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/oneWarning/onFunction.antlrtree.txt b/grammar/testData/diagnostics/suppress/oneWarning/onFunction.antlrtree.txt index 95d3891d5..65b824160 100644 --- a/grammar/testData/diagnostics/suppress/oneWarning/onFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/oneWarning/onFunction.antlrtree.txt @@ -1,4 +1,5 @@ -File: onFunction.kt - 7f6a5b5cbc1b94cd122dfc4c010da135 +File: onFunction.kt - e18ea2357bfef1b7e9031a4ec71057d8 + NL("\n") packageHeader importList topLevelObject @@ -105,6 +106,4 @@ File: onFunction.kt - 7f6a5b5cbc1b94cd122dfc4c010da135 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/oneWarning/onLocalVariable.antlrtree.txt b/grammar/testData/diagnostics/suppress/oneWarning/onLocalVariable.antlrtree.txt index 7fac6f39b..919c4de7e 100644 --- a/grammar/testData/diagnostics/suppress/oneWarning/onLocalVariable.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/oneWarning/onLocalVariable.antlrtree.txt @@ -1,4 +1,5 @@ -File: onLocalVariable.kt - 7bed70b529d22f352cb1e236ac87c0e0 +File: onLocalVariable.kt - 65a44c9ac48851bd4c18388a478ea9ef + NL("\n") packageHeader importList topLevelObject @@ -167,6 +168,4 @@ File: onLocalVariable.kt - 7bed70b529d22f352cb1e236ac87c0e0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/oneWarning/onObject.antlrtree.txt b/grammar/testData/diagnostics/suppress/oneWarning/onObject.antlrtree.txt index 128e9fca9..5032bcbab 100644 --- a/grammar/testData/diagnostics/suppress/oneWarning/onObject.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/oneWarning/onObject.antlrtree.txt @@ -1,4 +1,4 @@ -File: onObject.kt - 565ae3d2a9c447c58c2b3c68ed3e02f3 +File: onObject.kt - 22e894537782cd788b0bc26e69b5c7fb packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: onObject.kt - 565ae3d2a9c447c58c2b3c68ed3e02f3 modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType @@ -105,6 +105,4 @@ File: onObject.kt - 565ae3d2a9c447c58c2b3c68ed3e02f3 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/oneWarning/onParameter.antlrtree.txt b/grammar/testData/diagnostics/suppress/oneWarning/onParameter.antlrtree.txt index 56071f411..c317061b8 100644 --- a/grammar/testData/diagnostics/suppress/oneWarning/onParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/oneWarning/onParameter.antlrtree.txt @@ -1,4 +1,5 @@ -File: onParameter.kt - 3da875be01c27251f0fea723d1b4d99a +File: onParameter.kt - d73a02e61f865a9e5830ca764fb45a02 + NL("\n") packageHeader importList topLevelObject @@ -127,6 +128,4 @@ File: onParameter.kt - 3da875be01c27251f0fea723d1b4d99a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/oneWarning/onProperty.antlrtree.txt b/grammar/testData/diagnostics/suppress/oneWarning/onProperty.antlrtree.txt index 2f04ca4ca..c92e8e348 100644 --- a/grammar/testData/diagnostics/suppress/oneWarning/onProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/oneWarning/onProperty.antlrtree.txt @@ -1,4 +1,5 @@ -File: onProperty.kt - ca0062b54e4a489602ae6fc20a739014 +File: onProperty.kt - 29811eaa3b788589ac252e1f3adf7882 + NL("\n") packageHeader importList topLevelObject @@ -99,6 +100,4 @@ File: onProperty.kt - ca0062b54e4a489602ae6fc20a739014 QUEST_NO_WS("?") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/oneWarning/onPropertyAccessor.antlrtree.txt b/grammar/testData/diagnostics/suppress/oneWarning/onPropertyAccessor.antlrtree.txt index b3e9a7169..5accede27 100644 --- a/grammar/testData/diagnostics/suppress/oneWarning/onPropertyAccessor.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/oneWarning/onPropertyAccessor.antlrtree.txt @@ -1,4 +1,5 @@ -File: onPropertyAccessor.kt - a25254f734e4b2dca8479cb0c9f3327d +File: onPropertyAccessor.kt - dbb0906d13181da4050c23fc2f8c38dc + NL("\n") packageHeader importList topLevelObject @@ -118,6 +119,4 @@ File: onPropertyAccessor.kt - a25254f734e4b2dca8479cb0c9f3327d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/oneWarning/onTypeParameter.antlrtree.txt b/grammar/testData/diagnostics/suppress/oneWarning/onTypeParameter.antlrtree.txt index 929dfe6af..55d918986 100644 --- a/grammar/testData/diagnostics/suppress/oneWarning/onTypeParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/suppress/oneWarning/onTypeParameter.antlrtree.txt @@ -75,6 +75,4 @@ File: onTypeParameter.kt - f793d57b6166ca74b19a74af21270b54 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suppress/oneWarning/suppressOnDeclarationItself.antlrtree.txt b/grammar/testData/diagnostics/suppress/oneWarning/suppressOnDeclarationItself.antlrtree.txt new file mode 100644 index 000000000..3e8ef8d9c --- /dev/null +++ b/grammar/testData/diagnostics/suppress/oneWarning/suppressOnDeclarationItself.antlrtree.txt @@ -0,0 +1,76 @@ +File: suppressOnDeclarationItself.kt - ff83cf1cdefdd87851ea8d4b24d98038 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Suppress") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOTHING_TO_OVERRIDE") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/suspendConversion/overloadResolutionBySuspendModifier.antlrtree.txt b/grammar/testData/diagnostics/suspendConversion/overloadResolutionBySuspendModifier.antlrtree.txt index e12e41380..e216fe0f5 100644 --- a/grammar/testData/diagnostics/suspendConversion/overloadResolutionBySuspendModifier.antlrtree.txt +++ b/grammar/testData/diagnostics/suspendConversion/overloadResolutionBySuspendModifier.antlrtree.txt @@ -1,4 +1,5 @@ -File: overloadResolutionBySuspendModifier.kt - 0f6f526df0e4418ebe207f6754632f25 +File: overloadResolutionBySuspendModifier.kt - 889fc494bef2890a3c2cd9b792334ca5 + NL("\n") NL("\n") NL("\n") packageHeader @@ -421,6 +422,4 @@ File: overloadResolutionBySuspendModifier.kt - 0f6f526df0e4418ebe207f6754632f25 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suspendConversion/suspendConversionCompatibilityInDisabledMode.antlrtree.txt b/grammar/testData/diagnostics/suspendConversion/suspendConversionCompatibilityInDisabledMode.antlrtree.txt index f22893466..85621de02 100644 --- a/grammar/testData/diagnostics/suspendConversion/suspendConversionCompatibilityInDisabledMode.antlrtree.txt +++ b/grammar/testData/diagnostics/suspendConversion/suspendConversionCompatibilityInDisabledMode.antlrtree.txt @@ -723,6 +723,4 @@ File: suspendConversionCompatibilityInDisabledMode.kt - 31d1b4dc410f2ac893eac347 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/suspendConversion/suspendConversionOnVarargElements.antlrtree.txt b/grammar/testData/diagnostics/suspendConversion/suspendConversionOnVarargElements.antlrtree.txt index 6aeb874de..0b0c9ccdc 100644 --- a/grammar/testData/diagnostics/suspendConversion/suspendConversionOnVarargElements.antlrtree.txt +++ b/grammar/testData/diagnostics/suspendConversion/suspendConversionOnVarargElements.antlrtree.txt @@ -360,6 +360,4 @@ File: suspendConversionOnVarargElements.kt - 9f32552949af53aaaebfc70ce6c7178f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/syntax/complicatedLTGT.antlrtree.txt b/grammar/testData/diagnostics/syntax/complicatedLTGT.antlrtree.txt new file mode 100644 index 000000000..8876da7de --- /dev/null +++ b/grammar/testData/diagnostics/syntax/complicatedLTGT.antlrtree.txt @@ -0,0 +1,225 @@ +File: complicatedLTGT.kt - 5c3d21f9975f258379c3586468538c4a + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("115") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/syntax/complicatedLTGTE.antlrtree.txt b/grammar/testData/diagnostics/syntax/complicatedLTGTE.antlrtree.txt new file mode 100644 index 000000000..87b33c073 --- /dev/null +++ b/grammar/testData/diagnostics/syntax/complicatedLTGTE.antlrtree.txt @@ -0,0 +1,226 @@ +File: complicatedLTGTE.kt - 06926adb8e213d2beac25185c023fd47 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + comparisonOperator + GE(">=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("115") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/syntheticExtensions/javaProperties/nonAsciiSecondChar.main.antlrtree.txt b/grammar/testData/diagnostics/syntheticExtensions/javaProperties/nonAsciiSecondChar.main.antlrtree.txt new file mode 100644 index 000000000..b825a2bb4 --- /dev/null +++ b/grammar/testData/diagnostics/syntheticExtensions/javaProperties/nonAsciiSecondChar.main.antlrtree.txt @@ -0,0 +1,65 @@ +File: nonAsciiSecondChar.main.kt - 321702cbed6a639b6e266d12bc910bca + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("s4ClassRepresentation") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/syntheticExtensions/javaProperties/nonValidFirstChar.main.antlrtree.txt b/grammar/testData/diagnostics/syntheticExtensions/javaProperties/nonValidFirstChar.main.antlrtree.txt new file mode 100644 index 000000000..8e335332b --- /dev/null +++ b/grammar/testData/diagnostics/syntheticExtensions/javaProperties/nonValidFirstChar.main.antlrtree.txt @@ -0,0 +1,91 @@ +File: nonValidFirstChar.main.kt - 91049b8e40c6ad5047c0c80988e52c86 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("`1`") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("get1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/tailRecBasic.antlrtree.txt b/grammar/testData/diagnostics/tailRecBasic.antlrtree.txt new file mode 100644 index 000000000..0a7352729 --- /dev/null +++ b/grammar/testData/diagnostics/tailRecBasic.antlrtree.txt @@ -0,0 +1,1250 @@ +File: tailRecBasic.kt - 389bd0d163d96994b7b89b47cd20f4b0 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo5") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo6") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo6") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + prefixUnaryOperator + excl + EXCL_NO_WS("!") + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo7_return") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo7_return") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo7_break") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo7_break") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + BREAK("break") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo7_continue") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo7_continue") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + CONTINUE("continue") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo8") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + loopStatement + whileStatement + WHILE("while") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo8") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + THROW("throw") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Exception") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo8") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo9") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo9") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo10") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo10") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo11") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("hello ") + lineStringExpression + LineStrExprStart("${") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo11") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/tailRecInNestedScopes.antlrtree.txt b/grammar/testData/diagnostics/tailRecInNestedScopes.antlrtree.txt new file mode 100644 index 000000000..ad256c979 --- /dev/null +++ b/grammar/testData/diagnostics/tailRecInNestedScopes.antlrtree.txt @@ -0,0 +1,513 @@ +File: tailRecInNestedScopes.kt - 8d326da8b55aa5dab866d048e13b85f9 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("run") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("myRun") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myRun") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("run") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo5") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/tailRecInTry.antlrtree.txt b/grammar/testData/diagnostics/tailRecInTry.antlrtree.txt new file mode 100644 index 000000000..5e7f15e5d --- /dev/null +++ b/grammar/testData/diagnostics/tailRecInTry.antlrtree.txt @@ -0,0 +1,1025 @@ +File: tailRecInTry.kt - f838cd27961eeeb4c13af4be9d85197b + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + tryExpression + TRY("try") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + catchBlock + CATCH("catch") + LPAREN("(") + simpleIdentifier + Identifier("e") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Exception") + RPAREN(")") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + finallyBlock + FINALLY("finally") + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + ELSE("else") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/tailRecOnVirtualMember.antlrtree.txt b/grammar/testData/diagnostics/tailRecOnVirtualMember.antlrtree.txt index d792fe121..8229499d4 100644 --- a/grammar/testData/diagnostics/tailRecOnVirtualMember.antlrtree.txt +++ b/grammar/testData/diagnostics/tailRecOnVirtualMember.antlrtree.txt @@ -1,4 +1,4 @@ -File: tailRecOnVirtualMember.kt - 64856f6aa80278507e9ccb6339ac155b +File: tailRecOnVirtualMember.kt - bdaaecd1f85eb00c32eb7263a6845edd NL("\n") NL("\n") packageHeader @@ -347,6 +347,90 @@ File: tailRecOnVirtualMember.kt - 64856f6aa80278507e9ccb6339ac155b semis NL("\n") NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + inheritanceModifier + OPEN("open") + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("booOpen") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("booOpen") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") classMemberDeclaration declaration functionDeclaration @@ -3214,6 +3298,5 @@ File: tailRecOnVirtualMember.kt - 64856f6aa80278507e9ccb6339ac155b semis NL("\n") RCURL("}") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/tailRecOnVirtualMemberError.antlrtree.txt b/grammar/testData/diagnostics/tailRecOnVirtualMemberError.antlrtree.txt index 4b6ba6b4a..616b6bd45 100644 --- a/grammar/testData/diagnostics/tailRecOnVirtualMemberError.antlrtree.txt +++ b/grammar/testData/diagnostics/tailRecOnVirtualMemberError.antlrtree.txt @@ -1,4 +1,5 @@ -File: tailRecOnVirtualMemberError.kt - abed498a472a338b0ead2c5415c4c8ea +File: tailRecOnVirtualMemberError.kt - d0239fd0bc4818ca8f63bc49321446bb + NL("\n") NL("\n") NL("\n") packageHeader @@ -3213,6 +3214,5 @@ File: tailRecOnVirtualMemberError.kt - abed498a472a338b0ead2c5415c4c8ea semis NL("\n") RCURL("}") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/tailRecOverridden.antlrtree.txt b/grammar/testData/diagnostics/tailRecOverridden.antlrtree.txt index 774fde204..120582d09 100644 --- a/grammar/testData/diagnostics/tailRecOverridden.antlrtree.txt +++ b/grammar/testData/diagnostics/tailRecOverridden.antlrtree.txt @@ -1,4 +1,4 @@ -File: tailRecOverridden.kt - a9f0f97dac66c4c32c9f85d681569bbc +File: tailRecOverridden.kt - 191bc06d8c36910627ad54cca8f4dddd NL("\n") packageHeader importList @@ -781,5 +781,5 @@ File: tailRecOverridden.kt - a9f0f97dac66c4c32c9f85d681569bbc NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/tailRecSingleton.antlrtree.txt b/grammar/testData/diagnostics/tailRecSingleton.antlrtree.txt new file mode 100644 index 000000000..929bad2c1 --- /dev/null +++ b/grammar/testData/diagnostics/tailRecSingleton.antlrtree.txt @@ -0,0 +1,639 @@ +File: tailRecSingleton.kt - 323ab0d9098ffde6e67f806a26cd8dfc + packageHeader + importList + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Foo") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("bar1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("bar1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("bar2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("bar3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("bar4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Companion") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("bar4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("E") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("rec") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("rec") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("rec") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("rec") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + COMMA(",") + NL("\n") + enumEntry + simpleIdentifier + Identifier("C") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("rec") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("rec") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + SEMICOLON(";") + NL("\n") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") + simpleIdentifier + Identifier("rec") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/tailRecWithDispatchReceiver.antlrtree.txt b/grammar/testData/diagnostics/tailRecWithDispatchReceiver.antlrtree.txt new file mode 100644 index 000000000..c3514041d --- /dev/null +++ b/grammar/testData/diagnostics/tailRecWithDispatchReceiver.antlrtree.txt @@ -0,0 +1,308 @@ +File: tailRecWithDispatchReceiver.kt - fa237656d272a5bb5cbebfe8d4648673 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + simpleIdentifier + Identifier("foo4") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/tailRecWithExtensionReceiver.antlrtree.txt b/grammar/testData/diagnostics/tailRecWithExtensionReceiver.antlrtree.txt new file mode 100644 index 000000000..14e9aaabf --- /dev/null +++ b/grammar/testData/diagnostics/tailRecWithExtensionReceiver.antlrtree.txt @@ -0,0 +1,234 @@ +File: tailRecWithExtensionReceiver.kt - 52c52202dd70f02e49f0fe080d5a1286 + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("foo1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("foo2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + TAILREC("tailrec") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + DOT(".") + simpleIdentifier + Identifier("foo3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("with") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + RPAREN(")") + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/tailRecursionComplex.antlrtree.txt b/grammar/testData/diagnostics/tailRecursionComplex.antlrtree.txt index 9c1ac6bef..aff020a12 100644 --- a/grammar/testData/diagnostics/tailRecursionComplex.antlrtree.txt +++ b/grammar/testData/diagnostics/tailRecursionComplex.antlrtree.txt @@ -1,4 +1,5 @@ -File: tailRecursionComplex.kt - c9c5b9f97acf37a96fd3f08af7cb97cf +File: tailRecursionComplex.kt - 4830c81dbce79520bb0057b835ea1ffe + NL("\n") packageHeader importList topLevelObject @@ -595,5 +596,5 @@ File: tailRecursionComplex.kt - c9c5b9f97acf37a96fd3f08af7cb97cf NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/basic.antlrtree.txt b/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/basic.antlrtree.txt index 1ca169324..9d6c15818 100644 --- a/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/basic.antlrtree.txt +++ b/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/basic.antlrtree.txt @@ -1,4 +1,5 @@ -File: basic.kt - 5498e879cf84418df9da05db00beae17 +File: basic.kt - 3919bc1b0fdf2e702eb929891e4dcc25 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/delegation.antlrtree.txt b/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/delegation.antlrtree.txt index f3e65f8fb..3a8c7abe0 100644 --- a/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/delegation.antlrtree.txt +++ b/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/delegation.antlrtree.txt @@ -1,4 +1,5 @@ -File: delegation.kt - a9e414a057428d60b61f4f3dce08ef19 +File: delegation.kt - 249bdf77eb67841f6092be962e027fa3 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/derivedInterfacesWithKotlinFun.antlrtree.txt b/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/derivedInterfacesWithKotlinFun.antlrtree.txt index 4a3ef81d7..e5694916c 100644 --- a/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/derivedInterfacesWithKotlinFun.antlrtree.txt +++ b/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/derivedInterfacesWithKotlinFun.antlrtree.txt @@ -1,4 +1,5 @@ -File: derivedInterfacesWithKotlinFun.kt - 919c9b57d7ae39c6c02215e29c8340d8 +File: derivedInterfacesWithKotlinFun.kt - 3fc4a5bb316dc8ea8cd4a5fb9ebf9e4d + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/fillInStackTrace.antlrtree.txt b/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/fillInStackTrace.antlrtree.txt index e62897f63..1b7255fee 100644 --- a/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/fillInStackTrace.antlrtree.txt +++ b/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/fillInStackTrace.antlrtree.txt @@ -78,6 +78,4 @@ File: fillInStackTrace.kt - e39aeec09be187c10ff41a4b39615e9e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/hashMapGetOrDefault.antlrtree.txt b/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/hashMapGetOrDefault.antlrtree.txt index 115b00c98..bdc4ccbe5 100644 --- a/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/hashMapGetOrDefault.antlrtree.txt +++ b/grammar/testData/diagnostics/targetedBuiltIns/backwardCompatibility/hashMapGetOrDefault.antlrtree.txt @@ -120,6 +120,4 @@ File: hashMapGetOrDefault.kt - b4a71ed57c34740a13a2b0cc403baab7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/targetedBuiltIns/concurrentMapRemove.antlrtree.txt b/grammar/testData/diagnostics/targetedBuiltIns/concurrentMapRemove.antlrtree.txt index c2b1c41ae..53f99afcc 100644 --- a/grammar/testData/diagnostics/targetedBuiltIns/concurrentMapRemove.antlrtree.txt +++ b/grammar/testData/diagnostics/targetedBuiltIns/concurrentMapRemove.antlrtree.txt @@ -1,5 +1,4 @@ -File: concurrentMapRemove.kt - 35563bdb4e924d8d77509de79af00d31 - NL("\n") +File: concurrentMapRemove.kt - 5497f02595cfd39a47a50be06f787afc NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/targetedBuiltIns/forEachRemainingNullability.antlrtree.txt b/grammar/testData/diagnostics/targetedBuiltIns/forEachRemainingNullability.antlrtree.txt index 4e9f34e78..fbbc6f6cf 100644 --- a/grammar/testData/diagnostics/targetedBuiltIns/forEachRemainingNullability.antlrtree.txt +++ b/grammar/testData/diagnostics/targetedBuiltIns/forEachRemainingNullability.antlrtree.txt @@ -1,4 +1,5 @@ -File: forEachRemainingNullability.kt - 1481bb8b7138cb41745fe5d9cba515c7 +File: forEachRemainingNullability.kt - b7a94bdd480e67fa1404323780e6a701 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/targetedBuiltIns/mutableMapRemove.antlrtree.txt b/grammar/testData/diagnostics/targetedBuiltIns/mutableMapRemove.antlrtree.txt index 48869a654..9750305a2 100644 --- a/grammar/testData/diagnostics/targetedBuiltIns/mutableMapRemove.antlrtree.txt +++ b/grammar/testData/diagnostics/targetedBuiltIns/mutableMapRemove.antlrtree.txt @@ -1,5 +1,4 @@ -File: mutableMapRemove.kt - b2546044ee59dce3653af7ff5728b664 - NL("\n") +File: mutableMapRemove.kt - a95a5253a41e4cffe51df3b76f671851 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/testWithModifiedMockJdk/newStringMethods.antlrtree.txt b/grammar/testData/diagnostics/testWithModifiedMockJdk/newStringMethods.antlrtree.txt index 85bd33df7..d8ca44e9b 100644 --- a/grammar/testData/diagnostics/testWithModifiedMockJdk/newStringMethods.antlrtree.txt +++ b/grammar/testData/diagnostics/testWithModifiedMockJdk/newStringMethods.antlrtree.txt @@ -1,4 +1,4 @@ -File: newStringMethods.kt - 0d9abe77a2e1cb2850df748374cf96cb +File: newStringMethods.kt - 3f27f203529d6eda5c57060989679a24 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/testsWithExplicitApi/annotations.antlrtree.txt b/grammar/testData/diagnostics/testsWithExplicitApi/annotations.antlrtree.txt index d922c24aa..d91cd8e3b 100644 --- a/grammar/testData/diagnostics/testsWithExplicitApi/annotations.antlrtree.txt +++ b/grammar/testData/diagnostics/testsWithExplicitApi/annotations.antlrtree.txt @@ -1,4 +1,5 @@ -File: annotations.kt - 2ce0dffed9af6ed8d03cf8bdf6ccef1d +File: annotations.kt - a1a04b31736a07c6b4ad99498067336a + NL("\n") NL("\n") NL("\n") packageHeader @@ -369,6 +370,4 @@ File: annotations.kt - 2ce0dffed9af6ed8d03cf8bdf6ccef1d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/testsWithExplicitApi/classes.antlrtree.txt b/grammar/testData/diagnostics/testsWithExplicitApi/classes.antlrtree.txt index ae40df367..8d3668da9 100644 --- a/grammar/testData/diagnostics/testsWithExplicitApi/classes.antlrtree.txt +++ b/grammar/testData/diagnostics/testsWithExplicitApi/classes.antlrtree.txt @@ -1,4 +1,5 @@ -File: classes.kt - cdcaea1983f9d0334553ab926669a5b8 +File: classes.kt - 700fdbef85b4552c916453109216feeb + NL("\n") NL("\n") NL("\n") NL("\n") @@ -452,5 +453,5 @@ File: classes.kt - cdcaea1983f9d0334553ab926669a5b8 Identifier("B") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/testsWithExplicitApi/companionObject.antlrtree.txt b/grammar/testData/diagnostics/testsWithExplicitApi/companionObject.antlrtree.txt index 1cb66bd48..e23fd085d 100644 --- a/grammar/testData/diagnostics/testsWithExplicitApi/companionObject.antlrtree.txt +++ b/grammar/testData/diagnostics/testsWithExplicitApi/companionObject.antlrtree.txt @@ -1,4 +1,5 @@ -File: companionObject.kt - b98310dfd86d16bfdbb02bd7773717a5 +File: companionObject.kt - 91934c92ef5512e869fd8186a55e400e + NL("\n") NL("\n") NL("\n") packageHeader @@ -146,6 +147,4 @@ File: companionObject.kt - b98310dfd86d16bfdbb02bd7773717a5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/testsWithExplicitApi/constructors.antlrtree.txt b/grammar/testData/diagnostics/testsWithExplicitApi/constructors.antlrtree.txt index d6d86eb1e..664cc9b1f 100644 --- a/grammar/testData/diagnostics/testsWithExplicitApi/constructors.antlrtree.txt +++ b/grammar/testData/diagnostics/testsWithExplicitApi/constructors.antlrtree.txt @@ -1,4 +1,5 @@ -File: constructors.kt - 00496a82bf554fa5a5489b5f7ee33fe3 +File: constructors.kt - 331c9b2622a7a77b9f4056771b7fe3a9 + NL("\n") NL("\n") NL("\n") packageHeader @@ -157,6 +158,4 @@ File: constructors.kt - 00496a82bf554fa5a5489b5f7ee33fe3 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/testsWithExplicitApi/inlineClasses.antlrtree.txt b/grammar/testData/diagnostics/testsWithExplicitApi/inlineClasses.antlrtree.txt index 8ee30bbb9..92ee9a60d 100644 --- a/grammar/testData/diagnostics/testsWithExplicitApi/inlineClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/testsWithExplicitApi/inlineClasses.antlrtree.txt @@ -1,4 +1,5 @@ -File: inlineClasses.kt - 8de6083ab953b7bcfd6010e00f2aea97 +File: inlineClasses.kt - ce5cb5d9a27f14f8259c4e6c8177460a + NL("\n") NL("\n") NL("\n") NL("\n") @@ -126,5 +127,5 @@ File: inlineClasses.kt - 8de6083ab953b7bcfd6010e00f2aea97 Identifier("Int") RPAREN(")") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/testsWithExplicitApi/interfaces.antlrtree.txt b/grammar/testData/diagnostics/testsWithExplicitApi/interfaces.antlrtree.txt index df79e1fe0..4d9faccc3 100644 --- a/grammar/testData/diagnostics/testsWithExplicitApi/interfaces.antlrtree.txt +++ b/grammar/testData/diagnostics/testsWithExplicitApi/interfaces.antlrtree.txt @@ -1,4 +1,5 @@ -File: interfaces.kt - 2cf0015350f4dac09dc0aedcae7e6232 +File: interfaces.kt - 32bb0c8cd2fa5c95f0b4bf94529b5554 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/testsWithExplicitApi/localFunctions.antlrtree.txt b/grammar/testData/diagnostics/testsWithExplicitApi/localFunctions.antlrtree.txt new file mode 100644 index 000000000..07fa7c7c8 --- /dev/null +++ b/grammar/testData/diagnostics/testsWithExplicitApi/localFunctions.antlrtree.txt @@ -0,0 +1,336 @@ +File: localFunctions.kt - ae4d2c4cf4757c32f22c0139b6bc79ec + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("run") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("run") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("localFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("localFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("run") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + callableReference + COLONCOLON("::") + simpleIdentifier + Identifier("localFun") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("localFun2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + anonymousFunction + FUN("fun") + parametersWithOptionalType + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("run") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("localFun2") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("lambda") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("run") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lambda") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithExplicitApi/mustBeEffectivelyPublic.antlrtree.txt b/grammar/testData/diagnostics/testsWithExplicitApi/mustBeEffectivelyPublic.antlrtree.txt index 96a7834fb..037ff2f10 100644 --- a/grammar/testData/diagnostics/testsWithExplicitApi/mustBeEffectivelyPublic.antlrtree.txt +++ b/grammar/testData/diagnostics/testsWithExplicitApi/mustBeEffectivelyPublic.antlrtree.txt @@ -300,6 +300,4 @@ File: mustBeEffectivelyPublic.kt - 20ff2f375d9d2c2e9b5f8f6a3e333284 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/testsWithExplicitApi/noErrorsForMemebersInsideInternalDeclaration.antlrtree.txt b/grammar/testData/diagnostics/testsWithExplicitApi/noErrorsForMemebersInsideInternalDeclaration.antlrtree.txt new file mode 100644 index 000000000..f9181f297 --- /dev/null +++ b/grammar/testData/diagnostics/testsWithExplicitApi/noErrorsForMemebersInsideInternalDeclaration.antlrtree.txt @@ -0,0 +1,284 @@ +File: noErrorsForMemebersInsideInternalDeclaration.kt - 58e0df12cb221f20662571bc9c4c459c + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("PublishedApi") + NL("\n") + modifier + visibilityModifier + INTERNAL("internal") + CLASS("class") + simpleIdentifier + Identifier("SomeClass") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("somethingPrivate") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("123") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("somethingPublic") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("456") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("789") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("PublishedApi") + NL("\n") + modifier + visibilityModifier + INTERNAL("internal") + CLASS("class") + simpleIdentifier + Identifier("Outer") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Inner") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("somethingPrivate") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("123") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PUBLIC("public") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("somethingPublic") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("456") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("789") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithExplicitApi/properties.antlrtree.txt b/grammar/testData/diagnostics/testsWithExplicitApi/properties.antlrtree.txt index 921ea39a6..430405254 100644 --- a/grammar/testData/diagnostics/testsWithExplicitApi/properties.antlrtree.txt +++ b/grammar/testData/diagnostics/testsWithExplicitApi/properties.antlrtree.txt @@ -1,4 +1,5 @@ -File: properties.kt - ce42c4f1bb29ceaacfdf81f647e4e2fa +File: properties.kt - 5a280bbf7b92a7f2ff3bcd6fda83c578 + NL("\n") NL("\n") NL("\n") packageHeader @@ -444,6 +445,4 @@ File: properties.kt - ce42c4f1bb29ceaacfdf81f647e4e2fa semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/testsWithExplicitApi/publishedApi.antlrtree.txt b/grammar/testData/diagnostics/testsWithExplicitApi/publishedApi.antlrtree.txt index 9deb0a023..e51586d96 100644 --- a/grammar/testData/diagnostics/testsWithExplicitApi/publishedApi.antlrtree.txt +++ b/grammar/testData/diagnostics/testsWithExplicitApi/publishedApi.antlrtree.txt @@ -1,4 +1,5 @@ -File: publishedApi.kt - af96940945a1a59b0c7ec01464d1b2c0 +File: publishedApi.kt - 0b1ddbbe52ac8b3655c2f29c0008d2cd + NL("\n") NL("\n") NL("\n") NL("\n") @@ -63,6 +64,4 @@ File: publishedApi.kt - af96940945a1a59b0c7ec01464d1b2c0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/testsWithExplicitApi/toplevel.antlrtree.txt b/grammar/testData/diagnostics/testsWithExplicitApi/toplevel.antlrtree.txt index 0dea9355a..605d69b61 100644 --- a/grammar/testData/diagnostics/testsWithExplicitApi/toplevel.antlrtree.txt +++ b/grammar/testData/diagnostics/testsWithExplicitApi/toplevel.antlrtree.txt @@ -1,4 +1,5 @@ -File: toplevel.kt - 89a5f5f377bff6fd2bc886cc4d99aa79 +File: toplevel.kt - d4a1725c2845c1803a9d99898527fb3c + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/diagnostics.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/diagnostics.antlrtree.txt new file mode 100644 index 000000000..9f5f0f82f --- /dev/null +++ b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/diagnostics.antlrtree.txt @@ -0,0 +1,571 @@ +File: diagnostics.kt - 96f988ddc8e4823100f925df2b12b326 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("A0") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("A1") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("A2") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("A3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("A4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAR("var") + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("A5") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + parameterModifier + VARARG("vararg") + VAL("val") + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A6") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A7") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("A8") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("A9") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("X") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + SEMICOLON(";") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("A10") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + modifiers + modifier + parameterModifier + VARARG("vararg") + VAL("val") + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Local") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Outer") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Inner") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("A11") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + parameterModifier + VARARG("vararg") + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/disabledFeature.main.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/disabledFeature.main.antlrtree.txt new file mode 100644 index 000000000..5de06f6f6 --- /dev/null +++ b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/disabledFeature.main.antlrtree.txt @@ -0,0 +1,282 @@ +File: disabledFeature.main.kt - 1eb7b26a2ba2287e1676976bb5416574 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("MyRec") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + modifiers + modifier + parameterModifier + VARARG("vararg") + VAL("val") + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Double") + COMMA(",") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("jr") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("JRecord") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("JRecord") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("jr") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("jr") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("y") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("jr") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("jr") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("y") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/irrelevantFields.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/irrelevantFields.antlrtree.txt new file mode 100644 index 000000000..569158efd --- /dev/null +++ b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/irrelevantFields.antlrtree.txt @@ -0,0 +1,540 @@ +File: irrelevantFields.kt - f1bfa8d3568d0cded2756890b53f4bed + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("MyRec1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + explicitDelegation + userType + simpleUserType + simpleIdentifier + Identifier("I") + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("MyRec2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("MyRec3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + FIELD("field") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + assignment + directlyAssignableExpression + simpleIdentifier + Identifier("y") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("MyRec4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + propertyDelegate + BY("by") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("lazy") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("MyRec5") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("name") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("w") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("name") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/jvmRecordDescriptorStructure.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/jvmRecordDescriptorStructure.antlrtree.txt new file mode 100644 index 000000000..d36902a1d --- /dev/null +++ b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/jvmRecordDescriptorStructure.antlrtree.txt @@ -0,0 +1,160 @@ +File: jvmRecordDescriptorStructure.kt - fbb4ef7df617575b479c319e6fa0ce00 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("BasicRecord") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("BasicDataRecord") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("VarInConstructor") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAR("var") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + CLASS("class") + simpleIdentifier + Identifier("BasicRecordWithSuperClass") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Record") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/simpleRecords.main.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/simpleRecords.main.antlrtree.txt new file mode 100644 index 000000000..4365c4ecf --- /dev/null +++ b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/simpleRecords.main.antlrtree.txt @@ -0,0 +1,219 @@ +File: simpleRecords.main.kt - 4bc05bbae87e4687862c8ed4c73b01f7 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("mr") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MyRecord") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("MyRecord") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mr") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mr") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("y") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mr") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("mr") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("y") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava17/jvmRecord/supertypesCheck.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/supertypesCheck.antlrtree.txt new file mode 100644 index 000000000..f94176889 --- /dev/null +++ b/grammar/testData/diagnostics/testsWithJava17/jvmRecord/supertypesCheck.antlrtree.txt @@ -0,0 +1,404 @@ +File: supertypesCheck.kt - 6f020761de74797a74f36cb74f1140fa + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Abstract") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("A1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Abstract") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("A2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Any") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("A3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Record") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("A4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Record") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("JvmRecord") + NL("\n") + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("A5") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("A6") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Record") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("A7") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("java") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("lang") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Record") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava17/sealedClasses/javaSealedClassExhaustiveness.main.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/sealedClasses/javaSealedClassExhaustiveness.main.antlrtree.txt new file mode 100644 index 000000000..f1b1c54ed --- /dev/null +++ b/grammar/testData/diagnostics/testsWithJava17/sealedClasses/javaSealedClassExhaustiveness.main.antlrtree.txt @@ -0,0 +1,607 @@ +File: javaSealedClassExhaustiveness.main.kt - a4fe7f4f9519e31b45f253716ee73ca8 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_ok_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("base") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("base") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_ok_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("base") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("base") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("C") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("D") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_error_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("base") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("base") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_error_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("base") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("base") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("C") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava17/sealedClasses/javaSealedInterfaceExhaustiveness.main.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/sealedClasses/javaSealedInterfaceExhaustiveness.main.antlrtree.txt new file mode 100644 index 000000000..71a21e923 --- /dev/null +++ b/grammar/testData/diagnostics/testsWithJava17/sealedClasses/javaSealedInterfaceExhaustiveness.main.antlrtree.txt @@ -0,0 +1,1110 @@ +File: javaSealedInterfaceExhaustiveness.main.kt - 5ca4a4ba8d2d5b5f3ee44bb1ab712eae + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_ok_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("base") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("base") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_ok_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("base") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("base") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("C") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("D") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("First") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Second") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_error_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("base") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("base") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_error_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("base") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("base") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("C") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("D") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Second") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_error_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("base") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("base") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("C") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("First") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("E") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Second") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("5") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava17/sealedClasses/kotlinInheritsJavaClass.B.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/sealedClasses/kotlinInheritsJavaClass.B.antlrtree.txt new file mode 100644 index 000000000..2595ebc26 --- /dev/null +++ b/grammar/testData/diagnostics/testsWithJava17/sealedClasses/kotlinInheritsJavaClass.B.antlrtree.txt @@ -0,0 +1,24 @@ +File: kotlinInheritsJavaClass.B.kt - 22587166429fb86e3de9ebd6605a4e04 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/testsWithJava17/sealedClasses/kotlinInheritsJavaInterface.B.antlrtree.txt b/grammar/testData/diagnostics/testsWithJava17/sealedClasses/kotlinInheritsJavaInterface.B.antlrtree.txt new file mode 100644 index 000000000..c80e48a3c --- /dev/null +++ b/grammar/testData/diagnostics/testsWithJava17/sealedClasses/kotlinInheritsJavaInterface.B.antlrtree.txt @@ -0,0 +1,20 @@ +File: kotlinInheritsJavaInterface.B.kt - f8b45e58bbb7796ff34ee9c5e1069542 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Base") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/QualifiedThis.f.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/QualifiedThis.f.antlrtree.txt index a3cf41dbc..88f97bd14 100644 --- a/grammar/testData/diagnostics/thisAndSuper/QualifiedThis.f.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/QualifiedThis.f.antlrtree.txt @@ -1,4 +1,4 @@ -File: QualifiedThis.f.kt - 3c4bf09fb064599f6206f682e257501b +File: QualifiedThis.f.kt - d4f15b342b6761e98304bf18e13d090c packageHeader importList topLevelObject @@ -213,5 +213,5 @@ File: QualifiedThis.f.kt - 3c4bf09fb064599f6206f682e257501b NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/ambigousLabelOnThis.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/ambigousLabelOnThis.antlrtree.txt index 33bd40022..cdee507ee 100644 --- a/grammar/testData/diagnostics/thisAndSuper/ambigousLabelOnThis.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/ambigousLabelOnThis.antlrtree.txt @@ -57,6 +57,4 @@ File: ambigousLabelOnThis.kt - 7b10893419c2e5df7b962c5b9a282751 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/genericQualifiedSuperOverridden.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/genericQualifiedSuperOverridden.antlrtree.txt index c7ae9ef78..67cc737f8 100644 --- a/grammar/testData/diagnostics/thisAndSuper/genericQualifiedSuperOverridden.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/genericQualifiedSuperOverridden.antlrtree.txt @@ -1,4 +1,5 @@ -File: genericQualifiedSuperOverridden.kt - ad19c831b08da45b4d21995d8d950cd1 +File: genericQualifiedSuperOverridden.kt - fb90a84d862d1ea8584c3f4218afe46b + NL("\n") NL("\n") packageHeader importList @@ -391,6 +392,4 @@ File: genericQualifiedSuperOverridden.kt - ad19c831b08da45b4d21995d8d950cd1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/implicitInvokeOnSuper.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/implicitInvokeOnSuper.antlrtree.txt index 40cc1d3b6..cc227fb74 100644 --- a/grammar/testData/diagnostics/thisAndSuper/implicitInvokeOnSuper.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/implicitInvokeOnSuper.antlrtree.txt @@ -265,6 +265,4 @@ File: implicitInvokeOnSuper.kt - da892d9673a921ce7fbc414e15a03732 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/notAccessibleSuperInTrait.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/notAccessibleSuperInTrait.antlrtree.txt index a1b90f525..6454c2c42 100644 --- a/grammar/testData/diagnostics/thisAndSuper/notAccessibleSuperInTrait.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/notAccessibleSuperInTrait.antlrtree.txt @@ -121,6 +121,4 @@ File: notAccessibleSuperInTrait.kt - 808d565536a290d3d834f8e5d4e7e557 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/qualifiedSuperOverridden.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/qualifiedSuperOverridden.antlrtree.txt index 07d9df89d..20a3eaf4c 100644 --- a/grammar/testData/diagnostics/thisAndSuper/qualifiedSuperOverridden.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/qualifiedSuperOverridden.antlrtree.txt @@ -1,4 +1,5 @@ -File: qualifiedSuperOverridden.kt - 24a52ab5a02c8172a735d2e717cb5a32 +File: qualifiedSuperOverridden.kt - dbbb2f3efb7dcc7d7f0bf417f7dfee1a + NL("\n") NL("\n") packageHeader importList @@ -501,6 +502,4 @@ File: qualifiedSuperOverridden.kt - 24a52ab5a02c8172a735d2e717cb5a32 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/superInExtensionFunction.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/superInExtensionFunction.antlrtree.txt index a317f176d..7701b8d6a 100644 --- a/grammar/testData/diagnostics/thisAndSuper/superInExtensionFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/superInExtensionFunction.antlrtree.txt @@ -129,6 +129,4 @@ File: superInExtensionFunction.kt - c064da481f8dfa074c4c8fa636a721f3 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/superInToplevelFunction.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/superInToplevelFunction.antlrtree.txt index bf0194256..5468e5ca7 100644 --- a/grammar/testData/diagnostics/thisAndSuper/superInToplevelFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/superInToplevelFunction.antlrtree.txt @@ -109,6 +109,4 @@ File: superInToplevelFunction.kt - f69dfb91c057c9b96d784630ec5dd8dc semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/superIsNotAnExpression.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/superIsNotAnExpression.antlrtree.txt index c1d540b69..dd4c59c9f 100644 --- a/grammar/testData/diagnostics/thisAndSuper/superIsNotAnExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/superIsNotAnExpression.antlrtree.txt @@ -1,4 +1,5 @@ -File: superIsNotAnExpression.kt - 31d28a25d03a0e5f44b9a712f2ab8999 +File: superIsNotAnExpression.kt - b8011ca215a867b0170afc5142bbc300 + NL("\n") packageHeader importList topLevelObject @@ -269,5 +270,5 @@ File: superIsNotAnExpression.kt - 31d28a25d03a0e5f44b9a712f2ab8999 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/thisInFunctionLiterals.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/thisInFunctionLiterals.antlrtree.txt index 846d17ab3..1fe378e26 100644 --- a/grammar/testData/diagnostics/thisAndSuper/thisInFunctionLiterals.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/thisInFunctionLiterals.antlrtree.txt @@ -1,4 +1,4 @@ -File: thisInFunctionLiterals.kt - f9fef2d5600053ced7f4f444e43f4a34 +File: thisInFunctionLiterals.kt - 3e83eacd699d077a86267b44691b86a9 NL("\n") NL("\n") packageHeader @@ -885,5 +885,5 @@ File: thisInFunctionLiterals.kt - f9fef2d5600053ced7f4f444e43f4a34 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/thisInInnerClasses.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/thisInInnerClasses.antlrtree.txt index 8e164d9da..198064bda 100644 --- a/grammar/testData/diagnostics/thisAndSuper/thisInInnerClasses.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/thisInInnerClasses.antlrtree.txt @@ -329,6 +329,4 @@ File: thisInInnerClasses.kt - 5b7b6a4dbfd09b71dda458b68eb62031 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/thisInPropertyInitializer.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/thisInPropertyInitializer.antlrtree.txt index b8d018a31..87b9e479f 100644 --- a/grammar/testData/diagnostics/thisAndSuper/thisInPropertyInitializer.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/thisInPropertyInitializer.antlrtree.txt @@ -120,6 +120,4 @@ File: thisInPropertyInitializer.kt - 62914b10996bb3c7c5093b3806102b36 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/thisInToplevelFunction.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/thisInToplevelFunction.antlrtree.txt index d21eb8d73..8d0fc21d8 100644 --- a/grammar/testData/diagnostics/thisAndSuper/thisInToplevelFunction.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/thisInToplevelFunction.antlrtree.txt @@ -65,6 +65,4 @@ File: thisInToplevelFunction.kt - bb0f6e375c8ae977b4987d31b4bedbde semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.antlrtree.txt index aa229f0fe..c11d3c89e 100644 --- a/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.antlrtree.txt @@ -1,5 +1,4 @@ -File: ambiguousSuperWithGenerics.kt - 28ab032ca8b6729f52ae8ead5996241b - NL("\n") +File: ambiguousSuperWithGenerics.kt - 4ce5d345af3e08dc8b94f774634debaf packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.antlrtree.txt index b3b3c22e2..c73f0856a 100644 --- a/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.antlrtree.txt @@ -1,5 +1,4 @@ -File: unqualifiedSuperWithCallableProperty.kt - 3a94825e3eccf142afb7f279804ad7a5 - NL("\n") +File: unqualifiedSuperWithCallableProperty.kt - 682731bd89618e3217657a4a84b7d4a8 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithInnerClass.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithInnerClass.antlrtree.txt index 9652b9e34..3993676fe 100644 --- a/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithInnerClass.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithInnerClass.antlrtree.txt @@ -1,4 +1,4 @@ -File: unqualifiedSuperWithInnerClass.kt - 628e0b08dce0ebb2013c45c0456a987f +File: unqualifiedSuperWithInnerClass.kt - 2c9cdb5d04c4dbf485d6b16a1344e660 NL("\n") packageHeader importList @@ -446,5 +446,5 @@ File: unqualifiedSuperWithInnerClass.kt - 628e0b08dce0ebb2013c45c0456a987f NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithLocalClass.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithLocalClass.antlrtree.txt index c63475d6b..b5a780a45 100644 --- a/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithLocalClass.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithLocalClass.antlrtree.txt @@ -359,6 +359,4 @@ File: unqualifiedSuperWithLocalClass.kt - de3aef70d4b2c6c1510efba2423c8ced NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/withMethodOfAnyOverridenInInterface.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/withMethodOfAnyOverridenInInterface.antlrtree.txt index 896055ba4..650af8039 100644 --- a/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/withMethodOfAnyOverridenInInterface.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/withMethodOfAnyOverridenInInterface.antlrtree.txt @@ -111,6 +111,4 @@ File: withMethodOfAnyOverridenInInterface.kt - 9680eebb00d74d3f2be5919625434834 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/withMethodOverriddenInAnotherSupertype.antlrtree.txt b/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/withMethodOverriddenInAnotherSupertype.antlrtree.txt index 1aa9b739a..3d642523a 100644 --- a/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/withMethodOverriddenInAnotherSupertype.antlrtree.txt +++ b/grammar/testData/diagnostics/thisAndSuper/unqualifiedSuper/withMethodOverriddenInAnotherSupertype.antlrtree.txt @@ -327,6 +327,4 @@ File: withMethodOverriddenInAnotherSupertype.kt - 2bc7b9707a70dfeb958e14a91af6a7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/traitWithRequired/traitSupertypeList.antlrtree.txt b/grammar/testData/diagnostics/traitWithRequired/traitSupertypeList.antlrtree.txt index 6a3134db1..3c54912a6 100644 --- a/grammar/testData/diagnostics/traitWithRequired/traitSupertypeList.antlrtree.txt +++ b/grammar/testData/diagnostics/traitWithRequired/traitSupertypeList.antlrtree.txt @@ -181,6 +181,4 @@ File: traitSupertypeList.kt - 5decc859d21e28583950b0a944179507 LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/cannotHaveManyClassUpperBounds.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/cannotHaveManyClassUpperBounds.antlrtree.txt index 132005c05..5738832fa 100644 --- a/grammar/testData/diagnostics/typeParameters/cannotHaveManyClassUpperBounds.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/cannotHaveManyClassUpperBounds.antlrtree.txt @@ -1,4 +1,5 @@ -File: cannotHaveManyClassUpperBounds.kt - ddfca83b1b9927e8cd39bad2e257c671 +File: cannotHaveManyClassUpperBounds.kt - a69303a3698c1d368acd369224c3fecc + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/typeParameters/deprecatedSyntax.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/deprecatedSyntax.antlrtree.txt index 127b720f5..da5094f57 100644 --- a/grammar/testData/diagnostics/typeParameters/deprecatedSyntax.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/deprecatedSyntax.antlrtree.txt @@ -1,4 +1,5 @@ -File: deprecatedSyntax.kt - 08600d9533436253861746d996886200 (WITH_ERRORS) +File: deprecatedSyntax.kt - e16206c2ab14021dceb4fc143b9de3f5 (WITH_ERRORS) + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/typeParameters/destructuringDeclarations.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/destructuringDeclarations.antlrtree.txt new file mode 100644 index 000000000..c9417de37 --- /dev/null +++ b/grammar/testData/diagnostics/typeParameters/destructuringDeclarations.antlrtree.txt @@ -0,0 +1,342 @@ +File: destructuringDeclarations.kt - a8ecb2924ba0155f7ce182d7fe6f8b62 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("block") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("R") + RANGLE(">") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("R") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + lambdaParameters + lambdaParameter + multiVariableDeclaration + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("i") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + ARROW("->") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("i") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + DATA("data") + CLASS("class") + simpleIdentifier + Identifier("C") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("S") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + multiVariableDeclaration + LPAREN("(") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("S") + RPAREN(")") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/dontIntersectUpperBoundWithExpectedType.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/dontIntersectUpperBoundWithExpectedType.antlrtree.txt index e1f937941..3d64e4429 100644 --- a/grammar/testData/diagnostics/typeParameters/dontIntersectUpperBoundWithExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/dontIntersectUpperBoundWithExpectedType.antlrtree.txt @@ -261,6 +261,4 @@ File: dontIntersectUpperBoundWithExpectedType.kt - cca4bb119c71f1fd64ad1ddda818e LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/extFunctionTypeAsUpperBound.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/extFunctionTypeAsUpperBound.antlrtree.txt index cf9feaadf..0647da676 100644 --- a/grammar/testData/diagnostics/typeParameters/extFunctionTypeAsUpperBound.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/extFunctionTypeAsUpperBound.antlrtree.txt @@ -1,4 +1,5 @@ -File: extFunctionTypeAsUpperBound.kt - 6daed4ab64d7bfb010afe2565c0f085d +File: extFunctionTypeAsUpperBound.kt - 939ee883bf570bc0a9df7e56b58fa67a + NL("\n") packageHeader importList topLevelObject @@ -255,6 +256,4 @@ File: extFunctionTypeAsUpperBound.kt - 6daed4ab64d7bfb010afe2565c0f085d simpleIdentifier Identifier("Unit") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/functionTypeAsUpperBound.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/functionTypeAsUpperBound.antlrtree.txt index 6fdb42dd2..f9e2d5051 100644 --- a/grammar/testData/diagnostics/typeParameters/functionTypeAsUpperBound.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/functionTypeAsUpperBound.antlrtree.txt @@ -1,4 +1,5 @@ -File: functionTypeAsUpperBound.kt - cdc9557459855bef2ee5f9be7861365e +File: functionTypeAsUpperBound.kt - 1acad72d2d2653375ebc33fe34c54f8d + NL("\n") packageHeader importList topLevelObject @@ -308,6 +309,4 @@ File: functionTypeAsUpperBound.kt - cdc9557459855bef2ee5f9be7861365e simpleIdentifier Identifier("Unit") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/implicitNothingInReturnPosition.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/implicitNothingInReturnPosition.antlrtree.txt index fca2aeaf3..29c55bf7c 100644 --- a/grammar/testData/diagnostics/typeParameters/implicitNothingInReturnPosition.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/implicitNothingInReturnPosition.antlrtree.txt @@ -1,5 +1,4 @@ -File: implicitNothingInReturnPosition.kt - 75019e851ab5d1c73609e58bc41f0f53 - NL("\n") +File: implicitNothingInReturnPosition.kt - 41be40169e5c1e72f8609621edbcbf04 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/typeParameters/implicitNothingOfJavaCallAgainstNotNothingExpectedType.main.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/implicitNothingOfJavaCallAgainstNotNothingExpectedType.main.antlrtree.txt index 6751479db..e9eaf2040 100644 --- a/grammar/testData/diagnostics/typeParameters/implicitNothingOfJavaCallAgainstNotNothingExpectedType.main.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/implicitNothingOfJavaCallAgainstNotNothingExpectedType.main.antlrtree.txt @@ -553,6 +553,4 @@ File: implicitNothingOfJavaCallAgainstNotNothingExpectedType.main.kt - 0042f119c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/implicitNothingOnDelegates.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/implicitNothingOnDelegates.antlrtree.txt index 3b6768585..f2a8126ae 100644 --- a/grammar/testData/diagnostics/typeParameters/implicitNothingOnDelegates.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/implicitNothingOnDelegates.antlrtree.txt @@ -1,5 +1,4 @@ -File: implicitNothingOnDelegates.kt - bddf5bfce6c903f1c79133bb2ed57825 - NL("\n") +File: implicitNothingOnDelegates.kt - d3b5e524e328ee387c7a60405d4331e5 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/typeParameters/kt42042.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/kt42042.antlrtree.txt index ded22840e..a8966d80e 100644 --- a/grammar/testData/diagnostics/typeParameters/kt42042.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/kt42042.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt42042.kt - 9f357fd6326b716b2a2073e275ef10a3 +File: kt42042.kt - 81338f82d831f8b5ff555cfd2fe7b001 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/typeParameters/kt42042Error.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/kt42042Error.antlrtree.txt new file mode 100644 index 000000000..8727da911 --- /dev/null +++ b/grammar/testData/diagnostics/typeParameters/kt42042Error.antlrtree.txt @@ -0,0 +1,358 @@ +File: kt42042Error.kt - 7e7d34d90bccd53aa8ed6dbd89236087 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("Subtype") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A1") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B1") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + FUN("fun") + simpleIdentifier + Identifier("cast") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A1") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B1") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Trivial") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B2") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B2") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Subtype") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A2") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B2") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("cast") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A2") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B2") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("B") + RANGLE(">") + simpleIdentifier + Identifier("unsafeCast") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("proof") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Subtype") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Subtype") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("Trivial") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("proof") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("cast") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + VALUE("value") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/kt42396.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/kt42396.antlrtree.txt index 5f6baae64..ffca158d8 100644 --- a/grammar/testData/diagnostics/typeParameters/kt42396.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/kt42396.antlrtree.txt @@ -505,6 +505,4 @@ File: kt42396.kt - 63f89cbfcc8a8867ac59d08f2fa31128 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/kt42472.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/kt42472.antlrtree.txt index 608c214d4..402a7af54 100644 --- a/grammar/testData/diagnostics/typeParameters/kt42472.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/kt42472.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt42472.kt - c9c5b45a6bd3142f83f4386233cbaa71 +File: kt42472.kt - fa80ccf71b72a0ce4b04fffe39b53e3a NL("\n") NL("\n") packageHeader @@ -222,5 +222,5 @@ File: kt42472.kt - c9c5b45a6bd3142f83f4386233cbaa71 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/kt46186.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/kt46186.antlrtree.txt new file mode 100644 index 000000000..14d013d85 --- /dev/null +++ b/grammar/testData/diagnostics/typeParameters/kt46186.antlrtree.txt @@ -0,0 +1,2630 @@ +File: kt46186.kt - c3181012dd371e64ee8cbd15a518b241 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("View1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("View2") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("View3") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("View4") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("View5") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View1") + RANGLE(">") + simpleIdentifier + Identifier("findViewById1") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View2") + RANGLE(">") + simpleIdentifier + Identifier("findViewById2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View1") + RANGLE(">") + simpleIdentifier + Identifier("findViewById3") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test3") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View2") + RANGLE(">") + simpleIdentifier + Identifier("findViewById4") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test4") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View3") + RANGLE(">") + simpleIdentifier + Identifier("findViewById5") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test5") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById5") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View3") + RANGLE(">") + simpleIdentifier + Identifier("findViewById6") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test6") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById6") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View4") + RANGLE(">") + simpleIdentifier + Identifier("findViewById7") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test7") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById7") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View4") + RANGLE(">") + simpleIdentifier + Identifier("findViewById8") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test8") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById8") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("findViewById9") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View3") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View5") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test9") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById9") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("findViewById10") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View3") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View5") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test10") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById10") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View2") + RANGLE(">") + simpleIdentifier + Identifier("findViewById11") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test11") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View4") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById11") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Obj") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RANGLE(">") + simpleIdentifier + Identifier("findViewById1") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View1") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RANGLE(">") + simpleIdentifier + Identifier("findViewById2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View2") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RANGLE(">") + simpleIdentifier + Identifier("findViewById3") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test3") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View1") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RANGLE(">") + simpleIdentifier + Identifier("findViewById4") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test4") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View2") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RANGLE(">") + simpleIdentifier + Identifier("findViewById5") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test5") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View3") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById5") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RANGLE(">") + simpleIdentifier + Identifier("findViewById6") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test6") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View3") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById6") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RANGLE(">") + simpleIdentifier + Identifier("findViewById7") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test7") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View4") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById7") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RANGLE(">") + simpleIdentifier + Identifier("findViewById8") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test8") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View4") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById8") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("findViewById9") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View3") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View5") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test9") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View1") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById9") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + INLINE("inline") + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + typeParameterModifiers + typeParameterModifier + reificationModifier + REIFIED("reified") + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("findViewById10") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View3") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View5") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test10") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View1") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById10") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View2") + RANGLE(">") + simpleIdentifier + Identifier("findViewById11") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test11") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("View4") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("findViewById11") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("f") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("g") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/misplacedConstraints.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/misplacedConstraints.antlrtree.txt index 24b6036a2..1252b70cc 100644 --- a/grammar/testData/diagnostics/typeParameters/misplacedConstraints.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/misplacedConstraints.antlrtree.txt @@ -1,4 +1,5 @@ -File: misplacedConstraints.kt - bf3233ba230e9929b84adfa739aec7ac +File: misplacedConstraints.kt - 791e7af247e8a3b9efd3c8ff3d11cba8 + NL("\n") packageHeader importList topLevelObject @@ -360,6 +361,4 @@ File: misplacedConstraints.kt - bf3233ba230e9929b84adfa739aec7ac NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/propertyTypeParameters.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/propertyTypeParameters.antlrtree.txt index 43f6248cf..b6f70a8b5 100644 --- a/grammar/testData/diagnostics/typeParameters/propertyTypeParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/propertyTypeParameters.antlrtree.txt @@ -1,4 +1,5 @@ -File: propertyTypeParameters.kt - b1ee07cb9e2787f265c9588b2e967067 +File: propertyTypeParameters.kt - dabfafd9f734f6893035c038b0a4c7c2 + NL("\n") NL("\n") NL("\n") packageHeader @@ -1370,6 +1371,4 @@ File: propertyTypeParameters.kt - b1ee07cb9e2787f265c9588b2e967067 primaryExpression literalConstant IntegerLiteral("4") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/propertyTypeParametersWithUpperBounds.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/propertyTypeParametersWithUpperBounds.antlrtree.txt index 798111a6c..f340651c9 100644 --- a/grammar/testData/diagnostics/typeParameters/propertyTypeParametersWithUpperBounds.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/propertyTypeParametersWithUpperBounds.antlrtree.txt @@ -1,4 +1,5 @@ -File: propertyTypeParametersWithUpperBounds.kt - 33294e3833933716f11e52fd8e766163 +File: propertyTypeParametersWithUpperBounds.kt - 73d07faf4e914f3ccb05edc49c82c178 + NL("\n") NL("\n") packageHeader importList @@ -771,6 +772,4 @@ File: propertyTypeParametersWithUpperBounds.kt - 33294e3833933716f11e52fd8e76616 primaryExpression literalConstant IntegerLiteral("5") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/repeatedBound.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/repeatedBound.antlrtree.txt index fc449852e..56a6ef51a 100644 --- a/grammar/testData/diagnostics/typeParameters/repeatedBound.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/repeatedBound.antlrtree.txt @@ -1,4 +1,5 @@ -File: repeatedBound.kt - 4e8b842b2db82ddd780feb41cffcd2af +File: repeatedBound.kt - 3032efb0c7b814c320b6b8aa0dba0396 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/typeParameters/starProjectionInsteadOutCaptured.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/starProjectionInsteadOutCaptured.antlrtree.txt new file mode 100644 index 000000000..732e900e2 --- /dev/null +++ b/grammar/testData/diagnostics/typeParameters/starProjectionInsteadOutCaptured.antlrtree.txt @@ -0,0 +1,307 @@ +File: starProjectionInsteadOutCaptured.kt - 177f4fc9e4be2a51013b124333312645 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("E") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("F") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("foo3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + simpleIdentifier + Identifier("foo4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/typeMismatchErrorHasExpectedGenericTypeArgumentInsteadOfTypeParameter.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/typeMismatchErrorHasExpectedGenericTypeArgumentInsteadOfTypeParameter.antlrtree.txt new file mode 100644 index 000000000..c34f656cf --- /dev/null +++ b/grammar/testData/diagnostics/typeParameters/typeMismatchErrorHasExpectedGenericTypeArgumentInsteadOfTypeParameter.antlrtree.txt @@ -0,0 +1,371 @@ +File: typeMismatchErrorHasExpectedGenericTypeArgumentInsteadOfTypeParameter.kt - 634af1904447e58e1607acdd8140b46c + NL("\n") + fileAnnotation + AT_PRE_WS("\n@") + FILE("file") + COLON(":") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Suppress") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("INVISIBLE_MEMBER") + QUOTE_CLOSE(""") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("INVISIBLE_REFERENCE") + QUOTE_CLOSE(""") + RPAREN(")") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("it") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleUserType + simpleIdentifier + INTERNAL("internal") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Exact") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("MY_TYPE_PARAM") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RANGLE(">") + simpleIdentifier + Identifier("myRun") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("action") + COLON(":") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MY_TYPE_PARAM") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("MY_TYPE_PARAM") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("action") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myRun") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + RANGLE(">") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typeParameters/upperBoundCannotBeArray.antlrtree.txt b/grammar/testData/diagnostics/typeParameters/upperBoundCannotBeArray.antlrtree.txt index 69b1b8204..1b0699019 100644 --- a/grammar/testData/diagnostics/typeParameters/upperBoundCannotBeArray.antlrtree.txt +++ b/grammar/testData/diagnostics/typeParameters/upperBoundCannotBeArray.antlrtree.txt @@ -1,4 +1,5 @@ -File: upperBoundCannotBeArray.kt - 77852eccc8109aa6c57ae0e5c354ad9f +File: upperBoundCannotBeArray.kt - afbba1ed3f0eee64e0f1fadf191af940 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/typealias/abbreviatedSupertypes.antlrtree.txt b/grammar/testData/diagnostics/typealias/abbreviatedSupertypes.antlrtree.txt new file mode 100644 index 000000000..5017a15d2 --- /dev/null +++ b/grammar/testData/diagnostics/typealias/abbreviatedSupertypes.antlrtree.txt @@ -0,0 +1,628 @@ +File: abbreviatedSupertypes.kt - 0f2f01cdaa7933dff4ef93faae0e6d1e + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("TK") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("One") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TK") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("OneList") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TK") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Both") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TK") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BothList") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TK") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("One") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Both") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A1") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("One") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("One") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IO1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("OneList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IO2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("BothList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("One") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Both") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("One") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Both") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typealias/abbreviatedSupertypesErrors.antlrtree.txt b/grammar/testData/diagnostics/typealias/abbreviatedSupertypesErrors.antlrtree.txt new file mode 100644 index 000000000..62c804a9b --- /dev/null +++ b/grammar/testData/diagnostics/typealias/abbreviatedSupertypesErrors.antlrtree.txt @@ -0,0 +1,628 @@ +File: abbreviatedSupertypesErrors.kt - 52c1af2f7f3094610bf65c24c4545e43 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("TK") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("One") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TK") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("OneList") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TK") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Both") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TK") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("BothList") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("TK") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("One") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("O2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Both") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A1") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("One") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("One") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IO1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("OneList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("IO2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("BothList") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("One") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Both") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("One") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Both") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typealias/annotationsOnTypeAliases.antlrtree.txt b/grammar/testData/diagnostics/typealias/annotationsOnTypeAliases.antlrtree.txt index 4c8a62b51..f42ed0e73 100644 --- a/grammar/testData/diagnostics/typealias/annotationsOnTypeAliases.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/annotationsOnTypeAliases.antlrtree.txt @@ -1,4 +1,5 @@ -File: annotationsOnTypeAliases.kt - 74e984deceb66b0cbd856261fc765438 +File: annotationsOnTypeAliases.kt - 1a271e0e287a8c4c4e6cfdbb6a7395db + NL("\n") NL("\n") packageHeader importList @@ -157,6 +158,4 @@ File: annotationsOnTypeAliases.kt - 74e984deceb66b0cbd856261fc765438 simpleUserType simpleIdentifier Identifier("String") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/boundViolationInTypeAliasConstructor.antlrtree.txt b/grammar/testData/diagnostics/typealias/boundViolationInTypeAliasConstructor.antlrtree.txt index 0b5fb6ab6..e5789108d 100644 --- a/grammar/testData/diagnostics/typealias/boundViolationInTypeAliasConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/boundViolationInTypeAliasConstructor.antlrtree.txt @@ -1,5 +1,4 @@ -File: boundViolationInTypeAliasConstructor.kt - f889bd714ddb0a138daa3d703ab9a030 - NL("\n") +File: boundViolationInTypeAliasConstructor.kt - ad3397d7a49d01370df358df85023e7f packageHeader importList topLevelObject @@ -571,6 +570,4 @@ File: boundViolationInTypeAliasConstructor.kt - f889bd714ddb0a138daa3d703ab9a030 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/boundsViolationInDeepTypeAliasExpansion.antlrtree.txt b/grammar/testData/diagnostics/typealias/boundsViolationInDeepTypeAliasExpansion.antlrtree.txt index 5bae51a03..c59201e4c 100644 --- a/grammar/testData/diagnostics/typealias/boundsViolationInDeepTypeAliasExpansion.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/boundsViolationInDeepTypeAliasExpansion.antlrtree.txt @@ -1,5 +1,4 @@ -File: boundsViolationInDeepTypeAliasExpansion.kt - 03db02268f4cdf298112b78f5b24ffa8 - NL("\n") +File: boundsViolationInDeepTypeAliasExpansion.kt - 0f768cf31b4276d40219d4edc188f20a NL("\n") NL("\n") packageHeader @@ -592,6 +591,4 @@ File: boundsViolationInDeepTypeAliasExpansion.kt - 03db02268f4cdf298112b78f5b24f LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/boundsViolationInTypeAliasExpansion.antlrtree.txt b/grammar/testData/diagnostics/typealias/boundsViolationInTypeAliasExpansion.antlrtree.txt index 58f534167..4410dab2d 100644 --- a/grammar/testData/diagnostics/typealias/boundsViolationInTypeAliasExpansion.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/boundsViolationInTypeAliasExpansion.antlrtree.txt @@ -1,5 +1,4 @@ -File: boundsViolationInTypeAliasExpansion.kt - 4fd4ab4196e0ea2f65c89605bc3ada55 - NL("\n") +File: boundsViolationInTypeAliasExpansion.kt - 89c4dc7ab50c238486e24bf14e43a71b NL("\n") NL("\n") packageHeader @@ -1069,6 +1068,4 @@ File: boundsViolationInTypeAliasExpansion.kt - 4fd4ab4196e0ea2f65c89605bc3ada55 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/classReference.antlrtree.txt b/grammar/testData/diagnostics/typealias/classReference.antlrtree.txt index 4286b2362..d2accb11c 100644 --- a/grammar/testData/diagnostics/typealias/classReference.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/classReference.antlrtree.txt @@ -50,6 +50,4 @@ File: classReference.kt - 219858eb072df5b61ed6ea789bb9bc0c COLONCOLON("::") CLASS("class") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/cyclicInheritanceViaTypeAlias.antlrtree.txt b/grammar/testData/diagnostics/typealias/cyclicInheritanceViaTypeAlias.antlrtree.txt index 86bbe0c51..f8c9f6962 100644 --- a/grammar/testData/diagnostics/typealias/cyclicInheritanceViaTypeAlias.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/cyclicInheritanceViaTypeAlias.antlrtree.txt @@ -113,6 +113,4 @@ File: cyclicInheritanceViaTypeAlias.kt - 989926445ce56f3c8edbe2435350a54e valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/enumEntryQualifier.antlrtree.txt b/grammar/testData/diagnostics/typealias/enumEntryQualifier.antlrtree.txt index 4342fd009..93c54639d 100644 --- a/grammar/testData/diagnostics/typealias/enumEntryQualifier.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/enumEntryQualifier.antlrtree.txt @@ -103,6 +103,4 @@ File: enumEntryQualifier.kt - 89c7af60c7da52cd2f4b26ad7f7d726b DOT(".") simpleIdentifier Identifier("A") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/functionalTypeWithParameterNameVisibility.antlrtree.txt b/grammar/testData/diagnostics/typealias/functionalTypeWithParameterNameVisibility.antlrtree.txt new file mode 100644 index 000000000..aed730d0e --- /dev/null +++ b/grammar/testData/diagnostics/typealias/functionalTypeWithParameterNameVisibility.antlrtree.txt @@ -0,0 +1,131 @@ +File: functionalTypeWithParameterNameVisibility.kt - 4a844856a9ad4ab8908751e0fc62d4a8 + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("TA") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("Y") + RANGLE(">") + ASSIGNMENT("=") + type + functionType + functionTypeParameters + LPAREN("(") + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Y") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Base") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("X") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("Y") + RANGLE(">") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("TA") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("X") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Y") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Impl") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/typealias/genericTypeAliasConstructor.antlrtree.txt b/grammar/testData/diagnostics/typealias/genericTypeAliasConstructor.antlrtree.txt index 86eb2ef93..8dec29612 100644 --- a/grammar/testData/diagnostics/typealias/genericTypeAliasConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/genericTypeAliasConstructor.antlrtree.txt @@ -446,6 +446,4 @@ File: genericTypeAliasConstructor.kt - 754bd3c1c5fcb78148c5e5037e34b791 QUOTE_CLOSE(""") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/genericTypeAliasObject.antlrtree.txt b/grammar/testData/diagnostics/typealias/genericTypeAliasObject.antlrtree.txt index 501e27b81..1d0e02217 100644 --- a/grammar/testData/diagnostics/typealias/genericTypeAliasObject.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/genericTypeAliasObject.antlrtree.txt @@ -1,4 +1,5 @@ -File: genericTypeAliasObject.kt - 8db6d52e9557de91f377e900224fb70b +File: genericTypeAliasObject.kt - b424f2012672479f2efa081d31871da1 + NL("\n") packageHeader importList topLevelObject @@ -541,6 +542,4 @@ File: genericTypeAliasObject.kt - 8db6d52e9557de91f377e900224fb70b LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/import.test.antlrtree.txt b/grammar/testData/diagnostics/typealias/import.test.antlrtree.txt index cc5af71a5..460653584 100644 --- a/grammar/testData/diagnostics/typealias/import.test.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/import.test.antlrtree.txt @@ -150,6 +150,4 @@ File: import.test.kt - 2663c708be812a54a9b746c2de527264 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/importForTypealiasObject.2.antlrtree.txt b/grammar/testData/diagnostics/typealias/importForTypealiasObject.2.antlrtree.txt index fd1b1fddd..c10e9c667 100644 --- a/grammar/testData/diagnostics/typealias/importForTypealiasObject.2.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/importForTypealiasObject.2.antlrtree.txt @@ -97,6 +97,4 @@ File: importForTypealiasObject.2.kt - 26e4aaee618cfd9f71ccd59e2fde1eb4 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/importFromTypeAliasObject.2.antlrtree.txt b/grammar/testData/diagnostics/typealias/importFromTypeAliasObject.2.antlrtree.txt index eb060eac4..ccd714b8f 100644 --- a/grammar/testData/diagnostics/typealias/importFromTypeAliasObject.2.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/importFromTypeAliasObject.2.antlrtree.txt @@ -56,6 +56,4 @@ File: importFromTypeAliasObject.2.kt - 1104bd2383b45a42c7410d135413f634 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/inGenerics.antlrtree.txt b/grammar/testData/diagnostics/typealias/inGenerics.antlrtree.txt index 14a8e20a2..cc4c94b52 100644 --- a/grammar/testData/diagnostics/typealias/inGenerics.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/inGenerics.antlrtree.txt @@ -1,4 +1,4 @@ -File: inGenerics.kt - 877d24d4552a9396c885b371e8185030 +File: inGenerics.kt - 497f89b4b0f18455221669eb1cfd2ba7 NL("\n") packageHeader importList @@ -262,6 +262,5 @@ File: inGenerics.kt - 877d24d4552a9396c885b371e8185030 literalConstant NullLiteral("null") RPAREN(")") - semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/typealias/inhreritedTypeAliasQualifiedByDerivedClass.antlrtree.txt b/grammar/testData/diagnostics/typealias/inhreritedTypeAliasQualifiedByDerivedClass.antlrtree.txt index f8c1bbb4f..751fce371 100644 --- a/grammar/testData/diagnostics/typealias/inhreritedTypeAliasQualifiedByDerivedClass.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/inhreritedTypeAliasQualifiedByDerivedClass.antlrtree.txt @@ -171,6 +171,4 @@ File: inhreritedTypeAliasQualifiedByDerivedClass.kt - e68bc7fa570ef1f32c4c67eca1 Identifier("x") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/innerClassTypeAliasConstructor.antlrtree.txt b/grammar/testData/diagnostics/typealias/innerClassTypeAliasConstructor.antlrtree.txt index f4006f7c1..9e7310ee2 100644 --- a/grammar/testData/diagnostics/typealias/innerClassTypeAliasConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/innerClassTypeAliasConstructor.antlrtree.txt @@ -1,4 +1,4 @@ -File: innerClassTypeAliasConstructor.kt - 11398cfd21590d1b536f353a9804de87 +File: innerClassTypeAliasConstructor.kt - 8ea7f5fa5435451940b97ba6c5b28ead NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/typealias/innerClassTypeAliasConstructorInSupertypes.antlrtree.txt b/grammar/testData/diagnostics/typealias/innerClassTypeAliasConstructorInSupertypes.antlrtree.txt index 0d0e7a1e6..1afbcac37 100644 --- a/grammar/testData/diagnostics/typealias/innerClassTypeAliasConstructorInSupertypes.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/innerClassTypeAliasConstructorInSupertypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: innerClassTypeAliasConstructorInSupertypes.kt - fb942125b89ee4e4183d4019525f1ec9 - NL("\n") +File: innerClassTypeAliasConstructorInSupertypes.kt - 82ab3f88d2b0acf8d9b4e232351e76d2 packageHeader PACKAGE("package") identifier diff --git a/grammar/testData/diagnostics/typealias/innerTypeAliasAsType2.antlrtree.txt b/grammar/testData/diagnostics/typealias/innerTypeAliasAsType2.antlrtree.txt index 0388d666c..3d060be3f 100644 --- a/grammar/testData/diagnostics/typealias/innerTypeAliasAsType2.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/innerTypeAliasAsType2.antlrtree.txt @@ -638,6 +638,4 @@ File: innerTypeAliasAsType2.kt - 887c2af9a881213509e25a5080541a71 primaryExpression simpleIdentifier Identifier("x") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/innerTypeAliasConstructor.antlrtree.txt b/grammar/testData/diagnostics/typealias/innerTypeAliasConstructor.antlrtree.txt index 872c02415..15c42be5e 100644 --- a/grammar/testData/diagnostics/typealias/innerTypeAliasConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/innerTypeAliasConstructor.antlrtree.txt @@ -1,5 +1,4 @@ -File: innerTypeAliasConstructor.kt - b978606c0b8aaf9092762eaf060cc3cc - NL("\n") +File: innerTypeAliasConstructor.kt - e22c40b9dda840cd58104af30e456687 NL("\n") NL("\n") packageHeader @@ -891,6 +890,4 @@ File: innerTypeAliasConstructor.kt - b978606c0b8aaf9092762eaf060cc3cc QUOTE_CLOSE(""") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/intToLongApproximationThroughTypeAlias.antlrtree.txt b/grammar/testData/diagnostics/typealias/intToLongApproximationThroughTypeAlias.antlrtree.txt new file mode 100644 index 000000000..55163d5b4 --- /dev/null +++ b/grammar/testData/diagnostics/typealias/intToLongApproximationThroughTypeAlias.antlrtree.txt @@ -0,0 +1,82 @@ +File: intToLongApproximationThroughTypeAlias.kt - 71777acc218184a29c2f09f1a02d5658 + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Hash") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Long") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Hash") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/typealias/kt14498.antlrtree.txt b/grammar/testData/diagnostics/typealias/kt14498.antlrtree.txt index bd267ab28..31ef1db5f 100644 --- a/grammar/testData/diagnostics/typealias/kt14498.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/kt14498.antlrtree.txt @@ -432,6 +432,4 @@ File: kt14498.kt - 9042e2d4ea2b970b78d1a5599a323730 simpleIdentifier Identifier("S") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/kt14498a.antlrtree.txt b/grammar/testData/diagnostics/typealias/kt14498a.antlrtree.txt index 87df7266a..b61fe8cfe 100644 --- a/grammar/testData/diagnostics/typealias/kt14498a.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/kt14498a.antlrtree.txt @@ -380,6 +380,4 @@ File: kt14498a.kt - 66ff7b9cd659c79d56135c2364634910 Identifier("S") RANGLE(">") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/kt14518.antlrtree.txt b/grammar/testData/diagnostics/typealias/kt14518.antlrtree.txt index 16e2a3a5d..32d3f6419 100644 --- a/grammar/testData/diagnostics/typealias/kt14518.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/kt14518.antlrtree.txt @@ -199,6 +199,4 @@ File: kt14518.kt - 0f5bd731341f1256ab045964ddafbd02 simpleIdentifier Identifier("T2") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/kt14641.antlrtree.txt b/grammar/testData/diagnostics/typealias/kt14641.antlrtree.txt index 00e04fdb1..073f8df9e 100644 --- a/grammar/testData/diagnostics/typealias/kt14641.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/kt14641.antlrtree.txt @@ -130,6 +130,4 @@ File: kt14641.kt - 9b4f2be81ebd542bf95780e9d93310a4 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/kt15734.antlrtree.txt b/grammar/testData/diagnostics/typealias/kt15734.antlrtree.txt index 127947097..cd109aafb 100644 --- a/grammar/testData/diagnostics/typealias/kt15734.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/kt15734.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt15734.kt - 4d1a34092a5d446102723937536811e4 +File: kt15734.kt - 0711f124715b74b8255f9466271d9963 + NL("\n") packageHeader importList topLevelObject @@ -7,7 +8,7 @@ File: kt15734.kt - 4d1a34092a5d446102723937536811e4 modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType diff --git a/grammar/testData/diagnostics/typealias/kt19601.antlrtree.txt b/grammar/testData/diagnostics/typealias/kt19601.antlrtree.txt index 43ef69905..8c8e91bb5 100644 --- a/grammar/testData/diagnostics/typealias/kt19601.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/kt19601.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt19601.kt - 9fb552cfb0b5af1ea34720452d5426b6 +File: kt19601.kt - 37ab719a0723683bc040b5e4c4d17749 + NL("\n") packageHeader importList topLevelObject @@ -164,5 +165,5 @@ File: kt19601.kt - 9fb552cfb0b5af1ea34720452d5426b6 RANGLE(">") RANGLE(">") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/typealias/localTypeAliasModifiers.antlrtree.txt b/grammar/testData/diagnostics/typealias/localTypeAliasModifiers.antlrtree.txt index bad7ec048..fecd5681d 100644 --- a/grammar/testData/diagnostics/typealias/localTypeAliasModifiers.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/localTypeAliasModifiers.antlrtree.txt @@ -1,4 +1,5 @@ -File: localTypeAliasModifiers.kt - 7576fad9916471eed61feea9a4b00224 (WITH_ERRORS) +File: localTypeAliasModifiers.kt - 97065d2c5a48fc3d0ebea09af54b6e8c (WITH_ERRORS) + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/typealias/localTypeAliasRecursive.antlrtree.txt b/grammar/testData/diagnostics/typealias/localTypeAliasRecursive.antlrtree.txt index 59650adf5..98a7f4366 100644 --- a/grammar/testData/diagnostics/typealias/localTypeAliasRecursive.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/localTypeAliasRecursive.antlrtree.txt @@ -99,6 +99,4 @@ File: localTypeAliasRecursive.kt - aea3ad32cb688934488d883d6c36768c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/methodReference.antlrtree.txt b/grammar/testData/diagnostics/typealias/methodReference.antlrtree.txt index 4be4293c9..977f74602 100644 --- a/grammar/testData/diagnostics/typealias/methodReference.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/methodReference.antlrtree.txt @@ -81,6 +81,4 @@ File: methodReference.kt - 966b54d91b5725e89328f6908d03faed simpleIdentifier Identifier("foo") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/nestedCapturingTypeParameters.antlrtree.txt b/grammar/testData/diagnostics/typealias/nestedCapturingTypeParameters.antlrtree.txt index 26d644d06..a87d9479c 100644 --- a/grammar/testData/diagnostics/typealias/nestedCapturingTypeParameters.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/nestedCapturingTypeParameters.antlrtree.txt @@ -833,6 +833,4 @@ File: nestedCapturingTypeParameters.kt - 7b20647017089c41be2dbc4e7969e850 Identifier("p2") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/nestedSubstituted.antlrtree.txt b/grammar/testData/diagnostics/typealias/nestedSubstituted.antlrtree.txt index 2d740610b..31e56ba0b 100644 --- a/grammar/testData/diagnostics/typealias/nestedSubstituted.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/nestedSubstituted.antlrtree.txt @@ -1,5 +1,4 @@ -File: nestedSubstituted.kt - 0318c662739f83ab4e0aa66e79008c8e - NL("\n") +File: nestedSubstituted.kt - db4573ac33d5a099dd1a81d73b1d7af4 NL("\n") NL("\n") packageHeader @@ -197,6 +196,4 @@ File: nestedSubstituted.kt - 0318c662739f83ab4e0aa66e79008c8e IntegerLiteral("1") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/noApproximationInTypeAliasArgumentSubstitution.antlrtree.txt b/grammar/testData/diagnostics/typealias/noApproximationInTypeAliasArgumentSubstitution.antlrtree.txt index 176cf1806..f8a5bb145 100644 --- a/grammar/testData/diagnostics/typealias/noApproximationInTypeAliasArgumentSubstitution.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/noApproximationInTypeAliasArgumentSubstitution.antlrtree.txt @@ -1,5 +1,4 @@ -File: noApproximationInTypeAliasArgumentSubstitution.kt - d2ac5c24c60e309ee6a0e90932475fc3 - NL("\n") +File: noApproximationInTypeAliasArgumentSubstitution.kt - 8ef42d083850b2d3217ef15ed0f2171c NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/typealias/noRHS.antlrtree.txt b/grammar/testData/diagnostics/typealias/noRHS.antlrtree.txt index c5b56041b..954aab695 100644 --- a/grammar/testData/diagnostics/typealias/noRHS.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/noRHS.antlrtree.txt @@ -1,4 +1,4 @@ -File: noRHS.kt - a31fea8412044eb7f01602f393027541 (WITH_ERRORS) +File: noRHS.kt - 59b7544be56f565150541661284c0003 (WITH_ERRORS) NL("\n") packageHeader importList @@ -24,6 +24,19 @@ File: noRHS.kt - a31fea8412044eb7f01602f393027541 (WITH_ERRORS) NL("\n") NL("\n") type + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Valid") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/typealias/parameterRestrictions.antlrtree.txt b/grammar/testData/diagnostics/typealias/parameterRestrictions.antlrtree.txt index 86404b49e..c35315d82 100644 --- a/grammar/testData/diagnostics/typealias/parameterRestrictions.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/parameterRestrictions.antlrtree.txt @@ -177,6 +177,4 @@ File: parameterRestrictions.kt - 4475d623558225028981e9eb2dcfc24b (WITH_ERRORS) literalConstant IntegerLiteral("0") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/parameterSubstitution.antlrtree.txt b/grammar/testData/diagnostics/typealias/parameterSubstitution.antlrtree.txt index abf0aca16..314ec5157 100644 --- a/grammar/testData/diagnostics/typealias/parameterSubstitution.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/parameterSubstitution.antlrtree.txt @@ -335,6 +335,4 @@ File: parameterSubstitution.kt - 7179b287e087bbaf735d922b5f0efc85 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/privateInFile.file1.antlrtree.txt b/grammar/testData/diagnostics/typealias/privateInFile.file1.antlrtree.txt index 130134fd6..7a9f738ba 100644 --- a/grammar/testData/diagnostics/typealias/privateInFile.file1.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/privateInFile.file1.antlrtree.txt @@ -206,6 +206,4 @@ File: privateInFile.file1.kt - a6e804d6ff8405d7ff1f09952587528b Identifier("TA") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/projectionsInTypeAliasConstructor.antlrtree.txt b/grammar/testData/diagnostics/typealias/projectionsInTypeAliasConstructor.antlrtree.txt index f590a7c49..01add97ea 100644 --- a/grammar/testData/diagnostics/typealias/projectionsInTypeAliasConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/projectionsInTypeAliasConstructor.antlrtree.txt @@ -203,6 +203,4 @@ File: projectionsInTypeAliasConstructor.kt - fb4d491405a286206d677723dc700094 QUOTE_CLOSE(""") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/recursive.antlrtree.txt b/grammar/testData/diagnostics/typealias/recursive.antlrtree.txt index 3c827ec8a..be74121e9 100644 --- a/grammar/testData/diagnostics/typealias/recursive.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/recursive.antlrtree.txt @@ -1,4 +1,5 @@ -File: recursive.kt - 48fac2cb84a228c26e145ce5349719b0 +File: recursive.kt - a7dc000fd9791350d62a62a6d9df1b18 + NL("\n") packageHeader importList topLevelObject @@ -128,6 +129,33 @@ File: recursive.kt - 48fac2cb84a228c26e145ce5349719b0 Identifier("Int") semis NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("F3") + ASSIGNMENT("=") + type + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F1") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") NL("\n") topLevelObject declaration @@ -142,7 +170,7 @@ File: recursive.kt - 48fac2cb84a228c26e145ce5349719b0 userType simpleUserType simpleIdentifier - Identifier("A") + Identifier("F3") ASSIGNMENT("=") expression disjunction @@ -168,6 +196,4 @@ File: recursive.kt - 48fac2cb84a228c26e145ce5349719b0 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/simpleTypeAlias.antlrtree.txt b/grammar/testData/diagnostics/typealias/simpleTypeAlias.antlrtree.txt index 1b60c2474..2b5ec931d 100644 --- a/grammar/testData/diagnostics/typealias/simpleTypeAlias.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/simpleTypeAlias.antlrtree.txt @@ -228,6 +228,4 @@ File: simpleTypeAlias.kt - 12d9850a09240fd560c28136b777edfd literalConstant NullLiteral("null") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/starProjection.antlrtree.txt b/grammar/testData/diagnostics/typealias/starProjection.antlrtree.txt index d3d7ae7a8..8c52592bb 100644 --- a/grammar/testData/diagnostics/typealias/starProjection.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/starProjection.antlrtree.txt @@ -1,5 +1,4 @@ -File: starProjection.kt - e36a4ea021a19ece34a8e0bd21b37d04 - NL("\n") +File: starProjection.kt - 784d458f7d1e25fdecbc0032a7ed77de packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/typealias/substitutionVariance.antlrtree.txt b/grammar/testData/diagnostics/typealias/substitutionVariance.antlrtree.txt index 7a492dce0..5c46d758f 100644 --- a/grammar/testData/diagnostics/typealias/substitutionVariance.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/substitutionVariance.antlrtree.txt @@ -1,4 +1,4 @@ -File: substitutionVariance.kt - 9c46d91f1ebf3b1c52cacdaa95ddd4e2 +File: substitutionVariance.kt - ce469c3fee2e1cfcc11dc098607b2129 NL("\n") NL("\n") packageHeader @@ -2406,4 +2406,137 @@ File: substitutionVariance.kt - 9c46d91f1ebf3b1c52cacdaa95ddd4e2 Identifier("x") semis NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("nested_conflicting_type_argument") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + IN("in") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("nested_redundant_type_argument") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("In") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Out") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/typealias/throwJLException.antlrtree.txt b/grammar/testData/diagnostics/typealias/throwJLException.antlrtree.txt index d8116383f..dad3add95 100644 --- a/grammar/testData/diagnostics/typealias/throwJLException.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/throwJLException.antlrtree.txt @@ -81,6 +81,4 @@ File: throwJLException.kt - 9dd034214b5806fb2927718904a71026 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/topLevelTypeAliasesOnly.antlrtree.txt b/grammar/testData/diagnostics/typealias/topLevelTypeAliasesOnly.antlrtree.txt index 8e3bde907..6f1321bc9 100644 --- a/grammar/testData/diagnostics/typealias/topLevelTypeAliasesOnly.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/topLevelTypeAliasesOnly.antlrtree.txt @@ -1,4 +1,5 @@ -File: topLevelTypeAliasesOnly.kt - 8180cb150f56c39f4d90369291191262 +File: topLevelTypeAliasesOnly.kt - 863b3b95863ba82a8ebacd684a98e9f0 + NL("\n") packageHeader importList topLevelObject @@ -165,6 +166,4 @@ File: topLevelTypeAliasesOnly.kt - 8180cb150f56c39f4d90369291191262 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasArgumentsInCompanionObject.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasArgumentsInCompanionObject.antlrtree.txt index 7c6d01b3d..950a03be7 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasArgumentsInCompanionObject.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasArgumentsInCompanionObject.antlrtree.txt @@ -198,6 +198,4 @@ File: typeAliasArgumentsInCompanionObject.kt - bdf82aa98d6adc6e15fc0a05987b4d35 simpleIdentifier Identifier("OK") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasArgumentsInConstructor.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasArgumentsInConstructor.antlrtree.txt index 607dcafa2..77c208285 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasArgumentsInConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasArgumentsInConstructor.antlrtree.txt @@ -463,6 +463,4 @@ File: typeAliasArgumentsInConstructor.kt - c6ae413ab1535eaa0dc862c9c07874d5 simpleIdentifier Identifier("x2") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasAsQualifier.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasAsQualifier.antlrtree.txt index 0f4f2fb3c..021cebdb4 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasAsQualifier.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasAsQualifier.antlrtree.txt @@ -387,6 +387,4 @@ File: typeAliasAsQualifier.kt - 277f11305886f649a61f2d1fcde3863f simpleIdentifier Identifier("ok") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasAsSuperQualifier.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasAsSuperQualifier.antlrtree.txt index 68ef9add6..c439e973b 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasAsSuperQualifier.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasAsSuperQualifier.antlrtree.txt @@ -711,6 +711,4 @@ File: typeAliasAsSuperQualifier.kt - 950b667175de552f047453a14dc01da6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasConstructor.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasConstructor.antlrtree.txt index 631d74e5c..1991ba6f6 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasConstructor.antlrtree.txt @@ -532,6 +532,4 @@ File: typeAliasConstructor.kt - 3048c5623fd60f256cecb34576205bf5 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasConstructorCrazyProjections.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasConstructorCrazyProjections.antlrtree.txt index f9413d3f5..60f274fdc 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasConstructorCrazyProjections.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasConstructorCrazyProjections.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeAliasConstructorCrazyProjections.kt - d9b1dbed0f2b0089c6a70f950dede344 - NL("\n") +File: typeAliasConstructorCrazyProjections.kt - 9131d166bb7e382dbe8774bcb705b8a8 NL("\n") NL("\n") packageHeader @@ -440,6 +439,4 @@ File: typeAliasConstructorCrazyProjections.kt - d9b1dbed0f2b0089c6a70f950dede344 EXCL_NO_WS("!") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasConstructorForInterface.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasConstructorForInterface.antlrtree.txt index 93c828d42..30e4073da 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasConstructorForInterface.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasConstructorForInterface.antlrtree.txt @@ -84,6 +84,4 @@ File: typeAliasConstructorForInterface.kt - 5dc63ef72ee84c37a65ac7d1bc8c198a primaryExpression simpleIdentifier Identifier("Test") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasConstructorForProjection.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasConstructorForProjection.antlrtree.txt index ae39912e7..5063fb85a 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasConstructorForProjection.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasConstructorForProjection.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeAliasConstructorForProjection.kt - fc51f3cdd0580e57317d937222a33587 - NL("\n") +File: typeAliasConstructorForProjection.kt - 196c487f67155d5711c4054c1643e1e3 NL("\n") NL("\n") packageHeader @@ -311,6 +310,4 @@ File: typeAliasConstructorForProjection.kt - fc51f3cdd0580e57317d937222a33587 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasConstructorForProjectionInSupertypes.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasConstructorForProjectionInSupertypes.antlrtree.txt index 66fab9edd..9e2913358 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasConstructorForProjectionInSupertypes.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasConstructorForProjectionInSupertypes.antlrtree.txt @@ -1,4 +1,4 @@ -File: typeAliasConstructorForProjectionInSupertypes.kt - b00c9890c194303d251f0c2a64715f4d +File: typeAliasConstructorForProjectionInSupertypes.kt - 5e98b336726dae7f0ef992def636a775 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/typealias/typeAliasConstructorReturnType.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasConstructorReturnType.antlrtree.txt index b532b3845..041486249 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasConstructorReturnType.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasConstructorReturnType.antlrtree.txt @@ -799,6 +799,4 @@ File: typeAliasConstructorReturnType.kt - 5ce77620d729e51b7aca38aa80d274f7 RPAREN(")") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasConstructorTypeArgumentsInference.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasConstructorTypeArgumentsInference.antlrtree.txt index f82131120..b73fbdd85 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasConstructorTypeArgumentsInference.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasConstructorTypeArgumentsInference.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeAliasConstructorTypeArgumentsInference.kt - c06a6428634763c139d1ef2e6fc954a6 - NL("\n") +File: typeAliasConstructorTypeArgumentsInference.kt - 47c239e3da116a0913d749bb3e493d67 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls.main.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls.main.antlrtree.txt index 54e3a7554..d8f1b9dd5 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls.main.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls.main.antlrtree.txt @@ -605,6 +605,4 @@ File: typeAliasConstructorTypeArgumentsInferenceWithNestedCalls.main.kt - ebd6c8 RPAREN(")") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.antlrtree.txt index d891ca3f9..4033136dc 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.antlrtree.txt @@ -1,4 +1,4 @@ -File: typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt - 2911d5582835bb87daefd45eca4bd911 +File: typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt - 05f2a17acba05d675ea650416544bf2c NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.antlrtree.txt index dc73c463f..1363cba43 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.antlrtree.txt @@ -1,4 +1,4 @@ -File: typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt - 2a3411fb64c5dd6b3e115d0ac7649ae8 +File: typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt - e4ef0e6281edd258308def4be082c9a1 NL("\n") NL("\n") NL("\n") @@ -474,6 +474,4 @@ File: typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt - 2a3411fb64 IntegerLiteral("1") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasConstructorWrongClass.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasConstructorWrongClass.antlrtree.txt index ee3690165..4467b1793 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasConstructorWrongClass.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasConstructorWrongClass.antlrtree.txt @@ -679,6 +679,4 @@ File: typeAliasConstructorWrongClass.kt - 4d6260da079e314ffdbe4030c87bebb8 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasConstructorWrongVisibility.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasConstructorWrongVisibility.antlrtree.txt index 4bd190903..9823f07b8 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasConstructorWrongVisibility.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasConstructorWrongVisibility.antlrtree.txt @@ -1,5 +1,4 @@ -File: typeAliasConstructorWrongVisibility.kt - cf181245b39b8f76c726d5d7336215b6 - NL("\n") +File: typeAliasConstructorWrongVisibility.kt - 636296657c5edea02e9e07cc20b7826c NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/typealias/typeAliasExpansionRepeatedAnnotations.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasExpansionRepeatedAnnotations.antlrtree.txt index a9a5bdfb1..18be6d341 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasExpansionRepeatedAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasExpansionRepeatedAnnotations.antlrtree.txt @@ -1,4 +1,4 @@ -File: typeAliasExpansionRepeatedAnnotations.kt - f34b269ab30c1c5f5e71fd6ac0e75cf5 +File: typeAliasExpansionRepeatedAnnotations.kt - 6ad760a5f0b00671b4e12cf4e8e74eb1 packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: typeAliasExpansionRepeatedAnnotations.kt - f34b269ab30c1c5f5e71fd6ac0e75cf modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType @@ -439,6 +439,4 @@ File: typeAliasExpansionRepeatedAnnotations.kt - f34b269ab30c1c5f5e71fd6ac0e75cf primaryExpression simpleIdentifier Identifier("x") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasForProjectionInSuperInterfaces.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasForProjectionInSuperInterfaces.antlrtree.txt index 2aeea0437..7194d4b77 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasForProjectionInSuperInterfaces.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasForProjectionInSuperInterfaces.antlrtree.txt @@ -600,6 +600,4 @@ File: typeAliasForProjectionInSuperInterfaces.kt - b8903ec84fe08083228275efb2c53 simpleIdentifier Identifier("Int") RANGLE(">") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasInAnonymousObjectType.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasInAnonymousObjectType.antlrtree.txt index 9e0b40ae0..935c747c5 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasInAnonymousObjectType.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasInAnonymousObjectType.antlrtree.txt @@ -89,6 +89,4 @@ File: typeAliasInAnonymousObjectType.kt - 98b97bf2fb3a1b10bd67bbabf1959986 LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasInvisibleObject.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasInvisibleObject.antlrtree.txt index aa50f74ad..4c03d0dd3 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasInvisibleObject.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasInvisibleObject.antlrtree.txt @@ -94,6 +94,4 @@ File: typeAliasInvisibleObject.kt - d9162864c0c1155037aa0c701a321679 primaryExpression simpleIdentifier Identifier("C") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasIsUsedAsATypeArgumentInOtherAlias.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasIsUsedAsATypeArgumentInOtherAlias.antlrtree.txt index fa142491b..32665e250 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasIsUsedAsATypeArgumentInOtherAlias.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasIsUsedAsATypeArgumentInOtherAlias.antlrtree.txt @@ -61,6 +61,4 @@ File: typeAliasIsUsedAsATypeArgumentInOtherAlias.kt - f4a32d3f671bb737d0c348618b simpleUserType simpleIdentifier Identifier("Unit") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasObject.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasObject.antlrtree.txt index 0d71002dd..b7e7669e0 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasObject.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasObject.antlrtree.txt @@ -679,6 +679,4 @@ File: typeAliasObject.kt - ad6fb4e950ce6304d8231f1b4892fc7b LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasObjectWithInvoke.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasObjectWithInvoke.antlrtree.txt index fb782e975..6d10472e6 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasObjectWithInvoke.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasObjectWithInvoke.antlrtree.txt @@ -1,4 +1,4 @@ -File: typeAliasObjectWithInvoke.kt - 003f816333aff06732720ba367b50821 +File: typeAliasObjectWithInvoke.kt - 16180d23a9e7456963dda8a3e20065ed NL("\n") NL("\n") NL("\n") @@ -427,6 +427,4 @@ File: typeAliasObjectWithInvoke.kt - 003f816333aff06732720ba367b50821 NullLiteral("null") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typeAliasShouldExpandToClass.antlrtree.txt b/grammar/testData/diagnostics/typealias/typeAliasShouldExpandToClass.antlrtree.txt index 87fc506f8..bf6b59cb0 100644 --- a/grammar/testData/diagnostics/typealias/typeAliasShouldExpandToClass.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typeAliasShouldExpandToClass.antlrtree.txt @@ -1,8 +1,25 @@ -File: typeAliasShouldExpandToClass.kt - 175b9c093eb5da5327f2b1d2af656bcf +File: typeAliasShouldExpandToClass.kt - bddb4ae56aa371dd11f8152e25e5404c + NL("\n") NL("\n") NL("\n") packageHeader importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Dyn") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + DYNAMIC("dynamic") + semis + NL("\n") + NL("\n") topLevelObject declaration typeAlias diff --git a/grammar/testData/diagnostics/typealias/typealiasRhsAnnotations.antlrtree.txt b/grammar/testData/diagnostics/typealias/typealiasRhsAnnotations.antlrtree.txt index 009714a8b..adb2db5da 100644 --- a/grammar/testData/diagnostics/typealias/typealiasRhsAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typealiasRhsAnnotations.antlrtree.txt @@ -1,4 +1,5 @@ -File: typealiasRhsAnnotations.kt - f374cd209563b7ea5969a1f1ddd1e476 +File: typealiasRhsAnnotations.kt - 1532e07511229c6002a080f4f69cb0c8 + NL("\n") packageHeader importList topLevelObject @@ -195,7 +196,6 @@ File: typealiasRhsAnnotations.kt - f374cd209563b7ea5969a1f1ddd1e476 semis NL("\n") NL("\n") - NL("\n") topLevelObject declaration typeAlias diff --git a/grammar/testData/diagnostics/typealias/typealiasRhsAnnotationsInArguments.antlrtree.txt b/grammar/testData/diagnostics/typealias/typealiasRhsAnnotationsInArguments.antlrtree.txt index ef629a21f..253bef076 100644 --- a/grammar/testData/diagnostics/typealias/typealiasRhsAnnotationsInArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typealiasRhsAnnotationsInArguments.antlrtree.txt @@ -219,6 +219,4 @@ File: typealiasRhsAnnotationsInArguments.kt - 973f7f73bd43d2e6e85ca734c1fb6187 primaryExpression simpleIdentifier Identifier("x") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/typealias/typealiasRhsRepeatedAnnotationInArguments.antlrtree.txt b/grammar/testData/diagnostics/typealias/typealiasRhsRepeatedAnnotationInArguments.antlrtree.txt index 28300baac..85164a638 100644 --- a/grammar/testData/diagnostics/typealias/typealiasRhsRepeatedAnnotationInArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typealiasRhsRepeatedAnnotationInArguments.antlrtree.txt @@ -1,4 +1,4 @@ -File: typealiasRhsRepeatedAnnotationInArguments.kt - 154f7088787767d7411a736865673488 +File: typealiasRhsRepeatedAnnotationInArguments.kt - 574a647bf049f27f3c4465717bf163cb packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: typealiasRhsRepeatedAnnotationInArguments.kt - 154f7088787767d7411a7368656 modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType diff --git a/grammar/testData/diagnostics/typealias/typealiasRhsRepeatedAnnotations.antlrtree.txt b/grammar/testData/diagnostics/typealias/typealiasRhsRepeatedAnnotations.antlrtree.txt index fd7165133..30d8433ea 100644 --- a/grammar/testData/diagnostics/typealias/typealiasRhsRepeatedAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/typealiasRhsRepeatedAnnotations.antlrtree.txt @@ -1,4 +1,4 @@ -File: typealiasRhsRepeatedAnnotations.kt - 9073029f34e258d71b8e9f0c2bbabfe2 +File: typealiasRhsRepeatedAnnotations.kt - 2915c450e7d35bbbcae099299c2746e3 packageHeader importList topLevelObject @@ -7,7 +7,7 @@ File: typealiasRhsRepeatedAnnotations.kt - 9073029f34e258d71b8e9f0c2bbabfe2 modifiers annotation singleAnnotation - AT_NO_WS("@") + AT_PRE_WS("\n@") unescapedAnnotation constructorInvocation userType diff --git a/grammar/testData/diagnostics/typealias/unusedTypeAliasParameter.antlrtree.txt b/grammar/testData/diagnostics/typealias/unusedTypeAliasParameter.antlrtree.txt index 704c2e285..653b242fb 100644 --- a/grammar/testData/diagnostics/typealias/unusedTypeAliasParameter.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/unusedTypeAliasParameter.antlrtree.txt @@ -1,4 +1,5 @@ -File: unusedTypeAliasParameter.kt - b90fc6fdff7c36c2cbf65054d064f4f3 +File: unusedTypeAliasParameter.kt - fc875acf6e0bd8a8782b22471aaa8277 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.antlrtree.txt b/grammar/testData/diagnostics/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.antlrtree.txt index 2b31aa85e..b243ce304 100644 --- a/grammar/testData/diagnostics/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.antlrtree.txt @@ -1,5 +1,4 @@ -File: wrongNumberOfArgumentsInTypeAliasConstructor.kt - 994d0a7f4a769679f52f7dc662d73f2f - NL("\n") +File: wrongNumberOfArgumentsInTypeAliasConstructor.kt - fba47c944443c565a4f559f93f978860 NL("\n") NL("\n") packageHeader @@ -2037,6 +2036,4 @@ File: wrongNumberOfArgumentsInTypeAliasConstructor.kt - 994d0a7f4a769679f52f7dc6 QUOTE_CLOSE(""") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/underscoresInNumericLiterals/illegalUnderscores.antlrtree.txt b/grammar/testData/diagnostics/underscoresInNumericLiterals/illegalUnderscores.antlrtree.txt index f22b12848..b57ee12fd 100644 --- a/grammar/testData/diagnostics/underscoresInNumericLiterals/illegalUnderscores.antlrtree.txt +++ b/grammar/testData/diagnostics/underscoresInNumericLiterals/illegalUnderscores.antlrtree.txt @@ -264,6 +264,4 @@ File: illegalUnderscores.kt - 2b50da0c30f9adf4b5de3a7b2308e9e6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/unit/nullableUnit.antlrtree.txt b/grammar/testData/diagnostics/unit/nullableUnit.antlrtree.txt index d5edc6cb0..e34e2260e 100644 --- a/grammar/testData/diagnostics/unit/nullableUnit.antlrtree.txt +++ b/grammar/testData/diagnostics/unit/nullableUnit.antlrtree.txt @@ -136,6 +136,4 @@ File: nullableUnit.kt - 97c6265b12055a835343371cf9052003 NL("\n") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/unitConversion/chainedFunSuspendUnitConversion.antlrtree.txt b/grammar/testData/diagnostics/unitConversion/chainedFunSuspendUnitConversion.antlrtree.txt index ce090e207..9ce2e3740 100644 --- a/grammar/testData/diagnostics/unitConversion/chainedFunSuspendUnitConversion.antlrtree.txt +++ b/grammar/testData/diagnostics/unitConversion/chainedFunSuspendUnitConversion.antlrtree.txt @@ -1,4 +1,4 @@ -File: chainedFunSuspendUnitConversion.kt - b6d6c58f633f0cee08b459633ff188e3 +File: chainedFunSuspendUnitConversion.kt - d354c440682c5f394f3280339c1c1192 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/unitConversion/chainedFunUnitConversion.antlrtree.txt b/grammar/testData/diagnostics/unitConversion/chainedFunUnitConversion.antlrtree.txt index 60b2dd755..aaa703003 100644 --- a/grammar/testData/diagnostics/unitConversion/chainedFunUnitConversion.antlrtree.txt +++ b/grammar/testData/diagnostics/unitConversion/chainedFunUnitConversion.antlrtree.txt @@ -1,4 +1,4 @@ -File: chainedFunUnitConversion.kt - 2d4cad695cdaad016c2d4bcebda69cee +File: chainedFunUnitConversion.kt - 026e9f0ce5a4ecc4254cfcd4baf51a09 NL("\n") NL("\n") NL("\n") @@ -220,6 +220,4 @@ File: chainedFunUnitConversion.kt - 2d4cad695cdaad016c2d4bcebda69cee semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/unitConversion/chainedUnitSuspendConversion.antlrtree.txt b/grammar/testData/diagnostics/unitConversion/chainedUnitSuspendConversion.antlrtree.txt index e66e49c2f..d0815b6c7 100644 --- a/grammar/testData/diagnostics/unitConversion/chainedUnitSuspendConversion.antlrtree.txt +++ b/grammar/testData/diagnostics/unitConversion/chainedUnitSuspendConversion.antlrtree.txt @@ -1,4 +1,4 @@ -File: chainedUnitSuspendConversion.kt - 382c08c4a28f5902e04dd6911a9d13be +File: chainedUnitSuspendConversion.kt - 84f94e613f4547ae9d9bc9f92767cd9b NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/unitConversion/kt49394.antlrtree.txt b/grammar/testData/diagnostics/unitConversion/kt49394.antlrtree.txt new file mode 100644 index 000000000..ed76dc2d1 --- /dev/null +++ b/grammar/testData/diagnostics/unitConversion/kt49394.antlrtree.txt @@ -0,0 +1,179 @@ +File: kt49394.kt - 18217f9b3a01fc8da4f36dc04d7bad20 + packageHeader + importList + topLevelObject + declaration + classDeclaration + FUN("fun") + INTERFACE("interface") + simpleIdentifier + Identifier("Run") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("run") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("handle") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("run") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Run") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("STRING") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("handle") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/unitConversion/noUnitConversionForGenericTypeFromArrow.antlrtree.txt b/grammar/testData/diagnostics/unitConversion/noUnitConversionForGenericTypeFromArrow.antlrtree.txt index 38eb5504f..b41109585 100644 --- a/grammar/testData/diagnostics/unitConversion/noUnitConversionForGenericTypeFromArrow.antlrtree.txt +++ b/grammar/testData/diagnostics/unitConversion/noUnitConversionForGenericTypeFromArrow.antlrtree.txt @@ -269,6 +269,4 @@ File: noUnitConversionForGenericTypeFromArrow.kt - 125821a9210ce10a5352c70368235 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/unitConversion/noUnitConversionOnReturningGenericFunctionalType.antlrtree.txt b/grammar/testData/diagnostics/unitConversion/noUnitConversionOnReturningGenericFunctionalType.antlrtree.txt index 8f61c6518..ff7abf3f4 100644 --- a/grammar/testData/diagnostics/unitConversion/noUnitConversionOnReturningGenericFunctionalType.antlrtree.txt +++ b/grammar/testData/diagnostics/unitConversion/noUnitConversionOnReturningGenericFunctionalType.antlrtree.txt @@ -223,6 +223,4 @@ File: noUnitConversionOnReturningGenericFunctionalType.kt - 75d8b735aa9cdbce2507 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/unitConversion/unitConversionDisabledForSimpleArguments.antlrtree.txt b/grammar/testData/diagnostics/unitConversion/unitConversionDisabledForSimpleArguments.antlrtree.txt index 9248ed558..c8ea6b037 100644 --- a/grammar/testData/diagnostics/unitConversion/unitConversionDisabledForSimpleArguments.antlrtree.txt +++ b/grammar/testData/diagnostics/unitConversion/unitConversionDisabledForSimpleArguments.antlrtree.txt @@ -1,4 +1,4 @@ -File: unitConversionDisabledForSimpleArguments.kt - 523a523b81f142c66f1376ad97e82936 +File: unitConversionDisabledForSimpleArguments.kt - 459f8e65f75d30f5938ecfdf3a70bb76 NL("\n") NL("\n") NL("\n") @@ -608,6 +608,4 @@ File: unitConversionDisabledForSimpleArguments.kt - 523a523b81f142c66f1376ad97e8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/unitConversion/unitConversionForAllKinds.antlrtree.txt b/grammar/testData/diagnostics/unitConversion/unitConversionForAllKinds.antlrtree.txt index 57cec8bd4..47304854c 100644 --- a/grammar/testData/diagnostics/unitConversion/unitConversionForAllKinds.antlrtree.txt +++ b/grammar/testData/diagnostics/unitConversion/unitConversionForAllKinds.antlrtree.txt @@ -1,4 +1,4 @@ -File: unitConversionForAllKinds.kt - aba6c0e0c2f4389427788dbdb793d528 +File: unitConversionForAllKinds.kt - ee38180044f21e0d3eef3b876cd50357 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/unitConversion/unitConversionForSubtypes.antlrtree.txt b/grammar/testData/diagnostics/unitConversion/unitConversionForSubtypes.antlrtree.txt index 8bfebb985..819e554b8 100644 --- a/grammar/testData/diagnostics/unitConversion/unitConversionForSubtypes.antlrtree.txt +++ b/grammar/testData/diagnostics/unitConversion/unitConversionForSubtypes.antlrtree.txt @@ -1,4 +1,4 @@ -File: unitConversionForSubtypes.kt - 3c7232375e3fdd236f0769a3003030a8 +File: unitConversionForSubtypes.kt - d797551904aa862ae30b1501131679c3 NL("\n") NL("\n") NL("\n") @@ -566,6 +566,4 @@ File: unitConversionForSubtypes.kt - 3c7232375e3fdd236f0769a3003030a8 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/unproperDefaultInitializationInTailrec.antlrtree.txt b/grammar/testData/diagnostics/unproperDefaultInitializationInTailrec.antlrtree.txt index 571818fb7..26934c46f 100644 --- a/grammar/testData/diagnostics/unproperDefaultInitializationInTailrec.antlrtree.txt +++ b/grammar/testData/diagnostics/unproperDefaultInitializationInTailrec.antlrtree.txt @@ -1543,6 +1543,4 @@ File: unproperDefaultInitializationInTailrec.kt - f3f570d678ac069015dabb6d03d314 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/unsignedTypes/callDefaultConstructorOfUnsignedType.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/callDefaultConstructorOfUnsignedType.antlrtree.txt index 90a0c7222..7d0607842 100644 --- a/grammar/testData/diagnostics/unsignedTypes/callDefaultConstructorOfUnsignedType.antlrtree.txt +++ b/grammar/testData/diagnostics/unsignedTypes/callDefaultConstructorOfUnsignedType.antlrtree.txt @@ -33,6 +33,4 @@ File: callDefaultConstructorOfUnsignedType.kt - 9925b6d65aab52aed4125661d9b1bfe4 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/unsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.antlrtree.txt index fc25320a3..be2033fd4 100644 --- a/grammar/testData/diagnostics/unsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/unsignedTypes/conversions/inferenceForSignedAndUnsignedTypes.antlrtree.txt @@ -1,5 +1,4 @@ -File: inferenceForSignedAndUnsignedTypes.kt - 6a92a4b9bea0edf3ef6a3370c81d941f - NL("\n") +File: inferenceForSignedAndUnsignedTypes.kt - 185e44c98215b6c7a25322c5de35cf1d NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/unsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.antlrtree.txt index c22ec93a9..d62de0c03 100644 --- a/grammar/testData/diagnostics/unsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/unsignedTypes/conversions/signedToUnsignedConversionWithExpectedType.antlrtree.txt @@ -1,5 +1,4 @@ -File: signedToUnsignedConversionWithExpectedType.kt - aae5bcff132870e1aeb131a93d7febdc - NL("\n") +File: signedToUnsignedConversionWithExpectedType.kt - 5cf0fceafef7e272660c3ef7e61ca85a NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/unsignedTypes/forbiddenEqualsOnUnsignedTypes.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/forbiddenEqualsOnUnsignedTypes.antlrtree.txt index 6e3b36316..97c5977b5 100644 --- a/grammar/testData/diagnostics/unsignedTypes/forbiddenEqualsOnUnsignedTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/unsignedTypes/forbiddenEqualsOnUnsignedTypes.antlrtree.txt @@ -722,6 +722,4 @@ File: forbiddenEqualsOnUnsignedTypes.kt - b6530849c898b85870fbde55a79be71e Identifier("bu2") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/unsignedTypes/lateinitUnsignedType.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/lateinitUnsignedType.antlrtree.txt index 54d352c5f..3c2f53e8e 100644 --- a/grammar/testData/diagnostics/unsignedTypes/lateinitUnsignedType.antlrtree.txt +++ b/grammar/testData/diagnostics/unsignedTypes/lateinitUnsignedType.antlrtree.txt @@ -97,6 +97,4 @@ File: lateinitUnsignedType.kt - 65e2119dabbde7851f1513801d8b3e4c Identifier("ULong") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/unsignedTypes/overloadResolutionOfBasicOperations.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/overloadResolutionOfBasicOperations.antlrtree.txt index 55bfb4dc5..47a57d3d3 100644 --- a/grammar/testData/diagnostics/unsignedTypes/overloadResolutionOfBasicOperations.antlrtree.txt +++ b/grammar/testData/diagnostics/unsignedTypes/overloadResolutionOfBasicOperations.antlrtree.txt @@ -99,6 +99,4 @@ File: overloadResolutionOfBasicOperations.kt - 932e6b29db31dfa4dc515babf909bc65 UnsignedLiteral("3u") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/unsignedTypes/unsignedLiteralsInsideConstVals.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/unsignedLiteralsInsideConstVals.antlrtree.txt index 64c4d0ffc..2ff19c786 100644 --- a/grammar/testData/diagnostics/unsignedTypes/unsignedLiteralsInsideConstVals.antlrtree.txt +++ b/grammar/testData/diagnostics/unsignedTypes/unsignedLiteralsInsideConstVals.antlrtree.txt @@ -380,6 +380,4 @@ File: unsignedLiteralsInsideConstVals.kt - a05921ec6b2c44157715371d5340e025 primaryExpression literalConstant UnsignedLiteral("0xFFFF_FFFF_FFFFuL") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/unsignedTypes/unsignedLiteralsOverflowSignedBorder.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/unsignedLiteralsOverflowSignedBorder.antlrtree.txt index a498be92d..62812e3a5 100644 --- a/grammar/testData/diagnostics/unsignedTypes/unsignedLiteralsOverflowSignedBorder.antlrtree.txt +++ b/grammar/testData/diagnostics/unsignedTypes/unsignedLiteralsOverflowSignedBorder.antlrtree.txt @@ -571,6 +571,4 @@ File: unsignedLiteralsOverflowSignedBorder.kt - b4974c9a512e92532c54611cb05ed96d literalConstant UnsignedLiteral("18446744073709551616u") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/unsignedTypes/unsignedLiteralsTypeCheck.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/unsignedLiteralsTypeCheck.antlrtree.txt index b1fcf3ad9..ce23db398 100644 --- a/grammar/testData/diagnostics/unsignedTypes/unsignedLiteralsTypeCheck.antlrtree.txt +++ b/grammar/testData/diagnostics/unsignedTypes/unsignedLiteralsTypeCheck.antlrtree.txt @@ -528,6 +528,4 @@ File: unsignedLiteralsTypeCheck.kt - 3b023715ba5460cc5d9365191cd89730 literalConstant UnsignedLiteral("0b11u") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/unsignedTypes/wrongLongSuffixForULong.antlrtree.txt b/grammar/testData/diagnostics/unsignedTypes/wrongLongSuffixForULong.antlrtree.txt index 08b91d46f..d7aeb4a83 100644 --- a/grammar/testData/diagnostics/unsignedTypes/wrongLongSuffixForULong.antlrtree.txt +++ b/grammar/testData/diagnostics/unsignedTypes/wrongLongSuffixForULong.antlrtree.txt @@ -1,4 +1,5 @@ -File: wrongLongSuffixForULong.kt - e0043175dad73b40f94b03c7897edf46 +File: wrongLongSuffixForULong.kt - 5d6da1815829b81c9e28f7f708dd36f3 + NL("\n") packageHeader importList topLevelObject @@ -109,6 +110,4 @@ File: wrongLongSuffixForULong.kt - e0043175dad73b40f94b03c7897edf46 literalConstant UnsignedLiteral("1Ul") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/valueClasses/basicValueClassDeclaration.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/basicValueClassDeclaration.antlrtree.txt index 3e6e18c15..e3b637aa7 100644 --- a/grammar/testData/diagnostics/valueClasses/basicValueClassDeclaration.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/basicValueClassDeclaration.antlrtree.txt @@ -1,4 +1,5 @@ -File: basicValueClassDeclaration.kt - 6dfdd1358843ee90b7a9ab7323ff0120 +File: basicValueClassDeclaration.kt - 43d4679fcc1f8eb8b84ea671c8e51de4 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/basicValueClassDeclarationDisabled.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/basicValueClassDeclarationDisabled.antlrtree.txt index 7b5dbf377..528addf75 100644 --- a/grammar/testData/diagnostics/valueClasses/basicValueClassDeclarationDisabled.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/basicValueClassDeclarationDisabled.antlrtree.txt @@ -1,4 +1,5 @@ -File: basicValueClassDeclarationDisabled.kt - 73bea9109a5219c885b1753485addd99 +File: basicValueClassDeclarationDisabled.kt - 635f056e27ebca46746cdfdfaaba5d44 + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/valueClasses/recursiveMultiFieldValueClasses.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/recursiveMultiFieldValueClasses.antlrtree.txt new file mode 100644 index 000000000..9fdd72da2 --- /dev/null +++ b/grammar/testData/diagnostics/valueClasses/recursiveMultiFieldValueClasses.antlrtree.txt @@ -0,0 +1,1386 @@ +File: recursiveMultiFieldValueClasses.kt - 8646e3c55df55c1efba323d4fa766f87 (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("A1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A1") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("B1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B1") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B1") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("A2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B2") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("B2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A2") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A2") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("A3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B3") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("B3") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A3") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("A4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B4") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B4") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("B4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A4") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A4") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("C4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D4") + quest + QUEST_NO_WS("?") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D4") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("D4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D4") + quest + QUEST_NO_WS("?") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C4") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("E4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("E4") + quest + QUEST_NO_WS("?") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("F4") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("F4") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("A5") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A5") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("B5") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B5") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("A6") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B6") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("B6") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A6") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("A7") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B7") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("B7") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A7") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("A8") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B8") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("B8") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A8") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I1") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I2") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("G") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + quest + QUEST_NO_WS("?") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("t1") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("t2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("UInt") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("t3") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("G") + quest + QUEST_NO_WS("?") + RANGLE(">") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("t4") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("UInt") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("t5") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("t6") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("t7") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("t8") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("t9") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("t10") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Char") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("t11") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + COMMA(",") + RPAREN(")") + typeConstraints + WHERE("where") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I1") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + quest + QUEST_NO_WS("?") + COMMA(",") + typeConstraint + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("I2") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("UInt") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + RANGLE(">") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I1") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I2") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("UInt") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/valueClasses/unsignedLiteralsWithoutArtifactOnClasspath.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/unsignedLiteralsWithoutArtifactOnClasspath.antlrtree.txt index 678eb7af2..053fb0be6 100644 --- a/grammar/testData/diagnostics/valueClasses/unsignedLiteralsWithoutArtifactOnClasspath.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/unsignedLiteralsWithoutArtifactOnClasspath.antlrtree.txt @@ -81,6 +81,4 @@ File: unsignedLiteralsWithoutArtifactOnClasspath.kt - 58bd48b14280b2471667cc1ff1 primaryExpression literalConstant UnsignedLiteral("0b1u") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.antlrtree.txt new file mode 100644 index 000000000..2aab5416d --- /dev/null +++ b/grammar/testData/diagnostics/valueClasses/valueClassWithForbiddenUnderlyingTypeMultiField.antlrtree.txt @@ -0,0 +1,685 @@ +File: valueClassWithForbiddenUnderlyingTypeMultiField.kt - e9b7d78a4ca22f934a548091c275f73a (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("Empty") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("FooNullable") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("FooGenericArray") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("FooGenericArray2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("FooStarProjectedArray") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("FooStarProjectedArray2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RANGLE(">") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("Bar") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("u") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("BarNullable") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("u") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + quest + QUEST_NO_WS("?") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("Baz") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("u") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("Baz1") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("u") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("Baz2") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("u") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + RPAREN(")") + semis + NL("\n") + NL("\n") + Identifier("OPTIONAL_JVM_INLINE_ANNOTATION") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + VALUE("value") + CLASS("class") + simpleIdentifier + Identifier("BazNullable") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + Identifier("u") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + quest + QUEST_NO_WS("?") + COMMA(",") + classParameter + VAL("val") + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + quest + QUEST_NO_WS("?") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/valueClasses/valueClassesInsideAnnotations.antlrtree.txt b/grammar/testData/diagnostics/valueClasses/valueClassesInsideAnnotations.antlrtree.txt index 7372e6ba8..e6d854f9e 100644 --- a/grammar/testData/diagnostics/valueClasses/valueClassesInsideAnnotations.antlrtree.txt +++ b/grammar/testData/diagnostics/valueClasses/valueClassesInsideAnnotations.antlrtree.txt @@ -1,4 +1,5 @@ -File: valueClassesInsideAnnotations.kt - e94d3938a5ad2783d32003cac580b10e +File: valueClassesInsideAnnotations.kt - 37953e12924ffe77d08a07c68a43f8be + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/varargs/AmbiguousVararg.antlrtree.txt b/grammar/testData/diagnostics/varargs/AmbiguousVararg.antlrtree.txt index bd855c933..16778dc3e 100644 --- a/grammar/testData/diagnostics/varargs/AmbiguousVararg.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/AmbiguousVararg.antlrtree.txt @@ -1,4 +1,4 @@ -File: AmbiguousVararg.kt - 08c3a88a8af26494a4b9e3b2fdca7546 +File: AmbiguousVararg.kt - 1e0d7c0aaafdb04c515ed6b0b09cfd95 packageHeader importList topLevelObject @@ -138,5 +138,5 @@ File: AmbiguousVararg.kt - 08c3a88a8af26494a4b9e3b2fdca7546 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/varargs/MoreSpecificVarargsOfEqualLength.antlrtree.txt b/grammar/testData/diagnostics/varargs/MoreSpecificVarargsOfEqualLength.antlrtree.txt index 4d66ddf73..a43122623 100644 --- a/grammar/testData/diagnostics/varargs/MoreSpecificVarargsOfEqualLength.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/MoreSpecificVarargsOfEqualLength.antlrtree.txt @@ -1,4 +1,5 @@ -File: MoreSpecificVarargsOfEqualLength.kt - e3a7c9726ff5c4aeb576d5d06d373fe4 +File: MoreSpecificVarargsOfEqualLength.kt - 87380e59ff6f51aaaefa4bc6b2f41461 + NL("\n") packageHeader importList topLevelObject @@ -206,5 +207,5 @@ File: MoreSpecificVarargsOfEqualLength.kt - e3a7c9726ff5c4aeb576d5d06d373fe4 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/varargs/NilaryVsVararg.antlrtree.txt b/grammar/testData/diagnostics/varargs/NilaryVsVararg.antlrtree.txt index c396bdffe..8099db83b 100644 --- a/grammar/testData/diagnostics/varargs/NilaryVsVararg.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/NilaryVsVararg.antlrtree.txt @@ -1,4 +1,5 @@ -File: NilaryVsVararg.kt - f52c5ef013be269d2c32e666579352a0 +File: NilaryVsVararg.kt - 9dc5d732afbbd5facc75bc13c4a5d009 + NL("\n") packageHeader importList topLevelObject @@ -286,5 +287,5 @@ File: NilaryVsVararg.kt - f52c5ef013be269d2c32e666579352a0 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/varargs/UnaryVsVararg.antlrtree.txt b/grammar/testData/diagnostics/varargs/UnaryVsVararg.antlrtree.txt index 0f0d30805..6a2d9e4e1 100644 --- a/grammar/testData/diagnostics/varargs/UnaryVsVararg.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/UnaryVsVararg.antlrtree.txt @@ -1,4 +1,5 @@ -File: UnaryVsVararg.kt - b370e0ac876dc18f346845cdb16c0917 +File: UnaryVsVararg.kt - f600bafdbd35678eef9addef17ad41eb + NL("\n") packageHeader importList topLevelObject @@ -303,5 +304,5 @@ File: UnaryVsVararg.kt - b370e0ac876dc18f346845cdb16c0917 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/varargs/assignArrayToVararagInNamedForm_1_3.antlrtree.txt b/grammar/testData/diagnostics/varargs/assignArrayToVararagInNamedForm_1_3.antlrtree.txt index 99c4c5f27..0c6e363ae 100644 --- a/grammar/testData/diagnostics/varargs/assignArrayToVararagInNamedForm_1_3.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/assignArrayToVararagInNamedForm_1_3.antlrtree.txt @@ -1,5 +1,4 @@ -File: assignArrayToVararagInNamedForm_1_3.kt - baf38722bdc9af7d69e8ae9f691e12e7 - NL("\n") +File: assignArrayToVararagInNamedForm_1_3.kt - 177b30d9f9e080a4e2f90692f56f49d3 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/varargs/assignArrayToVararagInNamedForm_1_4.antlrtree.txt b/grammar/testData/diagnostics/varargs/assignArrayToVararagInNamedForm_1_4.antlrtree.txt index c7dfecf6b..2e37ca862 100644 --- a/grammar/testData/diagnostics/varargs/assignArrayToVararagInNamedForm_1_4.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/assignArrayToVararagInNamedForm_1_4.antlrtree.txt @@ -1,5 +1,4 @@ -File: assignArrayToVararagInNamedForm_1_4.kt - e9eae68a737f89ccb9efbe398f7b2684 - NL("\n") +File: assignArrayToVararagInNamedForm_1_4.kt - 52d52cf7497b5efacaa2ac779ab8893c NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/varargs/assignNonConstSingleArrayElementAsVarargInAnnotationError.antlrtree.txt b/grammar/testData/diagnostics/varargs/assignNonConstSingleArrayElementAsVarargInAnnotationError.antlrtree.txt index 8775f71cb..bf6a85ceb 100644 --- a/grammar/testData/diagnostics/varargs/assignNonConstSingleArrayElementAsVarargInAnnotationError.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/assignNonConstSingleArrayElementAsVarargInAnnotationError.antlrtree.txt @@ -1,4 +1,5 @@ -File: assignNonConstSingleArrayElementAsVarargInAnnotationError.kt - 2fd313f796e8243f3ed1c574e6b87e09 +File: assignNonConstSingleArrayElementAsVarargInAnnotationError.kt - 9038da6be560847363c86ed3fab9a18b + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/varargs/assigningSingleElementsInNamedFormFunDeprecation_after.antlrtree.txt b/grammar/testData/diagnostics/varargs/assigningSingleElementsInNamedFormFunDeprecation_after.antlrtree.txt index 75e3a6175..b842e265e 100644 --- a/grammar/testData/diagnostics/varargs/assigningSingleElementsInNamedFormFunDeprecation_after.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/assigningSingleElementsInNamedFormFunDeprecation_after.antlrtree.txt @@ -1,5 +1,4 @@ -File: assigningSingleElementsInNamedFormFunDeprecation_after.kt - b3966574ae208f4d33f312d602069a32 - NL("\n") +File: assigningSingleElementsInNamedFormFunDeprecation_after.kt - 44071598a9163fe0b4a46b6211d0291e NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.antlrtree.txt b/grammar/testData/diagnostics/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.antlrtree.txt index 9ca4c5b56..e84298137 100644 --- a/grammar/testData/diagnostics/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/assigningSingleElementsInNamedFormFunDeprecation_before.antlrtree.txt @@ -1,5 +1,4 @@ -File: assigningSingleElementsInNamedFormFunDeprecation_before.kt - 38636d052448e5bfdc94d27ea0bc5996 - NL("\n") +File: assigningSingleElementsInNamedFormFunDeprecation_before.kt - cc887d874f887d59ba94d7fb2e368ed1 NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/varargs/kt10926.antlrtree.txt b/grammar/testData/diagnostics/varargs/kt10926.antlrtree.txt new file mode 100644 index 000000000..f7561e9b1 --- /dev/null +++ b/grammar/testData/diagnostics/varargs/kt10926.antlrtree.txt @@ -0,0 +1,7096 @@ +File: kt10926.kt - 94398f0291f6a7cd39cdaf57b6e3814d + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AllCollection2") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("addAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("addAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + COMMA(",") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AllCollection2") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arrayOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("values2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arrayOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AllCollection") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Iterable") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll6") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll6") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll7") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll7") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll8") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll8") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll9") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll9") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll10") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll10") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll11") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll11") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll12") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll12") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll13") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll13") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll14") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll14") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll15") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll15") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll16") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll16") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll17") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll17") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll18") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll18") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll19") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll19") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll20") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll20") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll21") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll21") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll22") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll22") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll23") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll23") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll24") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + COMMA(",") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll24") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll25") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll25") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll26") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("addAll26") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("addAll28") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("addAll28") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + COMMA(",") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("box") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AllCollection") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AllCollection") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll1") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x3") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x4") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll4") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x5") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll5") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x6") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll6") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x7") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll7") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x8") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll8") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x9") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll9") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x10") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll10") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x11") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll11") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x12") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll12") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x13") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll13") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x14") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll14") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x15") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll15") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x16") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll16") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x17") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll17") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x18") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll18") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x19") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll19") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x20") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll20") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x21") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll21") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x22") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll22") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x23") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll23") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x24") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll24") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x25") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll25") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x26") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll26") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("listOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("all") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arrayOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x1") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x2") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x3") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x4") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x5") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x6") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x7") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x8") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x9") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x10") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x11") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x12") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x13") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x14") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x15") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x16") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x17") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x18") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x19") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x20") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x21") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x22") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x23") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x24") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x25") + COMMA(",") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x26") + RPAREN(")") + NL("\n") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("all") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("all") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("it") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + RCURL("}") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("NOK") + QUOTE_CLOSE(""") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/varargs/kt10926EnabledFeature.antlrtree.txt b/grammar/testData/diagnostics/varargs/kt10926EnabledFeature.antlrtree.txt new file mode 100644 index 000000000..a6fa5b20f --- /dev/null +++ b/grammar/testData/diagnostics/varargs/kt10926EnabledFeature.antlrtree.txt @@ -0,0 +1,353 @@ +File: kt10926EnabledFeature.kt - 66b12e4e5995b84e09144899f5e17995 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("AllCollection") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("addAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("OK") + QUOTE_CLOSE(""") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("addAll") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("values") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + COMMA(",") + functionValueParameter + parameterModifiers + parameterModifier + VARARG("vararg") + parameter + simpleIdentifier + Identifier("values2") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("c") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("AllCollection") + typeArguments + LANGLE("<") + typeProjection + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("c") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("addAll") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arrayOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + COMMA(",") + valueArgument + simpleIdentifier + Identifier("values2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arrayOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/varargs/kt1835.kotlin.antlrtree.txt b/grammar/testData/diagnostics/varargs/kt1835.kotlin.antlrtree.txt index 571c0cb68..b1c7a4bb7 100644 --- a/grammar/testData/diagnostics/varargs/kt1835.kotlin.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/kt1835.kotlin.antlrtree.txt @@ -191,6 +191,4 @@ File: kt1835.kotlin.kt - 4e91a0c7878c96f2cdfa415f3e011fe2 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/varargs/kt1838-param.antlrtree.txt b/grammar/testData/diagnostics/varargs/kt1838-param.antlrtree.txt index 0e191c07e..c93b827e2 100644 --- a/grammar/testData/diagnostics/varargs/kt1838-param.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/kt1838-param.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt1838-param.kt - 30f770bdedff3bb748cff55bf45fca57 +File: kt1838-param.kt - cd9d9e39bb4016f8a89acdf066e7f45b + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/varargs/kt1838-val.antlrtree.txt b/grammar/testData/diagnostics/varargs/kt1838-val.antlrtree.txt index c3dc4fab5..5702ca726 100644 --- a/grammar/testData/diagnostics/varargs/kt1838-val.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/kt1838-val.antlrtree.txt @@ -1,4 +1,5 @@ -File: kt1838-val.kt - 3f7d3ef3b5f791ba07b73bf2902ac62b +File: kt1838-val.kt - 7d6cf3a53f6e2b17b79bebb299605374 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/varargs/kt2163.antlrtree.txt b/grammar/testData/diagnostics/varargs/kt2163.antlrtree.txt index a03258a79..b81dedfd9 100644 --- a/grammar/testData/diagnostics/varargs/kt2163.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/kt2163.antlrtree.txt @@ -117,6 +117,4 @@ File: kt2163.kt - ed83ed9fe681179f4c3e7bf07a55dc26 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/varargs/kt422.antlrtree.txt b/grammar/testData/diagnostics/varargs/kt422.antlrtree.txt index c5db838c3..8c9c80a4e 100644 --- a/grammar/testData/diagnostics/varargs/kt422.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/kt422.antlrtree.txt @@ -499,6 +499,4 @@ File: kt422.kt - d1cff53ab975366e39d44d8e406d19ff semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/varargs/kt48162.antlrtree.txt b/grammar/testData/diagnostics/varargs/kt48162.antlrtree.txt new file mode 100644 index 000000000..226374627 --- /dev/null +++ b/grammar/testData/diagnostics/varargs/kt48162.antlrtree.txt @@ -0,0 +1,878 @@ +File: kt48162.kt - 87675192f0a61272786adc7e70148b42 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("toArray") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + DOT(".") + simpleIdentifier + Identifier("toArray2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("toArray3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("plus") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("use") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("s") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Collection") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arr") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + MULT("*") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arr") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + MULT("*") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toArray") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arr") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + MULT("*") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("toArray2") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arr") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + MULT("*") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("toArray3") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arr") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + MULT("*") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arr") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + MULT("*") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("arr") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/varargs/prohibitAssigningSingleElementsInNamedForm.antlrtree.txt b/grammar/testData/diagnostics/varargs/prohibitAssigningSingleElementsInNamedForm.antlrtree.txt index 074253660..aeea32c31 100644 --- a/grammar/testData/diagnostics/varargs/prohibitAssigningSingleElementsInNamedForm.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/prohibitAssigningSingleElementsInNamedForm.antlrtree.txt @@ -1,4 +1,4 @@ -File: prohibitAssigningSingleElementsInNamedForm.kt - 56f3376d17594f836a2b88872ab0465f +File: prohibitAssigningSingleElementsInNamedForm.kt - 619d87527f5951741566a6a9c18dce89 NL("\n") NL("\n") NL("\n") @@ -314,6 +314,175 @@ File: prohibitAssigningSingleElementsInNamedForm.kt - 56f3376d17594f836a2b88872a RCURL("}") semis NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Anno1") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arrayOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("elements") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("foo") + QUOTE_CLOSE(""") + RPAREN(")") + RPAREN(")") + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Anno2") + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("i") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intArrayOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + simpleIdentifier + Identifier("elements") + ASSIGNMENT("=") + MULT("*") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("intArrayOf") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + RPAREN(")") + RPAREN(")") + NL("\n") + FUN("fun") + simpleIdentifier + Identifier("f3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") NL("\n") topLevelObject declaration diff --git a/grammar/testData/diagnostics/varargs/varargInSetter.antlrtree.txt b/grammar/testData/diagnostics/varargs/varargInSetter.antlrtree.txt index 905255174..460327e8d 100644 --- a/grammar/testData/diagnostics/varargs/varargInSetter.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/varargInSetter.antlrtree.txt @@ -93,6 +93,4 @@ File: varargInSetter.kt - 870a4a8835a2607b1e79de09a31661ab semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/varargs/varargIterator.antlrtree.txt b/grammar/testData/diagnostics/varargs/varargIterator.antlrtree.txt index 7d4d0581b..c8ed9d58a 100644 --- a/grammar/testData/diagnostics/varargs/varargIterator.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/varargIterator.antlrtree.txt @@ -99,6 +99,4 @@ File: varargIterator.kt - cb3818383126a5b9ac4e6e1d4cfe11c5 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/varargs/varargsAndFunctionLiterals.antlrtree.txt b/grammar/testData/diagnostics/varargs/varargsAndFunctionLiterals.antlrtree.txt index 394afcc96..a00e741b5 100644 --- a/grammar/testData/diagnostics/varargs/varargsAndFunctionLiterals.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/varargsAndFunctionLiterals.antlrtree.txt @@ -1,4 +1,5 @@ -File: varargsAndFunctionLiterals.kt - 5c2aac1c1488b41fa0dc4929de2ea08b +File: varargsAndFunctionLiterals.kt - a691c99385cf7c63f8381a6c065464ee + NL("\n") packageHeader importList topLevelObject @@ -250,5 +251,5 @@ File: varargsAndFunctionLiterals.kt - 5c2aac1c1488b41fa0dc4929de2ea08b NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/varargs/varargsAndOut1.antlrtree.txt b/grammar/testData/diagnostics/varargs/varargsAndOut1.antlrtree.txt index 3a1288928..9cce06dd5 100644 --- a/grammar/testData/diagnostics/varargs/varargsAndOut1.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/varargsAndOut1.antlrtree.txt @@ -424,6 +424,4 @@ File: varargsAndOut1.kt - 045f769c377a3528a686ed1b339f1ab8 primaryExpression simpleIdentifier Identifier("a") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/varargs/varargsAndOut2.antlrtree.txt b/grammar/testData/diagnostics/varargs/varargsAndOut2.antlrtree.txt index 6eea75813..095fab2aa 100644 --- a/grammar/testData/diagnostics/varargs/varargsAndOut2.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/varargsAndOut2.antlrtree.txt @@ -300,6 +300,4 @@ File: varargsAndOut2.kt - f14cbaab9198a1cedb81b450992843ed semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/varargs/varargsAndPair.antlrtree.txt b/grammar/testData/diagnostics/varargs/varargsAndPair.antlrtree.txt index b47e827eb..22b4db142 100644 --- a/grammar/testData/diagnostics/varargs/varargsAndPair.antlrtree.txt +++ b/grammar/testData/diagnostics/varargs/varargsAndPair.antlrtree.txt @@ -1,4 +1,4 @@ -File: varargsAndPair.kt - d9791c2762678cfcb9d7e9e56b4b4d3a +File: varargsAndPair.kt - b8a5ddac8f04e0eb0d3c73e17db64a7b NL("\n") NL("\n") packageHeader @@ -249,5 +249,5 @@ File: varargsAndPair.kt - d9791c2762678cfcb9d7e9e56b4b4d3a NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/variance/Class.antlrtree.txt b/grammar/testData/diagnostics/variance/Class.antlrtree.txt index 61eb70092..cd71ea0f1 100644 --- a/grammar/testData/diagnostics/variance/Class.antlrtree.txt +++ b/grammar/testData/diagnostics/variance/Class.antlrtree.txt @@ -1,4 +1,5 @@ -File: Class.kt - e27620dc438ae4f113ceb7c950919637 +File: Class.kt - 1dfcb1c41ed4e33be319dfcc9f748508 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/variance/Function.antlrtree.txt b/grammar/testData/diagnostics/variance/Function.antlrtree.txt index 385249957..4e84dd78c 100644 --- a/grammar/testData/diagnostics/variance/Function.antlrtree.txt +++ b/grammar/testData/diagnostics/variance/Function.antlrtree.txt @@ -1,4 +1,5 @@ -File: Function.kt - c33073cd032237af9c8b5f9f6dffa14e +File: Function.kt - 618af75fdf3b06910c4cf67a70955f98 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/variance/FunctionTypes.antlrtree.txt b/grammar/testData/diagnostics/variance/FunctionTypes.antlrtree.txt index d24aa49b3..0836c207b 100644 --- a/grammar/testData/diagnostics/variance/FunctionTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/variance/FunctionTypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: FunctionTypes.kt - 276a98e04ddf643145182f1a2f5018a2 +File: FunctionTypes.kt - 08d1e4e472187a2ca4beac9bb391d215 + NL("\n") packageHeader importList topLevelObject @@ -518,5 +519,5 @@ File: FunctionTypes.kt - 276a98e04ddf643145182f1a2f5018a2 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/variance/NullableTypes.antlrtree.txt b/grammar/testData/diagnostics/variance/NullableTypes.antlrtree.txt index 322d44ec1..2eb5902ff 100644 --- a/grammar/testData/diagnostics/variance/NullableTypes.antlrtree.txt +++ b/grammar/testData/diagnostics/variance/NullableTypes.antlrtree.txt @@ -1,4 +1,5 @@ -File: NullableTypes.kt - 0218d613da737ddde2b94d23d4cbc190 +File: NullableTypes.kt - f94aeb272a99117638f096387d0b3fe1 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/variance/OutPosition.antlrtree.txt b/grammar/testData/diagnostics/variance/OutPosition.antlrtree.txt index d347d0ed4..f830ee0ae 100644 --- a/grammar/testData/diagnostics/variance/OutPosition.antlrtree.txt +++ b/grammar/testData/diagnostics/variance/OutPosition.antlrtree.txt @@ -1,4 +1,4 @@ -File: OutPosition.kt - d589d506dce6baaad795b96dd28adcfd (WITH_ERRORS) +File: OutPosition.kt - 1d6b8e5fe8b4627c6276da63d3727e50 (WITH_ERRORS) NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/variance/PrimaryConstructor.antlrtree.txt b/grammar/testData/diagnostics/variance/PrimaryConstructor.antlrtree.txt index 8677e0514..736c096f5 100644 --- a/grammar/testData/diagnostics/variance/PrimaryConstructor.antlrtree.txt +++ b/grammar/testData/diagnostics/variance/PrimaryConstructor.antlrtree.txt @@ -1,4 +1,5 @@ -File: PrimaryConstructor.kt - 5d4c692c94155b81cd8abe8ee49c5cc5 +File: PrimaryConstructor.kt - c283a11d41f66bd36ce9555beb677f84 + NL("\n") packageHeader importList topLevelObject diff --git a/grammar/testData/diagnostics/variance/ValProperty.antlrtree.txt b/grammar/testData/diagnostics/variance/ValProperty.antlrtree.txt index a3886fb6f..c28cfea1e 100644 --- a/grammar/testData/diagnostics/variance/ValProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/variance/ValProperty.antlrtree.txt @@ -1,4 +1,5 @@ -File: ValProperty.kt - 67ded0e25589e922d00d03e95b614d6c +File: ValProperty.kt - 46530a359a8587449c11a431bc8eb5c0 + NL("\n") packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/variance/VarProperty.antlrtree.txt b/grammar/testData/diagnostics/variance/VarProperty.antlrtree.txt index 3ad9ad246..6083a8b1c 100644 --- a/grammar/testData/diagnostics/variance/VarProperty.antlrtree.txt +++ b/grammar/testData/diagnostics/variance/VarProperty.antlrtree.txt @@ -1,4 +1,5 @@ -File: VarProperty.kt - 06ce642dee669ce00175c5c53db10a50 +File: VarProperty.kt - f4dbcc45f9ec621bb63a7fb7aae31cfa + NL("\n") packageHeader importList importHeader diff --git a/grammar/testData/diagnostics/variance/Visibility.antlrtree.txt b/grammar/testData/diagnostics/variance/Visibility.antlrtree.txt index 7da19158e..9dc64793b 100644 --- a/grammar/testData/diagnostics/variance/Visibility.antlrtree.txt +++ b/grammar/testData/diagnostics/variance/Visibility.antlrtree.txt @@ -1,4 +1,5 @@ -File: Visibility.kt - ce3d4ed9db2a81275752a3cf931cebc0 +File: Visibility.kt - 3dc6df43a47f9d8947113ef07462024c + NL("\n") packageHeader importList topLevelObject @@ -337,5 +338,5 @@ File: Visibility.kt - ce3d4ed9db2a81275752a3cf931cebc0 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/variance/privateToThis/ValReassigned.antlrtree.txt b/grammar/testData/diagnostics/variance/privateToThis/ValReassigned.antlrtree.txt index fbe60ba04..9a779b9fd 100644 --- a/grammar/testData/diagnostics/variance/privateToThis/ValReassigned.antlrtree.txt +++ b/grammar/testData/diagnostics/variance/privateToThis/ValReassigned.antlrtree.txt @@ -341,6 +341,4 @@ File: ValReassigned.kt - f4dbbc53c4104ffe5ac4fc2d3b6ab71e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/visibility/innerClassDelegatingConstructorCallToPrivate.antlrtree.txt b/grammar/testData/diagnostics/visibility/innerClassDelegatingConstructorCallToPrivate.antlrtree.txt new file mode 100644 index 000000000..971095b1c --- /dev/null +++ b/grammar/testData/diagnostics/visibility/innerClassDelegatingConstructorCallToPrivate.antlrtree.txt @@ -0,0 +1,126 @@ +File: innerClassDelegatingConstructorCallToPrivate.kt - 2f99fb3ec9abb3a5f57092780c0f05da + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("w") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Outer") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Inner") + primaryConstructor + modifiers + modifier + visibilityModifier + PRIVATE("private") + CONSTRUCTOR("constructor") + classParameters + LPAREN("(") + classParameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + secondaryConstructor + CONSTRUCTOR("constructor") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + constructorDelegationCall + THIS("this") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("w") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/innerConstructorThroughSubclass.antlrtree.txt b/grammar/testData/diagnostics/visibility/innerConstructorThroughSubclass.antlrtree.txt new file mode 100644 index 000000000..8ccef4303 --- /dev/null +++ b/grammar/testData/diagnostics/visibility/innerConstructorThroughSubclass.antlrtree.txt @@ -0,0 +1,108 @@ +File: innerConstructorThroughSubclass.kt - 153efd414bb1d38b79a7f2645819d110 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("Outer") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("NestedSubClass") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Outer") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Inner") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Inner") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/innerNestedAndAnonymousClasses.antlrtree.txt b/grammar/testData/diagnostics/visibility/innerNestedAndAnonymousClasses.antlrtree.txt new file mode 100644 index 000000000..e2f990af3 --- /dev/null +++ b/grammar/testData/diagnostics/visibility/innerNestedAndAnonymousClasses.antlrtree.txt @@ -0,0 +1,1428 @@ +File: innerNestedAndAnonymousClasses.kt - cb676bccc36a3c8e878f24a6c982481c + NL("\n") + NL("\n") + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("kotlin") + DOT(".") + simpleIdentifier + Identifier("reflect") + DOT(".") + simpleIdentifier + Identifier("KFunction0") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test0") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Nested") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("NestedInNested") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Nested") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test20") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test21") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("y") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("InnerInNested") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Nested") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test23") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test24") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("y") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test401") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("Inner") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + COMMA(",") + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("I") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test3") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test4") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("InnerInInner") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Inner") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test40") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test41") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("test400") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("test401") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KFunction0") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + simpleIdentifier + Identifier("test400") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test5") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("local") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + classModifier + INNER("inner") + CLASS("class") + simpleIdentifier + Identifier("NestedInAnonymous") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test50") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleIdentifier + Identifier("extensionFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("B") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + RANGLE(">") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("thisBuilder") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test6") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("obj") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("thisBuilder") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("apply") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("obj") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("let") + postfixUnarySuffix + callSuffix + annotatedLambda + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + thisExpression + THIS("this") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("x") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/invisiblePrivateThroughSubClass.antlrtree.txt b/grammar/testData/diagnostics/visibility/invisiblePrivateThroughSubClass.antlrtree.txt new file mode 100644 index 000000000..07359f18a --- /dev/null +++ b/grammar/testData/diagnostics/visibility/invisiblePrivateThroughSubClass.antlrtree.txt @@ -0,0 +1,129 @@ +File: invisiblePrivateThroughSubClass.kt - 399897fc45378b7454934e08274acf0c + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("prv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("prv") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/invisiblePrivateThroughSubClassDoubleSmartCast.antlrtree.txt b/grammar/testData/diagnostics/visibility/invisiblePrivateThroughSubClassDoubleSmartCast.antlrtree.txt new file mode 100644 index 000000000..105232834 --- /dev/null +++ b/grammar/testData/diagnostics/visibility/invisiblePrivateThroughSubClassDoubleSmartCast.antlrtree.txt @@ -0,0 +1,448 @@ +File: invisiblePrivateThroughSubClassDoubleSmartCast.kt - 15964658ca93bd604de11b50136d9579 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("prv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("prv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("prv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("prv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("prv") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/invisiblePrivateThroughSubClassSmartCast.antlrtree.txt b/grammar/testData/diagnostics/visibility/invisiblePrivateThroughSubClassSmartCast.antlrtree.txt new file mode 100644 index 000000000..f892164d0 --- /dev/null +++ b/grammar/testData/diagnostics/visibility/invisiblePrivateThroughSubClassSmartCast.antlrtree.txt @@ -0,0 +1,217 @@ +File: invisiblePrivateThroughSubClassSmartCast.kt - 7dd5ac6b50a7d8ab2cdb5319952f76ab + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("prv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("prv") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("prv") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/overrideOfMemberInPackagePrivateClass.main.antlrtree.txt b/grammar/testData/diagnostics/visibility/overrideOfMemberInPackagePrivateClass.main.antlrtree.txt new file mode 100644 index 000000000..a608097ee --- /dev/null +++ b/grammar/testData/diagnostics/visibility/overrideOfMemberInPackagePrivateClass.main.antlrtree.txt @@ -0,0 +1,59 @@ +File: overrideOfMemberInPackagePrivateClass.main.kt - 564928d77c4fb5b48d370c316f28b6fb + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("test") + DOT(".") + MULT("*") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("KotlinClass") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("JavaBase2") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/privateCompanionInSuperClass.antlrtree.txt b/grammar/testData/diagnostics/visibility/privateCompanionInSuperClass.antlrtree.txt new file mode 100644 index 000000000..2620183c1 --- /dev/null +++ b/grammar/testData/diagnostics/visibility/privateCompanionInSuperClass.antlrtree.txt @@ -0,0 +1,327 @@ +File: privateCompanionInSuperClass.kt - 16efea36f12b8131f816565dadb0c492 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("BaseWithPrivate") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + modifiers + modifier + visibilityModifier + PRIVATE("private") + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("X") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("Y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + companionObject + COMPANION("companion") + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("X") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Derived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("BaseWithPrivate") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("bar") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("X") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("hashCode") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/privateDeclarationInAnotherFile.1.antlrtree.txt b/grammar/testData/diagnostics/visibility/privateDeclarationInAnotherFile.1.antlrtree.txt new file mode 100644 index 000000000..9881e4486 --- /dev/null +++ b/grammar/testData/diagnostics/visibility/privateDeclarationInAnotherFile.1.antlrtree.txt @@ -0,0 +1,30 @@ +File: privateDeclarationInAnotherFile.1.kt - 69a22bee4e031ecb49beccf62c28f064 + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + CLASS("class") + simpleIdentifier + Identifier("Private") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Public") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/privateDeclarationInAnotherFile.2.antlrtree.txt b/grammar/testData/diagnostics/visibility/privateDeclarationInAnotherFile.2.antlrtree.txt new file mode 100644 index 000000000..2867d598d --- /dev/null +++ b/grammar/testData/diagnostics/visibility/privateDeclarationInAnotherFile.2.antlrtree.txt @@ -0,0 +1,64 @@ +File: privateDeclarationInAnotherFile.2.kt - 4c667702e89d757e2d3c31e9ccba817b + packageHeader + importList + importHeader + IMPORT("import") + identifier + simpleIdentifier + Identifier("Private") + DOT(".") + simpleIdentifier + Identifier("Public") + semi + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Private") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("Public") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Public") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/privateFromInAnonymousObject.antlrtree.txt b/grammar/testData/diagnostics/visibility/privateFromInAnonymousObject.antlrtree.txt new file mode 100644 index 000000000..8e270709d --- /dev/null +++ b/grammar/testData/diagnostics/visibility/privateFromInAnonymousObject.antlrtree.txt @@ -0,0 +1,222 @@ +File: privateFromInAnonymousObject.kt - 17760b8a75ff2bbc0dd1c8e85208afef + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + visibilityModifier + PRIVATE("private") + CLASS("class") + simpleIdentifier + Identifier("Private") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + objectLiteral + OBJECT("object") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Private") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Private") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + NL("\n") + classMemberDeclaration + anonymousInitializer + INIT("init") + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Private") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Private") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Private") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Private") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/protectedInternal.antlrtree.txt b/grammar/testData/diagnostics/visibility/protectedInternal.antlrtree.txt new file mode 100644 index 000000000..c1665791e --- /dev/null +++ b/grammar/testData/diagnostics/visibility/protectedInternal.antlrtree.txt @@ -0,0 +1,174 @@ +File: protectedInternal.kt - 1af9284bb452e3c7ce77b85849b22cec + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + modifier + inheritanceModifier + ABSTRACT("abstract") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + visibilityModifier + INTERNAL("internal") + CLASS("class") + simpleIdentifier + Identifier("Derived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + getter + GET("get") + LPAREN("(") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + FIELD("field") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/protectedVisibilityAndSmartcast_fakeOverride.antlrtree.txt b/grammar/testData/diagnostics/visibility/protectedVisibilityAndSmartcast_fakeOverride.antlrtree.txt new file mode 100644 index 000000000..4708e4dcd --- /dev/null +++ b/grammar/testData/diagnostics/visibility/protectedVisibilityAndSmartcast_fakeOverride.antlrtree.txt @@ -0,0 +1,2108 @@ +File: protectedVisibilityAndSmartcast_fakeOverride.kt - d98688f09b645403a2435160404d759d + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baseFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Derived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("derivedFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RANGLE(">") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fest_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fest_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fest_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("D") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RANGLE(">") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fest_5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeArguments + LANGLE("<") + typeProjection + MULT("*") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/protectedVisibilityAndSmartcast_noOverride.antlrtree.txt b/grammar/testData/diagnostics/visibility/protectedVisibilityAndSmartcast_noOverride.antlrtree.txt new file mode 100644 index 000000000..7e05cf43d --- /dev/null +++ b/grammar/testData/diagnostics/visibility/protectedVisibilityAndSmartcast_noOverride.antlrtree.txt @@ -0,0 +1,1566 @@ +File: protectedVisibilityAndSmartcast_noOverride.kt - f0e5e48329ca0d3872cd87909d8e873f + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baseFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + visibilityModifier + PROTECTED("protected") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fest_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fest_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fest_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("D") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fest_5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/protectedVisibilityAndSmartcast_overrideChangesType.antlrtree.txt b/grammar/testData/diagnostics/visibility/protectedVisibilityAndSmartcast_overrideChangesType.antlrtree.txt new file mode 100644 index 000000000..91b709fab --- /dev/null +++ b/grammar/testData/diagnostics/visibility/protectedVisibilityAndSmartcast_overrideChangesType.antlrtree.txt @@ -0,0 +1,2111 @@ +File: protectedVisibilityAndSmartcast_overrideChangesType.kt - d2cfbacbeba838af25564b7074ac1638 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baseFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Derived") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("derivedFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + modifier + visibilityModifier + PROTECTED("protected") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fest_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fest_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fest_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("D") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Derived") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fest_5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("derivedFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/visibility/protectedVisibilityAndSmartcast_overrideSameType.antlrtree.txt b/grammar/testData/diagnostics/visibility/protectedVisibilityAndSmartcast_overrideSameType.antlrtree.txt new file mode 100644 index 000000000..aaac4b8eb --- /dev/null +++ b/grammar/testData/diagnostics/visibility/protectedVisibilityAndSmartcast_overrideSameType.antlrtree.txt @@ -0,0 +1,1621 @@ +File: protectedVisibilityAndSmartcast_overrideSameType.kt - 32a097aa176e7ac727e25dff85470ac0 + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("baseFun") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + propertyDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + modifier + visibilityModifier + PROTECTED("protected") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fest_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + OPEN("open") + CLASS("class") + simpleIdentifier + Identifier("B") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Nested") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fest_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("C") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fest_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("D") + primaryConstructor + classParameters + LPAREN("(") + classParameter + modifiers + modifier + memberModifier + OVERRIDE("override") + VAL("val") + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("fest_5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("D") + RPAREN(")") + controlStructureBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("other") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("baseFun") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/AnnotatedWhenStatement.antlrtree.txt b/grammar/testData/diagnostics/when/AnnotatedWhenStatement.antlrtree.txt index 1f1a3f4c6..60b787115 100644 --- a/grammar/testData/diagnostics/when/AnnotatedWhenStatement.antlrtree.txt +++ b/grammar/testData/diagnostics/when/AnnotatedWhenStatement.antlrtree.txt @@ -1,5 +1,4 @@ -File: AnnotatedWhenStatement.kt - 78f5bf8e5da83fcca7eac03f07022a7d - NL("\n") +File: AnnotatedWhenStatement.kt - 309fb19f494dffa6a03e8edcd1e66e73 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/when/BranchBypassVal.antlrtree.txt b/grammar/testData/diagnostics/when/BranchBypassVal.antlrtree.txt index 08520eefa..c818c69b9 100644 --- a/grammar/testData/diagnostics/when/BranchBypassVal.antlrtree.txt +++ b/grammar/testData/diagnostics/when/BranchBypassVal.antlrtree.txt @@ -1,5 +1,4 @@ -File: BranchBypassVal.kt - 7f2ddcff44adb9b3e05661cf14124538 - NL("\n") +File: BranchBypassVal.kt - 9b951bd358e2b602bb2281d569205075 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/when/BranchBypassVar.antlrtree.txt b/grammar/testData/diagnostics/when/BranchBypassVar.antlrtree.txt index 0e56cd59c..f3c748fde 100644 --- a/grammar/testData/diagnostics/when/BranchBypassVar.antlrtree.txt +++ b/grammar/testData/diagnostics/when/BranchBypassVar.antlrtree.txt @@ -1,5 +1,4 @@ -File: BranchBypassVar.kt - 7356bf4ec414110feab1182564faafb8 - NL("\n") +File: BranchBypassVar.kt - dd0a6e517eb4dba5f46a4135a475cbe0 NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/when/CommaInWhenConditionWithoutArgument.antlrtree.txt b/grammar/testData/diagnostics/when/CommaInWhenConditionWithoutArgument.antlrtree.txt index 4f732f759..6186895f1 100644 --- a/grammar/testData/diagnostics/when/CommaInWhenConditionWithoutArgument.antlrtree.txt +++ b/grammar/testData/diagnostics/when/CommaInWhenConditionWithoutArgument.antlrtree.txt @@ -1,4 +1,5 @@ -File: CommaInWhenConditionWithoutArgument.kt - 8dc8a8375078dfa607827fdfeeb1af2d (WITH_ERRORS) +File: CommaInWhenConditionWithoutArgument.kt - f9080b5881209a08e0c377f1ecf3b830 (WITH_ERRORS) + NL("\n") NL("\n") packageHeader importList diff --git a/grammar/testData/diagnostics/when/DuplicatedLabels.antlrtree.txt b/grammar/testData/diagnostics/when/DuplicatedLabels.antlrtree.txt index f2d8e2a18..321d970b0 100644 --- a/grammar/testData/diagnostics/when/DuplicatedLabels.antlrtree.txt +++ b/grammar/testData/diagnostics/when/DuplicatedLabels.antlrtree.txt @@ -1,4 +1,4 @@ -File: DuplicatedLabels.kt - 2e12d210bc0617864d00678cf39258ae +File: DuplicatedLabels.kt - 05163f8568c8e1feca39c4be68d90027 NL("\n") NL("\n") packageHeader @@ -1180,6 +1180,58 @@ File: DuplicatedLabels.kt - 2e12d210bc0617864d00678cf39258ae IntegerLiteral("3") semi NL("\n") + whenEntry + whenCondition + typeTest + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + semi + NL("\n") whenEntry ELSE("else") ARROW("->") @@ -1696,4 +1748,198 @@ File: DuplicatedLabels.kt - 2e12d210bc0617864d00678cf39258ae RCURL("}") semis NL("\n") + NL("\n") + topLevelObject + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Foo") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("sixth") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("arg") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("arg") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + semi + NL("\n") + RCURL("}") + semis + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/when/EmptyConditionWithExpression.antlrtree.txt b/grammar/testData/diagnostics/when/EmptyConditionWithExpression.antlrtree.txt index b0c538a36..880145c5f 100644 --- a/grammar/testData/diagnostics/when/EmptyConditionWithExpression.antlrtree.txt +++ b/grammar/testData/diagnostics/when/EmptyConditionWithExpression.antlrtree.txt @@ -232,6 +232,4 @@ File: EmptyConditionWithExpression.kt - 9f9543320724f2e067e95c36ea1545bd semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/EmptyConditionWithExpressionEnum.antlrtree.txt b/grammar/testData/diagnostics/when/EmptyConditionWithExpressionEnum.antlrtree.txt index fdc1ebc93..511434d0f 100644 --- a/grammar/testData/diagnostics/when/EmptyConditionWithExpressionEnum.antlrtree.txt +++ b/grammar/testData/diagnostics/when/EmptyConditionWithExpressionEnum.antlrtree.txt @@ -261,6 +261,4 @@ File: EmptyConditionWithExpressionEnum.kt - 76c1dbe3da64d4f35e29cacbb4a7a621 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/ExhaustiveBooleanComplex.antlrtree.txt b/grammar/testData/diagnostics/when/ExhaustiveBooleanComplex.antlrtree.txt index 5e26a6610..a6679355a 100644 --- a/grammar/testData/diagnostics/when/ExhaustiveBooleanComplex.antlrtree.txt +++ b/grammar/testData/diagnostics/when/ExhaustiveBooleanComplex.antlrtree.txt @@ -1,4 +1,6 @@ -File: ExhaustiveBooleanComplex.kt - 78597d4c03ad77d006406095a1eeb441 +File: ExhaustiveBooleanComplex.kt - 58c33104e689527ab6571e0d0f8c43ea + NL("\n") + NL("\n") NL("\n") NL("\n") NL("\n") @@ -115,24 +117,43 @@ File: ExhaustiveBooleanComplex.kt - 78597d4c03ad77d006406095a1eeb441 prefixUnaryExpression postfixUnaryExpression primaryExpression - literalConstant - IntegerLiteral("2") - equalityOperator - EQEQ("==") - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("2") + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") ARROW("->") controlStructureBody statement @@ -178,24 +199,43 @@ File: ExhaustiveBooleanComplex.kt - 78597d4c03ad77d006406095a1eeb441 prefixUnaryExpression postfixUnaryExpression primaryExpression - literalConstant - IntegerLiteral("2") - equalityOperator - EQEQ("==") - comparison - genericCallLikeComparison - infixOperation - elvisExpression - infixFunctionCall - rangeExpression - additiveExpression - multiplicativeExpression - asExpression - prefixUnaryExpression - postfixUnaryExpression - primaryExpression - literalConstant - IntegerLiteral("1") + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") ARROW("->") controlStructureBody statement diff --git a/grammar/testData/diagnostics/when/ExhaustivePlatformBoolean.main.antlrtree.txt b/grammar/testData/diagnostics/when/ExhaustivePlatformBoolean.main.antlrtree.txt new file mode 100644 index 000000000..f76bf4cdc --- /dev/null +++ b/grammar/testData/diagnostics/when/ExhaustivePlatformBoolean.main.antlrtree.txt @@ -0,0 +1,366 @@ +File: ExhaustivePlatformBoolean.main.kt - fb938cc9ad4a318d36df9a547772e8e1 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Provider") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getCondition") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Provider") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("getCondition") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/ExhaustiveValOverConditionalInit.antlrtree.txt b/grammar/testData/diagnostics/when/ExhaustiveValOverConditionalInit.antlrtree.txt index 3140a1579..c6919310f 100644 --- a/grammar/testData/diagnostics/when/ExhaustiveValOverConditionalInit.antlrtree.txt +++ b/grammar/testData/diagnostics/when/ExhaustiveValOverConditionalInit.antlrtree.txt @@ -1,4 +1,5 @@ -File: ExhaustiveValOverConditionalInit.kt - 0f39da1af82c25f9048470eb7bfe3bbd +File: ExhaustiveValOverConditionalInit.kt - 2a623c701cf5e2c48e3f19e6faf50242 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/when/ExhaustiveVarOverConditionalInit.antlrtree.txt b/grammar/testData/diagnostics/when/ExhaustiveVarOverConditionalInit.antlrtree.txt index afa984553..c8885e9f4 100644 --- a/grammar/testData/diagnostics/when/ExhaustiveVarOverConditionalInit.antlrtree.txt +++ b/grammar/testData/diagnostics/when/ExhaustiveVarOverConditionalInit.antlrtree.txt @@ -1,4 +1,5 @@ -File: ExhaustiveVarOverConditionalInit.kt - 0b95cdc9b1a9868a4d9d53f3fd40038e +File: ExhaustiveVarOverConditionalInit.kt - 48643aac66d10d13e396bf9b6ca2d92a + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/when/NoElseReturnedCoercionToUnit.antlrtree.txt b/grammar/testData/diagnostics/when/NoElseReturnedCoercionToUnit.antlrtree.txt index 330a36a32..ee6d874fd 100644 --- a/grammar/testData/diagnostics/when/NoElseReturnedCoercionToUnit.antlrtree.txt +++ b/grammar/testData/diagnostics/when/NoElseReturnedCoercionToUnit.antlrtree.txt @@ -1,4 +1,5 @@ -File: NoElseReturnedCoercionToUnit.kt - 145508579b692c70bc6be2dc3023880c +File: NoElseReturnedCoercionToUnit.kt - 63e380ca4cb20f49b8a711eee86cabb7 + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/when/NoElseWhenStatement.antlrtree.txt b/grammar/testData/diagnostics/when/NoElseWhenStatement.antlrtree.txt index 85866e5df..716128f9a 100644 --- a/grammar/testData/diagnostics/when/NoElseWhenStatement.antlrtree.txt +++ b/grammar/testData/diagnostics/when/NoElseWhenStatement.antlrtree.txt @@ -131,6 +131,4 @@ File: NoElseWhenStatement.kt - a3ce7840ae8d75917d9d101591545632 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/NonExhaustiveWarning.antlrtree.txt b/grammar/testData/diagnostics/when/NonExhaustiveWarning.antlrtree.txt index 7617bdd16..37ce71d3d 100644 --- a/grammar/testData/diagnostics/when/NonExhaustiveWarning.antlrtree.txt +++ b/grammar/testData/diagnostics/when/NonExhaustiveWarning.antlrtree.txt @@ -1,4 +1,6 @@ -File: NonExhaustiveWarning.kt - 46884b191a0ac970a9df608d731f4195 +File: NonExhaustiveWarning.kt - 932c06ca7e896d4edf2c1725e47bdcbb + NL("\n") + NL("\n") NL("\n") NL("\n") NL("\n") diff --git a/grammar/testData/diagnostics/when/NonExhaustiveWarningElse.antlrtree.txt b/grammar/testData/diagnostics/when/NonExhaustiveWarningElse.antlrtree.txt index 3a428c421..f0477c3f9 100644 --- a/grammar/testData/diagnostics/when/NonExhaustiveWarningElse.antlrtree.txt +++ b/grammar/testData/diagnostics/when/NonExhaustiveWarningElse.antlrtree.txt @@ -320,6 +320,4 @@ File: NonExhaustiveWarningElse.kt - 9b26fea60789a3f9bbe26bfeda66e577 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/NonExhaustiveWarningForSealedClass.antlrtree.txt b/grammar/testData/diagnostics/when/NonExhaustiveWarningForSealedClass.antlrtree.txt index 57bec3fde..da574117f 100644 --- a/grammar/testData/diagnostics/when/NonExhaustiveWarningForSealedClass.antlrtree.txt +++ b/grammar/testData/diagnostics/when/NonExhaustiveWarningForSealedClass.antlrtree.txt @@ -1,4 +1,5 @@ -File: NonExhaustiveWarningForSealedClass.kt - ced87b8d10abd30ada2b9950e5306bdf +File: NonExhaustiveWarningForSealedClass.kt - 34236ff8bdf4b59bdbef67ce6fd5df5e + NL("\n") NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/when/NonExhaustiveWarningNull.antlrtree.txt b/grammar/testData/diagnostics/when/NonExhaustiveWarningNull.antlrtree.txt index 432f0c9da..84ae63b97 100644 --- a/grammar/testData/diagnostics/when/NonExhaustiveWarningNull.antlrtree.txt +++ b/grammar/testData/diagnostics/when/NonExhaustiveWarningNull.antlrtree.txt @@ -1,4 +1,5 @@ -File: NonExhaustiveWarningNull.kt - 7d1a367e50441126e36a2a71e65bc5de +File: NonExhaustiveWarningNull.kt - 281fb734dcfeae72ee212a8440d849a0 + NL("\n") NL("\n") NL("\n") NL("\n") @@ -102,7 +103,6 @@ File: NonExhaustiveWarningNull.kt - 7d1a367e50441126e36a2a71e65bc5de lineStringContent LineStrText("XXX") QUOTE_CLOSE(""") - NL("\n") semis NL("\n") statement @@ -423,5 +423,5 @@ File: NonExhaustiveWarningNull.kt - 7d1a367e50441126e36a2a71e65bc5de NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/when/When.antlrtree.txt b/grammar/testData/diagnostics/when/When.antlrtree.txt index d11d7a0e3..d76b38e84 100644 --- a/grammar/testData/diagnostics/when/When.antlrtree.txt +++ b/grammar/testData/diagnostics/when/When.antlrtree.txt @@ -1,5 +1,4 @@ -File: When.kt - 5cd7eea55b33832ead8dca03d05d8e6b - NL("\n") +File: When.kt - a7a50ddbab493d0701838f0cf7557807 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/when/deprecatedSyntaxInConditionsNoSubject.antlrtree.txt b/grammar/testData/diagnostics/when/deprecatedSyntaxInConditionsNoSubject.antlrtree.txt new file mode 100644 index 000000000..e1075e83a --- /dev/null +++ b/grammar/testData/diagnostics/when/deprecatedSyntaxInConditionsNoSubject.antlrtree.txt @@ -0,0 +1,2028 @@ +File: deprecatedSyntaxInConditionsNoSubject.kt - e31293ed44aa45d844a4c05d471dc529 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("plus") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("minus") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("times") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("div") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("rem") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("rangeTo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("inc") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("dec") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("plusAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("minusAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("timesAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("divAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + DOT(".") + simpleIdentifier + Identifier("remAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("contains") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithSubject_ok") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("any") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("any") + asOperator + AS_SAFE("as?") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("any") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + NOT_IN("!in ") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LE("<=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + GE(">=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQEQ("!==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + postfixUnaryOperator + INCR("++") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + postfixUnaryOperator + DECR("--") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/deprecatedSyntaxInConditions_after.antlrtree.txt b/grammar/testData/diagnostics/when/deprecatedSyntaxInConditions_after.antlrtree.txt new file mode 100644 index 000000000..0ccfd18f8 --- /dev/null +++ b/grammar/testData/diagnostics/when/deprecatedSyntaxInConditions_after.antlrtree.txt @@ -0,0 +1,5894 @@ +File: deprecatedSyntaxInConditions_after.kt - c5690dcc4b6183685f9812e2fa0cbffc (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("plus") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("minus") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("times") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("div") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("rem") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("rangeTo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("compareTo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("inc") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("dec") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("plusAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("minusAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("timesAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("divAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("remAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("contains") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithSubject_ok") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("any") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("any") + asOperator + AS_SAFE("as?") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("any") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + postfixUnaryOperator + INCR("++") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + postfixUnaryOperator + DECR("--") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithSubject_bad_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + NOT_IN("!in ") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LE("<=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + GE(">=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQEQ("!==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + NOT_IN("!in ") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LE("<=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + GE(">=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQEQ("!==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithSubject_bad_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithSubject_bad_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + LCURL("{") + NL("\n") + NL("\n") + WHEN("when") + LPAREN("(") + Identifier("a") + RPAREN(")") + LCURL("{") + NL("\n") + MULT("*") + Identifier("a") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + WHEN("when") + LPAREN("(") + Identifier("a") + RPAREN(")") + LCURL("{") + NL("\n") + LPAREN("(") + MULT("*") + Identifier("a") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithSubject_bad_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + LCURL("{") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + semis + NL("\n") + NL("\n") + WHEN("when") + LPAREN("(") + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + Identifier("x") + ASSIGNMENT("=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + Identifier("b") + ADD_ASSIGNMENT("+=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + Identifier("b") + SUB_ASSIGNMENT("-=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + Identifier("b") + MULT_ASSIGNMENT("*=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + Identifier("b") + DIV_ASSIGNMENT("/=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + Identifier("b") + MOD_ASSIGNMENT("%=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + WHEN("when") + LPAREN("(") + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + LPAREN("(") + Identifier("x") + ASSIGNMENT("=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + LPAREN("(") + Identifier("b") + ADD_ASSIGNMENT("+=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + LPAREN("(") + Identifier("b") + SUB_ASSIGNMENT("-=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + LPAREN("(") + Identifier("b") + MULT_ASSIGNMENT("*=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + LPAREN("(") + Identifier("b") + DIV_ASSIGNMENT("/=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + LPAREN("(") + Identifier("b") + MOD_ASSIGNMENT("%=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithRange_ok") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("any") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("any") + asOperator + AS_SAFE("as?") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("any") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + postfixUnaryOperator + INCR("++") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + postfixUnaryOperator + DECR("--") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithRange_bad_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + NOT_IN("!in ") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LE("<=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + GE(">=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQEQ("!==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + NOT_IN("!in ") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LE("<=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + GE(">=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQEQ("!==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithRange_bad_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithRange_bad_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + LCURL("{") + NL("\n") + NL("\n") + WHEN("when") + LPAREN("(") + Identifier("a") + RPAREN(")") + LCURL("{") + NL("\n") + IN("in") + MULT("*") + Identifier("a") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + WHEN("when") + LPAREN("(") + Identifier("a") + RPAREN(")") + LCURL("{") + NL("\n") + IN("in") + LPAREN("(") + MULT("*") + Identifier("a") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithRange_bad_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + LCURL("{") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + semis + NL("\n") + NL("\n") + WHEN("when") + LPAREN("(") + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + IN("in") + Identifier("x") + ASSIGNMENT("=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + Identifier("b") + ADD_ASSIGNMENT("+=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + Identifier("b") + SUB_ASSIGNMENT("-=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + Identifier("b") + MULT_ASSIGNMENT("*=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + Identifier("b") + DIV_ASSIGNMENT("/=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + Identifier("b") + MOD_ASSIGNMENT("%=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + WHEN("when") + LPAREN("(") + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + IN("in") + LPAREN("(") + Identifier("x") + ASSIGNMENT("=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + LPAREN("(") + Identifier("b") + ADD_ASSIGNMENT("+=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + LPAREN("(") + Identifier("b") + SUB_ASSIGNMENT("-=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + LPAREN("(") + Identifier("b") + MULT_ASSIGNMENT("*=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + LPAREN("(") + Identifier("b") + DIV_ASSIGNMENT("/=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + LPAREN("(") + Identifier("b") + MOD_ASSIGNMENT("%=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/deprecatedSyntaxInConditions_before.antlrtree.txt b/grammar/testData/diagnostics/when/deprecatedSyntaxInConditions_before.antlrtree.txt new file mode 100644 index 000000000..efe4d6065 --- /dev/null +++ b/grammar/testData/diagnostics/when/deprecatedSyntaxInConditions_before.antlrtree.txt @@ -0,0 +1,5894 @@ +File: deprecatedSyntaxInConditions_before.kt - 2538f7c63239c4bd0d7a27e7e63478bf (WITH_ERRORS) + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("plus") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("minus") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("times") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("div") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("rem") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("rangeTo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("compareTo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("id") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("inc") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("dec") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + semis + NL("\n") + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("plusAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("minusAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("timesAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("divAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + simpleIdentifier + Identifier("remAssign") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + modifiers + modifier + functionModifier + OPERATOR("operator") + FUN("fun") + receiverType + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + quest + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("contains") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("other") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithSubject_ok") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("any") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("any") + asOperator + AS_SAFE("as?") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("any") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + postfixUnaryOperator + INCR("++") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + postfixUnaryOperator + DECR("--") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithSubject_bad_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + NOT_IN("!in ") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LE("<=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + GE(">=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQEQ("!==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + NOT_IN("!in ") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LE("<=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + GE(">=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQEQ("!==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithSubject_bad_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithSubject_bad_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + LCURL("{") + NL("\n") + NL("\n") + WHEN("when") + LPAREN("(") + Identifier("a") + RPAREN(")") + LCURL("{") + NL("\n") + MULT("*") + Identifier("a") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + WHEN("when") + LPAREN("(") + Identifier("a") + RPAREN(")") + LCURL("{") + NL("\n") + LPAREN("(") + MULT("*") + Identifier("a") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithSubject_bad_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + LCURL("{") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + semis + NL("\n") + NL("\n") + WHEN("when") + LPAREN("(") + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + Identifier("x") + ASSIGNMENT("=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + Identifier("b") + ADD_ASSIGNMENT("+=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + Identifier("b") + SUB_ASSIGNMENT("-=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + Identifier("b") + MULT_ASSIGNMENT("*=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + Identifier("b") + DIV_ASSIGNMENT("/=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + Identifier("b") + MOD_ASSIGNMENT("%=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + WHEN("when") + LPAREN("(") + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + LPAREN("(") + Identifier("x") + ASSIGNMENT("=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + LPAREN("(") + Identifier("b") + ADD_ASSIGNMENT("+=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + LPAREN("(") + Identifier("b") + SUB_ASSIGNMENT("-=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + LPAREN("(") + Identifier("b") + MULT_ASSIGNMENT("*=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + LPAREN("(") + Identifier("b") + DIV_ASSIGNMENT("/=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + LPAREN("(") + Identifier("b") + MOD_ASSIGNMENT("%=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithRange_ok") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + quest + QUEST_NO_WS("?") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("any") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("z") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + safeNav + QUEST_NO_WS("?") + DOT(".") + simpleIdentifier + Identifier("id") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("any") + asOperator + AS_SAFE("as?") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("any") + asOperator + AS("as") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + multiplicativeOperator + MULT("*") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + multiplicativeOperator + DIV("/") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + multiplicativeOperator + MOD("%") + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + additiveOperator + ADD("+") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + additiveOperator + SUB("-") + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RANGE("..") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + elvis + QUEST_NO_WS("?") + COLON(":") + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("b") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("z") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + postfixUnaryOperator + INCR("++") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + postfixUnarySuffix + postfixUnaryOperator + DECR("--") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithRange_bad_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + NOT_IN("!in ") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LE("<=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + GE(">=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQEQ("!==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + IN("in") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + inOperator + NOT_IN("!in ") + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LE("<=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + GE(">=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQEQ("===") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EXCL_EQEQ("!==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithRange_bad_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + CONJ("&&") + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + rangeTest + inOperator + IN("in") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + DISJ("||") + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithRange_bad_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Array") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + LCURL("{") + NL("\n") + NL("\n") + WHEN("when") + LPAREN("(") + Identifier("a") + RPAREN(")") + LCURL("{") + NL("\n") + IN("in") + MULT("*") + Identifier("a") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + WHEN("when") + LPAREN("(") + Identifier("a") + RPAREN(")") + LCURL("{") + NL("\n") + IN("in") + LPAREN("(") + MULT("*") + Identifier("a") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("testWithRange_bad_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + LCURL("{") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + semis + NL("\n") + NL("\n") + WHEN("when") + LPAREN("(") + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + IN("in") + Identifier("x") + ASSIGNMENT("=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + Identifier("b") + ADD_ASSIGNMENT("+=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + Identifier("b") + SUB_ASSIGNMENT("-=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + Identifier("b") + MULT_ASSIGNMENT("*=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + Identifier("b") + DIV_ASSIGNMENT("/=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + Identifier("b") + MOD_ASSIGNMENT("%=") + Identifier("b") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + WHEN("when") + LPAREN("(") + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + IN("in") + LPAREN("(") + Identifier("x") + ASSIGNMENT("=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + LPAREN("(") + Identifier("b") + ADD_ASSIGNMENT("+=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + LPAREN("(") + Identifier("b") + SUB_ASSIGNMENT("-=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + LPAREN("(") + Identifier("b") + MULT_ASSIGNMENT("*=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + LPAREN("(") + Identifier("b") + DIV_ASSIGNMENT("/=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + IN("in") + LPAREN("(") + Identifier("b") + MOD_ASSIGNMENT("%=") + Identifier("b") + RPAREN(")") + ARROW("->") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/exhaustiveBooleanWhenWithUntrivialConst_error.antlrtree.txt b/grammar/testData/diagnostics/when/exhaustiveBooleanWhenWithUntrivialConst_error.antlrtree.txt new file mode 100644 index 000000000..0c870f0e5 --- /dev/null +++ b/grammar/testData/diagnostics/when/exhaustiveBooleanWhenWithUntrivialConst_error.antlrtree.txt @@ -0,0 +1,895 @@ +File: exhaustiveBooleanWhenWithUntrivialConst_error.kt - 62642a003ca1ef7ef20bc40ebd6c171f + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_0") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("true") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("false") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("true") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("false") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("TRUE") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TRUE") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("true") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("false") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("s1") + QUOTE_CLOSE(""") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("s2") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("true") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s1") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s2") + RPAREN(")") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("false") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/exhaustiveBooleanWhenWithUntrivialConst_warning.antlrtree.txt b/grammar/testData/diagnostics/when/exhaustiveBooleanWhenWithUntrivialConst_warning.antlrtree.txt new file mode 100644 index 000000000..1d43a1a18 --- /dev/null +++ b/grammar/testData/diagnostics/when/exhaustiveBooleanWhenWithUntrivialConst_warning.antlrtree.txt @@ -0,0 +1,894 @@ +File: exhaustiveBooleanWhenWithUntrivialConst_warning.kt - ed6bb739c14ac0d6854f3e089ddc9d59 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_0") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("true") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("false") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + RPAREN(")") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("true") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + equalityOperator + EXCL_EQ("!=") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("false") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("TRUE") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("TRUE") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("true") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("false") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s1") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("s1") + QUOTE_CLOSE(""") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("s2") + QUOTE_CLOSE(""") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("b") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("b") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("true") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s1") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("s2") + RPAREN(")") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("false") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/exhaustiveWhenWithConstVal.antlrtree.txt b/grammar/testData/diagnostics/when/exhaustiveWhenWithConstVal.antlrtree.txt new file mode 100644 index 000000000..6cd5feeaa --- /dev/null +++ b/grammar/testData/diagnostics/when/exhaustiveWhenWithConstVal.antlrtree.txt @@ -0,0 +1,1157 @@ +File: exhaustiveWhenWithConstVal.kt - 267095d77c9b29b4d6d74c452722c0a0 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("myF") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + NL("\n") + topLevelObject + declaration + propertyDeclaration + modifiers + modifier + propertyModifier + CONST("const") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("myT") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("someBoolean") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("someBoolean") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myT") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myF") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("someBoolean") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("someBoolean") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myT") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("someBoolean") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("someBoolean") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myT") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("someBoolean") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("someBoolean") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myT") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myT") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("someBoolean") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("s") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("someBoolean") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myT") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myT") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("myT") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("3") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("4") + semi + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/intersectionExhaustivenessComplex.antlrtree.txt b/grammar/testData/diagnostics/when/intersectionExhaustivenessComplex.antlrtree.txt new file mode 100644 index 000000000..f72ceb07d --- /dev/null +++ b/grammar/testData/diagnostics/when/intersectionExhaustivenessComplex.antlrtree.txt @@ -0,0 +1,973 @@ +File: intersectionExhaustivenessComplex.kt - cce15f49a0787524a1848d4c29b811ab + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("A") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("B") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B2") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("B") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A1") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A2") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("v") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A1") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A2") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("v") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A1") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A2") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("v") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("B1") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("...") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A1") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("B1") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("...") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A2") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("v") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A1") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("B") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("B1") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("...") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("length") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/intersectionExhaustivenessSimple.antlrtree.txt b/grammar/testData/diagnostics/when/intersectionExhaustivenessSimple.antlrtree.txt new file mode 100644 index 000000000..ff7e527c3 --- /dev/null +++ b/grammar/testData/diagnostics/when/intersectionExhaustivenessSimple.antlrtree.txt @@ -0,0 +1,384 @@ +File: intersectionExhaustivenessSimple.kt - 7c9dc8e872b3ced2a17277501d6074f8 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("KtClassifierSymbol") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("KtNamedSymbol") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("KtTypeParameterSymbol") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KtClassifierSymbol") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("KtClassLikeSymbol") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("KtClassifierSymbol") + valueArguments + LPAREN("(") + RPAREN(")") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("symbol") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KtClassifierSymbol") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("symbol") + isOperator + NOT_IS("!is ") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KtNamedSymbol") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + jumpExpression + RETURN("return") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("symbol") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KtClassLikeSymbol") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("1") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("KtTypeParameterSymbol") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + lineStringContent + LineStrText("2") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + NL("\n") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + simpleIdentifier + Identifier("checkType") + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("_") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/kt10439.antlrtree.txt b/grammar/testData/diagnostics/when/kt10439.antlrtree.txt index 1d4cca285..cf0a1c343 100644 --- a/grammar/testData/diagnostics/when/kt10439.antlrtree.txt +++ b/grammar/testData/diagnostics/when/kt10439.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt10439.kt - ac230625ecad02ef25a120bc7f9c5871 - NL("\n") +File: kt10439.kt - ca055b74f6024208946cfa455e1d4513 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/when/kt10809.antlrtree.txt b/grammar/testData/diagnostics/when/kt10809.antlrtree.txt index 980541b12..2ecee3d55 100644 --- a/grammar/testData/diagnostics/when/kt10809.antlrtree.txt +++ b/grammar/testData/diagnostics/when/kt10809.antlrtree.txt @@ -1,4 +1,4 @@ -File: kt10809.kt - 18c1f8f16c732cd61b07515d652c343b +File: kt10809.kt - 2fc5caf8b872b7b47e824defc830a9c5 NL("\n") NL("\n") NL("\n") @@ -1445,5 +1445,4 @@ File: kt10809.kt - 18c1f8f16c732cd61b07515d652c343b RCURL("}") semis NL("\n") - NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/when/kt10811.antlrtree.txt b/grammar/testData/diagnostics/when/kt10811.antlrtree.txt index 0fda9ec09..56990ffed 100644 --- a/grammar/testData/diagnostics/when/kt10811.antlrtree.txt +++ b/grammar/testData/diagnostics/when/kt10811.antlrtree.txt @@ -859,6 +859,4 @@ File: kt10811.kt - 8d0e8b8662323e1cdb7909b26de30763 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/kt47922.antlrtree.txt b/grammar/testData/diagnostics/when/kt47922.antlrtree.txt new file mode 100644 index 000000000..a4e441240 --- /dev/null +++ b/grammar/testData/diagnostics/when/kt47922.antlrtree.txt @@ -0,0 +1,302 @@ +File: kt47922.kt - 152b171fd326ed6ec6e0c924a95fe44f + NL("\n") + NL("\n") + packageHeader + PACKAGE("package") + identifier + simpleIdentifier + Identifier("whencase") + DOT(".") + simpleIdentifier + Identifier("castissue") + semi + NL("\n") + NL("\n") + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("SealedBase") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Complete") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("SealedBase") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + inheritanceModifier + ABSTRACT("abstract") + CLASS("class") + simpleIdentifier + Identifier("NonSealedBase") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("Complete") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("NonSealedBase") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("ToState") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("sealedTest") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SealedBase") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ToState") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + RPAREN(")") + LCURL("{") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("nonSealedTest") + COLON(":") + type + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("NonSealedBase") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("ToState") + quest + QUEST_WS("? ") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + functionLiteral + lambdaLiteral + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("this") + RPAREN(")") + LCURL("{") + RCURL("}") + semis + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/kt48653_after.antlrtree.txt b/grammar/testData/diagnostics/when/kt48653_after.antlrtree.txt new file mode 100644 index 000000000..e41f0c064 --- /dev/null +++ b/grammar/testData/diagnostics/when/kt48653_after.antlrtree.txt @@ -0,0 +1,323 @@ +File: kt48653_after.kt - 3d3b955a24e4fd4121fd019eb90d7288 + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("Sealed") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Sealed") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Sealed") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("functionReturningSealed") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Sealed") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("result") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("functionReturningSealed") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Sealed") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("result2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("functionReturningSealed") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("result2") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Sealed") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/kt48653_before.antlrtree.txt b/grammar/testData/diagnostics/when/kt48653_before.antlrtree.txt new file mode 100644 index 000000000..dd497ff65 --- /dev/null +++ b/grammar/testData/diagnostics/when/kt48653_before.antlrtree.txt @@ -0,0 +1,323 @@ +File: kt48653_before.kt - 74f0940f571c2ab61822120c86b398aa + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("Sealed") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Sealed") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + objectDeclaration + OBJECT("object") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Sealed") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("functionReturningSealed") + functionValueParameters + LPAREN("(") + RPAREN(")") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Sealed") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + postfixUnarySuffix + postfixUnaryOperator + EXCL_NO_WS("!") + excl + EXCL_NO_WS("!") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("result") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("functionReturningSealed") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Sealed") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("result2") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("functionReturningSealed") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("result2") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Sealed") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/kt49702.antlrtree.txt b/grammar/testData/diagnostics/when/kt49702.antlrtree.txt new file mode 100644 index 000000000..1dac72b72 --- /dev/null +++ b/grammar/testData/diagnostics/when/kt49702.antlrtree.txt @@ -0,0 +1,124 @@ +File: kt49702.kt - 3fc23dccef32754f5d82ebc3402e6a27 (WITH_ERRORS) + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("A") + LCURL("{") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + COLON(":") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + RPAREN(")") + LCURL("{") + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/diagnostics/when/kt9929.antlrtree.txt b/grammar/testData/diagnostics/when/kt9929.antlrtree.txt index 794cb4ed9..4d40cdc12 100644 --- a/grammar/testData/diagnostics/when/kt9929.antlrtree.txt +++ b/grammar/testData/diagnostics/when/kt9929.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt9929.kt - 1e3871546f10fc0927b0a33c1bfa7367 - NL("\n") +File: kt9929.kt - 74955799ee0e1b8088f6433e2a3dc5ce packageHeader importList topLevelObject @@ -204,6 +203,4 @@ File: kt9929.kt - 1e3871546f10fc0927b0a33c1bfa7367 NL("\n") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/kt9972.antlrtree.txt b/grammar/testData/diagnostics/when/kt9972.antlrtree.txt index 04848d76b..8f87d1ddb 100644 --- a/grammar/testData/diagnostics/when/kt9972.antlrtree.txt +++ b/grammar/testData/diagnostics/when/kt9972.antlrtree.txt @@ -1,5 +1,4 @@ -File: kt9972.kt - cc7c72ab03d918a20e012202a7af5731 - NL("\n") +File: kt9972.kt - 1f46d12efb6d970f896616c616871281 NL("\n") NL("\n") packageHeader diff --git a/grammar/testData/diagnostics/when/nonExhaustiveWhenStatement_1_5.antlrtree.txt b/grammar/testData/diagnostics/when/nonExhaustiveWhenStatement_1_5.antlrtree.txt new file mode 100644 index 000000000..dfc94511a --- /dev/null +++ b/grammar/testData/diagnostics/when/nonExhaustiveWhenStatement_1_5.antlrtree.txt @@ -0,0 +1,3250 @@ +File: nonExhaustiveWhenStatement_1_5.kt - ccf790522e3e4ac0b8276b15de53dd15 + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("B") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + INTERFACE("interface") + simpleIdentifier + Identifier("IBase") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeEnum") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeEnum") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_6") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_7") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_8") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_9") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeEnum") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_10") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_11") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_12") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_13") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeEnum") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_14") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_15") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_16") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/nonExhaustiveWhenStatement_1_6.antlrtree.txt b/grammar/testData/diagnostics/when/nonExhaustiveWhenStatement_1_6.antlrtree.txt new file mode 100644 index 000000000..2541e8ea9 --- /dev/null +++ b/grammar/testData/diagnostics/when/nonExhaustiveWhenStatement_1_6.antlrtree.txt @@ -0,0 +1,3251 @@ +File: nonExhaustiveWhenStatement_1_6.kt - 850803ee1c6ef06865558b80796ec981 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("B") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + INTERFACE("interface") + simpleIdentifier + Identifier("IBase") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeEnum") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeEnum") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_6") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_7") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_8") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_9") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeEnum") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_10") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_11") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_12") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_13") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeEnum") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_14") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_15") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_16") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/nonExhaustiveWhenStatement_1_7.antlrtree.txt b/grammar/testData/diagnostics/when/nonExhaustiveWhenStatement_1_7.antlrtree.txt new file mode 100644 index 000000000..16e79aeea --- /dev/null +++ b/grammar/testData/diagnostics/when/nonExhaustiveWhenStatement_1_7.antlrtree.txt @@ -0,0 +1,3251 @@ +File: nonExhaustiveWhenStatement_1_7.kt - a6c8f785f3fc427a49f3c3aab8eb8a93 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + ENUM("enum") + CLASS("class") + simpleIdentifier + Identifier("SomeEnum") + enumClassBody + LCURL("{") + NL("\n") + enumEntries + enumEntry + simpleIdentifier + Identifier("A") + COMMA(",") + enumEntry + simpleIdentifier + Identifier("B") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + CLASS("class") + simpleIdentifier + Identifier("Base") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Base") + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + modifier + classModifier + SEALED("sealed") + INTERFACE("interface") + simpleIdentifier + Identifier("IBase") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + semis + NL("\n") + classMemberDeclaration + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeEnum") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeEnum") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_6") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_7") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_8") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_9") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeEnum") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_10") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_11") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_12") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_13") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("SomeEnum") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("SomeEnum") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_14") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Base") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_15") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("A") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + typeTest + isOperator + IS("is") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("IBase") + DOT(".") + simpleUserType + simpleIdentifier + Identifier("B") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test_16") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Boolean") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("true") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + BooleanLiteral("false") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/whenAndLambdaWithExpectedType.antlrtree.txt b/grammar/testData/diagnostics/when/whenAndLambdaWithExpectedType.antlrtree.txt index 85b22b76d..7b91a7f02 100644 --- a/grammar/testData/diagnostics/when/whenAndLambdaWithExpectedType.antlrtree.txt +++ b/grammar/testData/diagnostics/when/whenAndLambdaWithExpectedType.antlrtree.txt @@ -1,5 +1,4 @@ -File: whenAndLambdaWithExpectedType.kt - 8a66f742e1f19b2a66b2913cc0e1a1ab - NL("\n") +File: whenAndLambdaWithExpectedType.kt - 8cffbec57b1dc07bcc4a696496af1232 NL("\n") NL("\n") packageHeader @@ -633,7 +632,4 @@ File: whenAndLambdaWithExpectedType.kt - 8a66f742e1f19b2a66b2913cc0e1a1ab NL("\n") RCURL("}") NL("\n") - NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/whenOnClass.antlrtree.txt b/grammar/testData/diagnostics/when/whenOnClass.antlrtree.txt new file mode 100644 index 000000000..41e3066e4 --- /dev/null +++ b/grammar/testData/diagnostics/when/whenOnClass.antlrtree.txt @@ -0,0 +1,626 @@ +File: whenOnClass.kt - b0650bb7e937254dc2e8289cfade481a + NL("\n") + NL("\n") + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("B") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("A") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("C") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("a") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("A") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("a") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("javaClass") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("java") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("java") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("java") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Any") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("java") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + ELSE("else") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Foo") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("B") + semis + NL("\n") + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("Bar") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("f") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("f") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("javaClass") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Foo") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("java") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Bar") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("java") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("A") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("java") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("B") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("java") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("C") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("java") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("Any") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + COLONCOLON("::") + CLASS("class") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("java") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/whenOnNothing.antlrtree.txt b/grammar/testData/diagnostics/when/whenOnNothing.antlrtree.txt new file mode 100644 index 000000000..7e180faf2 --- /dev/null +++ b/grammar/testData/diagnostics/when/whenOnNothing.antlrtree.txt @@ -0,0 +1,240 @@ +File: whenOnNothing.kt - 04ac79a9d10979933346cb8348b6fd00 + NL("\n") + NL("\n") + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("n") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + LCURL("{") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("n") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + LCURL("{") + NL("\n") + whenEntry + whenCondition + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + NullLiteral("null") + ARROW("->") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semi + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("n") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Nothing") + quest + QUEST_NO_WS("?") + RPAREN(")") + functionBody + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + whenExpression + WHEN("when") + whenSubject + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + LCURL("{") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/diagnostics/when/whenWithNothingAndLambdas.antlrtree.txt b/grammar/testData/diagnostics/when/whenWithNothingAndLambdas.antlrtree.txt index 035e59caa..16469fe65 100644 --- a/grammar/testData/diagnostics/when/whenWithNothingAndLambdas.antlrtree.txt +++ b/grammar/testData/diagnostics/when/whenWithNothingAndLambdas.antlrtree.txt @@ -1,4 +1,4 @@ -File: whenWithNothingAndLambdas.kt - 22810c470a038848a51b2a8b86dc2b16 +File: whenWithNothingAndLambdas.kt - 06c9a2a2091f05e7e7747b1f3ab309fa NL("\n") NL("\n") NL("\n") @@ -1155,6 +1155,4 @@ File: whenWithNothingAndLambdas.kt - 22810c470a038848a51b2a8b86dc2b16 NL("\n") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/withSubjectVariable/capturingInInitializer.antlrtree.txt b/grammar/testData/diagnostics/when/withSubjectVariable/capturingInInitializer.antlrtree.txt index 232813cfa..7604937b8 100644 --- a/grammar/testData/diagnostics/when/withSubjectVariable/capturingInInitializer.antlrtree.txt +++ b/grammar/testData/diagnostics/when/withSubjectVariable/capturingInInitializer.antlrtree.txt @@ -778,6 +778,4 @@ File: capturingInInitializer.kt - ec53327982ee6fae02684c7a5ca2ea6c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/withSubjectVariable/invisibleOutsideOfWhen.antlrtree.txt b/grammar/testData/diagnostics/when/withSubjectVariable/invisibleOutsideOfWhen.antlrtree.txt index 622dd5109..8c178fa06 100644 --- a/grammar/testData/diagnostics/when/withSubjectVariable/invisibleOutsideOfWhen.antlrtree.txt +++ b/grammar/testData/diagnostics/when/withSubjectVariable/invisibleOutsideOfWhen.antlrtree.txt @@ -260,6 +260,4 @@ File: invisibleOutsideOfWhen.kt - 2b82c2e8a8ff4aab6697d819b1550c5a QUOTE_CLOSE(""") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/withSubjectVariable/jumpoutInInitializer.antlrtree.txt b/grammar/testData/diagnostics/when/withSubjectVariable/jumpoutInInitializer.antlrtree.txt index 2068d3fcd..827647bef 100644 --- a/grammar/testData/diagnostics/when/withSubjectVariable/jumpoutInInitializer.antlrtree.txt +++ b/grammar/testData/diagnostics/when/withSubjectVariable/jumpoutInInitializer.antlrtree.txt @@ -1020,6 +1020,4 @@ File: jumpoutInInitializer.kt - 49963727d5648ee4381d86168aefc612 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/withSubjectVariable/nestedWhenWithSubject.antlrtree.txt b/grammar/testData/diagnostics/when/withSubjectVariable/nestedWhenWithSubject.antlrtree.txt index 08c81054c..4658ce6c2 100644 --- a/grammar/testData/diagnostics/when/withSubjectVariable/nestedWhenWithSubject.antlrtree.txt +++ b/grammar/testData/diagnostics/when/withSubjectVariable/nestedWhenWithSubject.antlrtree.txt @@ -853,6 +853,4 @@ File: nestedWhenWithSubject.kt - cdebd53eb8cc0d35d667f2c2b13a3528 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/withSubjectVariable/shadowingOtherVariable.antlrtree.txt b/grammar/testData/diagnostics/when/withSubjectVariable/shadowingOtherVariable.antlrtree.txt index e31e4924b..e40cea571 100644 --- a/grammar/testData/diagnostics/when/withSubjectVariable/shadowingOtherVariable.antlrtree.txt +++ b/grammar/testData/diagnostics/when/withSubjectVariable/shadowingOtherVariable.antlrtree.txt @@ -455,6 +455,4 @@ File: shadowingOtherVariable.kt - 30174e1569dd50155f25905e09db5043 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.antlrtree.txt b/grammar/testData/diagnostics/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.antlrtree.txt index cdab5b0f8..96b0fdac2 100644 --- a/grammar/testData/diagnostics/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.antlrtree.txt +++ b/grammar/testData/diagnostics/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.antlrtree.txt @@ -1,5 +1,4 @@ -File: smartCastOnValueBoundToSubjectVariable.kt - cf1831d0fd5a1df9309fb135b90832f8 - NL("\n") +File: smartCastOnValueBoundToSubjectVariable.kt - ec1289f96a80e4554b59ef7367c78bb8 NL("\n") NL("\n") packageHeader @@ -1409,5 +1408,5 @@ File: smartCastOnValueBoundToSubjectVariable.kt - cf1831d0fd5a1df9309fb135b90832 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/diagnostics/when/withSubjectVariable/smartcastToSealed.antlrtree.txt b/grammar/testData/diagnostics/when/withSubjectVariable/smartcastToSealed.antlrtree.txt index 5cd873881..b98f9b93c 100644 --- a/grammar/testData/diagnostics/when/withSubjectVariable/smartcastToSealed.antlrtree.txt +++ b/grammar/testData/diagnostics/when/withSubjectVariable/smartcastToSealed.antlrtree.txt @@ -406,6 +406,4 @@ File: smartcastToSealed.kt - 7d28a2270e9deb8bd4bcc0cea7135229 RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/withSubjectVariable/softModifierName.antlrtree.txt b/grammar/testData/diagnostics/when/withSubjectVariable/softModifierName.antlrtree.txt index 70bfe67ba..43425cfcc 100644 --- a/grammar/testData/diagnostics/when/withSubjectVariable/softModifierName.antlrtree.txt +++ b/grammar/testData/diagnostics/when/withSubjectVariable/softModifierName.antlrtree.txt @@ -146,6 +146,4 @@ File: softModifierName.kt - 48bba646276a19abc1b0de2a46340ffd semi NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/withSubjectVariable/subjectVariableInIsPattern.antlrtree.txt b/grammar/testData/diagnostics/when/withSubjectVariable/subjectVariableInIsPattern.antlrtree.txt index 4bacf258c..88e489b11 100644 --- a/grammar/testData/diagnostics/when/withSubjectVariable/subjectVariableInIsPattern.antlrtree.txt +++ b/grammar/testData/diagnostics/when/withSubjectVariable/subjectVariableInIsPattern.antlrtree.txt @@ -100,6 +100,4 @@ File: subjectVariableInIsPattern.kt - 73cb831c2d1702bd76c646c0117c0ebd semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/withSubjectVariable/unsupportedFeature.antlrtree.txt b/grammar/testData/diagnostics/when/withSubjectVariable/unsupportedFeature.antlrtree.txt index a384dd074..3513c5b51 100644 --- a/grammar/testData/diagnostics/when/withSubjectVariable/unsupportedFeature.antlrtree.txt +++ b/grammar/testData/diagnostics/when/withSubjectVariable/unsupportedFeature.antlrtree.txt @@ -261,6 +261,4 @@ File: unsupportedFeature.kt - 5a7048a28ab73ce1732a260337e8b45e QUOTE_CLOSE(""") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/diagnostics/when/withSubjectVariable/unusedWhenSubjectVariable.antlrtree.txt b/grammar/testData/diagnostics/when/withSubjectVariable/unusedWhenSubjectVariable.antlrtree.txt index 190d4ab1b..1f6d0a219 100644 --- a/grammar/testData/diagnostics/when/withSubjectVariable/unusedWhenSubjectVariable.antlrtree.txt +++ b/grammar/testData/diagnostics/when/withSubjectVariable/unusedWhenSubjectVariable.antlrtree.txt @@ -1,4 +1,5 @@ -File: unusedWhenSubjectVariable.kt - 3dbf3005a120d8690f71d6f6e4332f23 +File: unusedWhenSubjectVariable.kt - 5f657b80401ecf1a10c8f510b9d8faa8 + NL("\n") NL("\n") NL("\n") packageHeader @@ -113,5 +114,5 @@ File: unusedWhenSubjectVariable.kt - 3dbf3005a120d8690f71d6f6e4332f23 NL("\n") RCURL("}") semis - EOF("") + NL("\n") EOF("") diff --git a/grammar/testData/grammar/annotations/exclamationMark.antlrtree.txt b/grammar/testData/grammar/annotations/exclamationMark.antlrtree.txt index b309f936e..80428560e 100644 --- a/grammar/testData/grammar/annotations/exclamationMark.antlrtree.txt +++ b/grammar/testData/grammar/annotations/exclamationMark.antlrtree.txt @@ -211,6 +211,4 @@ File: exclamationMark.kt - 9a0edc06e282c798cde7565f9c3f3a91 primaryExpression simpleIdentifier Identifier("y") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/file.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/file.antlrtree.txt index f4e0384e7..208d9f334 100644 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/file.antlrtree.txt +++ b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/file.antlrtree.txt @@ -25,6 +25,4 @@ File: file.kt - e993cd0d1d50b4120494284555974df2 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fileInBackticks.antlrtree.txt b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fileInBackticks.antlrtree.txt index 101d79ac6..ff31c0427 100644 --- a/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fileInBackticks.antlrtree.txt +++ b/grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/fileInBackticks.antlrtree.txt @@ -25,6 +25,4 @@ File: fileInBackticks.kt - d127906cc039d0b176d54ef0573fa59d LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/file.antlrtree.txt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/file.antlrtree.txt index 8b6872912..7f68ea61b 100644 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/file.antlrtree.txt +++ b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/file.antlrtree.txt @@ -25,6 +25,4 @@ File: file.kt - ee936f9d2c09898295c283b114008273 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileInBackticks.antlrtree.txt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileInBackticks.antlrtree.txt index 1e7168f5a..772b381c6 100644 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileInBackticks.antlrtree.txt +++ b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileInBackticks.antlrtree.txt @@ -25,6 +25,4 @@ File: fileInBackticks.kt - b5cc78d9c9ac44265d3b1e89e5ad8ad8 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileWithWhitespaceInBackticks.antlrtree.txt b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileWithWhitespaceInBackticks.antlrtree.txt index 61228d67e..696e62ef8 100644 --- a/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileWithWhitespaceInBackticks.antlrtree.txt +++ b/grammar/testData/grammar/annotations/namePrefixAsUseSiteTargetPrefix/fileWithWhitespaceInBackticks.antlrtree.txt @@ -25,6 +25,4 @@ File: fileWithWhitespaceInBackticks.kt - bf0b3294bcfdac194d35ffd9952a211f LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/asExpression/asExpressionRepeation.antlrtree.txt b/grammar/testData/grammar/asExpression/asExpressionRepeation.antlrtree.txt index 952a7647c..9d6046790 100644 --- a/grammar/testData/grammar/asExpression/asExpressionRepeation.antlrtree.txt +++ b/grammar/testData/grammar/asExpression/asExpressionRepeation.antlrtree.txt @@ -507,6 +507,4 @@ File: asExpressionRepeation.kt - a465d08c3c8f50ea532f1b777fa42e3b Identifier("Int") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairs.antlrtree.txt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairs.antlrtree.txt index 199b7bc28..3073fc7aa 100644 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairs.antlrtree.txt +++ b/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairs.antlrtree.txt @@ -105,6 +105,4 @@ File: manyParenthesesPairs.kt - c0af5995639fad49d95aa4751f4ed33a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnArrayElement.antlrtree.txt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnArrayElement.antlrtree.txt index be5da57cb..3ec3a990b 100644 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnArrayElement.antlrtree.txt +++ b/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnArrayElement.antlrtree.txt @@ -123,6 +123,4 @@ File: manyParenthesesPairsOnArrayElement.kt - d6d8b126018bd117fda7b3c17564bcc7 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnProperty.antlrtree.txt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnProperty.antlrtree.txt index 131712582..78c9d4029 100644 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnProperty.antlrtree.txt +++ b/grammar/testData/grammar/assignments/withLeftHandInParentheses/manyParenthesesPairsOnProperty.antlrtree.txt @@ -110,6 +110,4 @@ File: manyParenthesesPairsOnProperty.kt - 18f05025a5d942b440d360227d2b0e61 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPair.antlrtree.txt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPair.antlrtree.txt index b7f26b7f4..86ffea5c6 100644 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPair.antlrtree.txt +++ b/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPair.antlrtree.txt @@ -62,6 +62,4 @@ File: oneParenthesesPair.kt - 69c71721e41e05ac8e354ff09c5d3a8b semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnArrayElement.antlrtree.txt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnArrayElement.antlrtree.txt index e612b85d1..45a7ebed6 100644 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnArrayElement.antlrtree.txt +++ b/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnArrayElement.antlrtree.txt @@ -113,6 +113,4 @@ File: oneParenthesesPairOnArrayElement.kt - 255ead544f0933d02e7c846829cf4ebe semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnProperty.antlrtree.txt b/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnProperty.antlrtree.txt index 235427f1c..b529fd509 100644 --- a/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnProperty.antlrtree.txt +++ b/grammar/testData/grammar/assignments/withLeftHandInParentheses/oneParenthesesPairOnProperty.antlrtree.txt @@ -93,6 +93,4 @@ File: oneParenthesesPairOnProperty.kt - 70433ab8b4cf8fbbfbfa542651c81862 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnDeclarationSite.antlrtree.txt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnDeclarationSite.antlrtree.txt index 4da8b992d..d4f252416 100644 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnDeclarationSite.antlrtree.txt +++ b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnDeclarationSite.antlrtree.txt @@ -149,6 +149,4 @@ File: functionsChainWithExpectedTypeOnDeclarationSite.kt - 2b22c3d62b5d4158950fd semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnUseSite.antlrtree.txt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnUseSite.antlrtree.txt index 7b949edc6..f30805ebf 100644 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnUseSite.antlrtree.txt +++ b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/functionsChainWithExpectedTypeOnUseSite.antlrtree.txt @@ -237,6 +237,4 @@ File: functionsChainWithExpectedTypeOnUseSite.kt - 349f0237005787e7ab29a177f69ae simpleIdentifier Identifier("e") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotation.antlrtree.txt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotation.antlrtree.txt index 7dd15b6ac..848c90b98 100644 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotation.antlrtree.txt +++ b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotation.antlrtree.txt @@ -68,6 +68,4 @@ File: withAnnotation.kt - 479c35f8233ed3a69aadb6d9876b1811 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationAfterVararg.antlrtree.txt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationAfterVararg.antlrtree.txt index 4628548ac..31286cfd0 100644 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationAfterVararg.antlrtree.txt +++ b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationAfterVararg.antlrtree.txt @@ -70,6 +70,4 @@ File: withAnnotationAfterVararg.kt - 10bea537408bac146cca714fc1569116 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationBeforeVararg.antlrtree.txt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationBeforeVararg.antlrtree.txt index 0c2941c43..13d1fc73d 100644 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationBeforeVararg.antlrtree.txt +++ b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withAnnotationBeforeVararg.antlrtree.txt @@ -70,6 +70,4 @@ File: withAnnotationBeforeVararg.kt - 8733559e776e928877743165cb1002ad LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnDeclarationSite.antlrtree.txt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnDeclarationSite.antlrtree.txt index 1fe29d8e6..65dd5c3d2 100644 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnDeclarationSite.antlrtree.txt +++ b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnDeclarationSite.antlrtree.txt @@ -121,6 +121,4 @@ File: withExpectedTypeOnDeclarationSite.kt - 3a3663c46abeafcb5d93f9c615211a8c literalConstant IntegerLiteral("10") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnUseSite.antlrtree.txt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnUseSite.antlrtree.txt index 15f272bb2..dfad6fd50 100644 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnUseSite.antlrtree.txt +++ b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withExpectedTypeOnUseSite.antlrtree.txt @@ -59,6 +59,4 @@ File: withExpectedTypeOnUseSite.kt - a1da86122234b8d6ab789ae2dc926f55 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withVararg.antlrtree.txt b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withVararg.antlrtree.txt index a4f5bac18..d9e8044dc 100644 --- a/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withVararg.antlrtree.txt +++ b/grammar/testData/grammar/functions/anonymousFunctionsWithoutTypeForArguments/withVararg.antlrtree.txt @@ -62,6 +62,4 @@ File: withVararg.kt - 3098a06bd791b065c936f4dc2c1ebe80 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/functions/lt-gt-ambiguity.antlrtree.txt b/grammar/testData/grammar/functions/lt-gt-ambiguity.antlrtree.txt index 6d06688fa..e17ded17a 100644 --- a/grammar/testData/grammar/functions/lt-gt-ambiguity.antlrtree.txt +++ b/grammar/testData/grammar/functions/lt-gt-ambiguity.antlrtree.txt @@ -3178,6 +3178,4 @@ File: lt-gt-ambiguity.kt - ea23ffc2ab438bfb8331cc759b9a5441 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/functions/onlyWithSemicolon.antlrtree.txt b/grammar/testData/grammar/functions/onlyWithSemicolon.antlrtree.txt index 27a1199ba..812ba291d 100644 --- a/grammar/testData/grammar/functions/onlyWithSemicolon.antlrtree.txt +++ b/grammar/testData/grammar/functions/onlyWithSemicolon.antlrtree.txt @@ -17,6 +17,4 @@ File: onlyWithSemicolon.kt - f3ea2c7d977787177afe05f78390c353 semis SEMICOLON(";") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/backSlash.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/backSlash.antlrtree.txt index c4b81c9d9..9f662f2e4 100644 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/backSlash.antlrtree.txt +++ b/grammar/testData/grammar/identifiers/forbiddenSymbols/backSlash.antlrtree.txt @@ -27,6 +27,4 @@ File: backSlash.kt - 8946b4290a96556f4d8f43556a648026 primaryExpression literalConstant IntegerLiteral("100") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/backtick.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/backtick.antlrtree.txt index cbee62d8f..d89e6300b 100644 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/backtick.antlrtree.txt +++ b/grammar/testData/grammar/identifiers/forbiddenSymbols/backtick.antlrtree.txt @@ -13,6 +13,4 @@ File: backtick.kt - eaa5726163fbacfc37bccdc3590b37c0 (WITH_ERRORS) RPAREN(")") LCURL("{") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/colon.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/colon.antlrtree.txt index acf96522c..d3a2cc5d8 100644 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/colon.antlrtree.txt +++ b/grammar/testData/grammar/identifiers/forbiddenSymbols/colon.antlrtree.txt @@ -8,6 +8,4 @@ File: colon.kt - 27b46d85572c561ea521fc18a569860d (WITH_ERRORS) Identifier("`:::`") LCURL("{") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/dot.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/dot.antlrtree.txt index a9d84f086..5056d81c3 100644 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/dot.antlrtree.txt +++ b/grammar/testData/grammar/identifiers/forbiddenSymbols/dot.antlrtree.txt @@ -13,6 +13,4 @@ File: dot.kt - c2da8ed4d2daa57f980ab8acbb022d14 NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/doubleBacktick.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/doubleBacktick.antlrtree.txt index 4b8a417d4..3b7cc9eb1 100644 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/doubleBacktick.antlrtree.txt +++ b/grammar/testData/grammar/identifiers/forbiddenSymbols/doubleBacktick.antlrtree.txt @@ -14,6 +14,4 @@ File: doubleBacktick.kt - 4fc3e2e0f108e717ac1733a77bde97c0 (WITH_ERRORS) RPAREN(")") LCURL("{") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/leftAngleBracket.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/leftAngleBracket.antlrtree.txt index 1f90d2951..7ec7cceff 100644 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/leftAngleBracket.antlrtree.txt +++ b/grammar/testData/grammar/identifiers/forbiddenSymbols/leftAngleBracket.antlrtree.txt @@ -11,6 +11,4 @@ File: leftAngleBracket.kt - fdf1663b71109ac19303931ec76e314c LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/leftSquareBracket.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/leftSquareBracket.antlrtree.txt index 16cf41d5e..e93ba2d95 100644 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/leftSquareBracket.antlrtree.txt +++ b/grammar/testData/grammar/identifiers/forbiddenSymbols/leftSquareBracket.antlrtree.txt @@ -11,6 +11,4 @@ File: leftSquareBracket.kt - 699f1faeb457efcad636fb68ccf1ebc0 LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/rightAngleBracket.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/rightAngleBracket.antlrtree.txt index 80c9e62bb..1b1fc6bba 100644 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/rightAngleBracket.antlrtree.txt +++ b/grammar/testData/grammar/identifiers/forbiddenSymbols/rightAngleBracket.antlrtree.txt @@ -11,6 +11,4 @@ File: rightAngleBracket.kt - 4943d85a5dccd63b423b28c00813c8bd LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/rightSquareBracket.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/rightSquareBracket.antlrtree.txt index c2d85f51a..c320325c9 100644 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/rightSquareBracket.antlrtree.txt +++ b/grammar/testData/grammar/identifiers/forbiddenSymbols/rightSquareBracket.antlrtree.txt @@ -11,6 +11,4 @@ File: rightSquareBracket.kt - fcf2289ac60927c0f1d09af7d41afebf LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/semicolon.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/semicolon.antlrtree.txt index 6ca0f9a99..42b2ab14b 100644 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/semicolon.antlrtree.txt +++ b/grammar/testData/grammar/identifiers/forbiddenSymbols/semicolon.antlrtree.txt @@ -8,6 +8,4 @@ File: semicolon.kt - d7e339de78caee3930a900067a59f121 (WITH_ERRORS) Identifier("`test;test`") LCURL("{") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/identifiers/forbiddenSymbols/slash.antlrtree.txt b/grammar/testData/grammar/identifiers/forbiddenSymbols/slash.antlrtree.txt index 0cdf9ec00..12b4bd4a8 100644 --- a/grammar/testData/grammar/identifiers/forbiddenSymbols/slash.antlrtree.txt +++ b/grammar/testData/grammar/identifiers/forbiddenSymbols/slash.antlrtree.txt @@ -27,6 +27,4 @@ File: slash.kt - ba14f387c3739b1b6d313b234189cb9b primaryExpression literalConstant IntegerLiteral("10") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.antlrtree.txt index 0a0279f6d..a9925ce30 100644 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.antlrtree.txt +++ b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.antlrtree.txt @@ -90,6 +90,4 @@ File: ifAndElseIfAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression RPAREN(")") SEMICOLON(";") ELSE("else") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAsExpression.antlrtree.txt index 49ccaa10c..0f56c2d8d 100644 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAsExpression.antlrtree.txt +++ b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithSemicolonBetweenAsExpression.antlrtree.txt @@ -134,6 +134,4 @@ File: ifAndElseIfAndElseWithSemicolonBetweenAsExpression.kt - 28faf145a963bc876e SEMICOLON(";") ELSE("else") SEMICOLON(";") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.antlrtree.txt index cba4064e7..7e003f97c 100644 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.antlrtree.txt +++ b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.antlrtree.txt @@ -75,6 +75,4 @@ File: ifAndElseIfAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.kt BooleanLiteral("false") RPAREN(")") ELSE("else") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAsExpression.antlrtree.txt index 24d201ef7..68b45010c 100644 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAsExpression.antlrtree.txt +++ b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseIfAndElseWithoutSemicolonBetweenAsExpression.antlrtree.txt @@ -90,6 +90,4 @@ File: ifAndElseIfAndElseWithoutSemicolonBetweenAsExpression.kt - 3e699e4cd978adc RPAREN(")") ELSE("else") SEMICOLON(";") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.antlrtree.txt index f13ee14ac..ca5170fb2 100644 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.antlrtree.txt +++ b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.antlrtree.txt @@ -49,6 +49,4 @@ File: ifAndElseWithSemicolonBetweenAndWithoutSemicolonAtEndAsExpression.kt - 964 RPAREN(")") SEMICOLON(";") ELSE("else") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAsExpression.antlrtree.txt index 8a0d34513..2f2eb0b87 100644 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAsExpression.antlrtree.txt +++ b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithSemicolonBetweenAsExpression.antlrtree.txt @@ -50,6 +50,4 @@ File: ifAndElseWithSemicolonBetweenAsExpression.kt - 56798f1308a19b13b2ac273a20f SEMICOLON(";") ELSE("else") SEMICOLON(";") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.antlrtree.txt index cee3ae793..4417a68f9 100644 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.antlrtree.txt +++ b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.antlrtree.txt @@ -48,6 +48,4 @@ File: ifAndElseWithoutSemicolonBetweenAndSemicolonAtEndAsExpression.kt - 730ba9f BooleanLiteral("true") RPAREN(")") ELSE("else") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAsExpression.antlrtree.txt index 51125eb1a..a099b2298 100644 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAsExpression.antlrtree.txt +++ b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/ifAndElseWithoutSemicolonBetweenAsExpression.antlrtree.txt @@ -49,6 +49,4 @@ File: ifAndElseWithoutSemicolonBetweenAsExpression.kt - afbce4e6ee91b90f97500150 RPAREN(")") ELSE("else") SEMICOLON(";") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfAsExpression.antlrtree.txt index 2420017e5..b6a8d277a 100644 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfAsExpression.antlrtree.txt +++ b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfAsExpression.antlrtree.txt @@ -48,6 +48,4 @@ File: onlyIfAsExpression.kt - c84961224310d9da5a50d616675e8637 BooleanLiteral("true") RPAREN(")") SEMICOLON(";") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpression.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpression.antlrtree.txt index ae3e951d6..550616b47 100644 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpression.antlrtree.txt +++ b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpression.antlrtree.txt @@ -47,6 +47,4 @@ File: onlyIfWithoutSemicolonAsExpression.kt - 9b384b3b47dcea12d81dd0a4d39085a8 ( literalConstant BooleanLiteral("true") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpressionAndOtherStatementsAfter.antlrtree.txt b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpressionAndOtherStatementsAfter.antlrtree.txt index c09dde707..7be43a504 100644 --- a/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpressionAndOtherStatementsAfter.antlrtree.txt +++ b/grammar/testData/grammar/ifExpression/emptyControlStructureBody/onlyIfWithoutSemicolonAsExpressionAndOtherStatementsAfter.antlrtree.txt @@ -75,6 +75,4 @@ File: onlyIfWithoutSemicolonAsExpressionAndOtherStatementsAfter.kt - ce25d390772 primaryExpression literalConstant IntegerLiteral("10") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/loops/emptyWhile.antlrtree.txt b/grammar/testData/grammar/loops/emptyWhile.antlrtree.txt index 797bd6826..1abec0e6f 100644 --- a/grammar/testData/grammar/loops/emptyWhile.antlrtree.txt +++ b/grammar/testData/grammar/loops/emptyWhile.antlrtree.txt @@ -71,6 +71,4 @@ File: emptyWhile.kt - d78da6b0facb8dfb487493325cf3a9a8 SEMICOLON(";") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/memberAccess.antlrtree.txt b/grammar/testData/grammar/newLinesInExpressionContext/when/memberAccess.antlrtree.txt index eaa1d74b9..88814b68c 100644 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/memberAccess.antlrtree.txt +++ b/grammar/testData/grammar/newLinesInExpressionContext/when/memberAccess.antlrtree.txt @@ -184,6 +184,4 @@ File: memberAccess.kt - 76a67f5bbc8ff4e3e1d02e6568e89d18 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/prefixDecrement.antlrtree.txt b/grammar/testData/grammar/newLinesInExpressionContext/when/prefixDecrement.antlrtree.txt index 735f5b128..af6d40e08 100644 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/prefixDecrement.antlrtree.txt +++ b/grammar/testData/grammar/newLinesInExpressionContext/when/prefixDecrement.antlrtree.txt @@ -235,6 +235,4 @@ File: prefixDecrement.kt - 800c38d15d3784e3415eddf8a9e57973 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/prefixIncrement.antlrtree.txt b/grammar/testData/grammar/newLinesInExpressionContext/when/prefixIncrement.antlrtree.txt index 6b25f2879..460c0ba6b 100644 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/prefixIncrement.antlrtree.txt +++ b/grammar/testData/grammar/newLinesInExpressionContext/when/prefixIncrement.antlrtree.txt @@ -180,6 +180,4 @@ File: prefixIncrement.kt - 18169d21bec0bc4766e1621c42f8dde9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/unaryMinus.antlrtree.txt b/grammar/testData/grammar/newLinesInExpressionContext/when/unaryMinus.antlrtree.txt index bd0d7aa87..2095b469c 100644 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/unaryMinus.antlrtree.txt +++ b/grammar/testData/grammar/newLinesInExpressionContext/when/unaryMinus.antlrtree.txt @@ -149,6 +149,4 @@ File: unaryMinus.kt - b2ebc15f69bc8f96be4a3100044042d3 semi NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/newLinesInExpressionContext/when/unaryPlus.antlrtree.txt b/grammar/testData/grammar/newLinesInExpressionContext/when/unaryPlus.antlrtree.txt index ba79db094..890a42ff1 100644 --- a/grammar/testData/grammar/newLinesInExpressionContext/when/unaryPlus.antlrtree.txt +++ b/grammar/testData/grammar/newLinesInExpressionContext/when/unaryPlus.antlrtree.txt @@ -153,6 +153,4 @@ File: unaryPlus.kt - de6f8c70418e665bb9843efe0ba96fb0 semi NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/objectLiteral/withoutClassBody.antlrtree.txt b/grammar/testData/grammar/objectLiteral/withoutClassBody.antlrtree.txt index 8cc6b9a87..892420ce0 100644 --- a/grammar/testData/grammar/objectLiteral/withoutClassBody.antlrtree.txt +++ b/grammar/testData/grammar/objectLiteral/withoutClassBody.antlrtree.txt @@ -43,6 +43,4 @@ File: withoutClassBody.kt - 7697f8bbb85db39c70ab6c62a05b37ec OBJECT("object") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegation.antlrtree.txt b/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegation.antlrtree.txt index dd7afa32f..ffb9b44be 100644 --- a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegation.antlrtree.txt +++ b/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegation.antlrtree.txt @@ -61,6 +61,4 @@ File: withoutClassBodyAndWithDelegation.kt - eaea92a4bb753ff02ab0602230cc1610 RANGLE(">") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegationAndSemicolon.antlrtree.txt b/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegationAndSemicolon.antlrtree.txt index 7ec39beca..0b7620750 100644 --- a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegationAndSemicolon.antlrtree.txt +++ b/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithDelegationAndSemicolon.antlrtree.txt @@ -63,6 +63,4 @@ File: withoutClassBodyAndWithDelegationAndSemicolon.kt - 890944e782acdd447d1f98f SEMICOLON(";") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithSemicolon.antlrtree.txt b/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithSemicolon.antlrtree.txt index 08e9eae58..e82f91578 100644 --- a/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithSemicolon.antlrtree.txt +++ b/grammar/testData/grammar/objectLiteral/withoutClassBodyAndWithSemicolon.antlrtree.txt @@ -45,6 +45,4 @@ File: withoutClassBodyAndWithSemicolon.kt - c6876c2a2b0cda1ff0c3b2733f1510b7 SEMICOLON(";") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature.antlrtree.txt b/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature.antlrtree.txt index f25fac526..95cef832d 100644 --- a/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature.antlrtree.txt +++ b/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature.antlrtree.txt @@ -93,6 +93,4 @@ File: annotatedTypeInCatchBlockSignature.kt - c0cbc4cf4b7538b40ed6dc90050e7c07 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature55.antlrtree.txt b/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature55.antlrtree.txt index f3675ba59..5bd61e2f5 100644 --- a/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature55.antlrtree.txt +++ b/grammar/testData/grammar/tryExpression/annotatedTypeInCatchBlockSignature55.antlrtree.txt @@ -158,6 +158,4 @@ File: annotatedTypeInCatchBlockSignature55.kt - 97abd87c4761d2a5f2c6172358d21a3f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/AbsentInnerType.antlrtree.txt b/grammar/testData/psi/AbsentInnerType.antlrtree.txt index 11fdae42c..e267632ca 100644 --- a/grammar/testData/psi/AbsentInnerType.antlrtree.txt +++ b/grammar/testData/psi/AbsentInnerType.antlrtree.txt @@ -34,6 +34,4 @@ File: AbsentInnerType.kt - abd9ef28220aafb9ecfac56376065911 primaryExpression literalConstant IntegerLiteral("1") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/AnnotatedIntersections.antlrtree.txt b/grammar/testData/psi/AnnotatedIntersections.antlrtree.txt new file mode 100644 index 000000000..c8ed3123c --- /dev/null +++ b/grammar/testData/psi/AnnotatedIntersections.antlrtree.txt @@ -0,0 +1,537 @@ +File: AnnotatedIntersections.kt - 26a367b9bf00dd9355cd99aacf698229 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ann") + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ann") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + typeProjectionModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ann") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ann") + parenthesizedType + LPAREN("(") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ann") + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_WS("? ") + AMP("&") + Identifier("Any") + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo6") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ann") + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + AMP("&") + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo7") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ann") + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + parenthesizedUserType + LPAREN("(") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + AMP("&") + Identifier("Any") + RPAREN(")") + RPAREN(")") + LCURL("{") + RCURL("}") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ann") + parenthesizedType + LPAREN("(") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + DOT(".") + simpleIdentifier + Identifier("foo8") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo10") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ann") + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + DOT(".") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo11") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("ann") + functionType + receiverType + parenthesizedType + LPAREN("(") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/psi/ByClauses.antlrtree.txt b/grammar/testData/psi/ByClauses.antlrtree.txt index dc0dc362e..eecdd711f 100644 --- a/grammar/testData/psi/ByClauses.antlrtree.txt +++ b/grammar/testData/psi/ByClauses.antlrtree.txt @@ -526,6 +526,4 @@ File: ByClauses.kt - ecf3ac04aad889a40d1c6c6fd175f719 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/CallWithManyClosures.antlrtree.txt b/grammar/testData/psi/CallWithManyClosures.antlrtree.txt index c3d6ee2ab..e6f4e8d1e 100644 --- a/grammar/testData/psi/CallWithManyClosures.antlrtree.txt +++ b/grammar/testData/psi/CallWithManyClosures.antlrtree.txt @@ -388,6 +388,4 @@ File: CallWithManyClosures.kt - 19617c85a65e866cf373d377a8df2eff LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/CollectionLiterals.antlrtree.txt b/grammar/testData/psi/CollectionLiterals.antlrtree.txt index ed76d0b01..9bb8c4ea1 100644 --- a/grammar/testData/psi/CollectionLiterals.antlrtree.txt +++ b/grammar/testData/psi/CollectionLiterals.antlrtree.txt @@ -593,6 +593,4 @@ File: CollectionLiterals.kt - 8f3686497ee303d9f638bb10b83bdcb9 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/CommentsBindingInStatementBlock.antlrtree.txt b/grammar/testData/psi/CommentsBindingInStatementBlock.antlrtree.txt index d4a6c698b..398488d0d 100644 --- a/grammar/testData/psi/CommentsBindingInStatementBlock.antlrtree.txt +++ b/grammar/testData/psi/CommentsBindingInStatementBlock.antlrtree.txt @@ -241,6 +241,4 @@ File: CommentsBindingInStatementBlock.kt - cd750e09bc617d4bafa77ab94775dc2a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/Constructors.antlrtree.txt b/grammar/testData/psi/Constructors.antlrtree.txt index 4dfc84477..9e6ba9ea4 100644 --- a/grammar/testData/psi/Constructors.antlrtree.txt +++ b/grammar/testData/psi/Constructors.antlrtree.txt @@ -115,6 +115,4 @@ File: Constructors.kt - 04635932e5e7825a443df29291edf5bb (WITH_ERRORS) RPAREN(")") COLON(":") Identifier("Bar") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/DefaultKeyword.antlrtree.txt b/grammar/testData/psi/DefaultKeyword.antlrtree.txt index 9eeab1175..546f07ae2 100644 --- a/grammar/testData/psi/DefaultKeyword.antlrtree.txt +++ b/grammar/testData/psi/DefaultKeyword.antlrtree.txt @@ -443,6 +443,4 @@ File: DefaultKeyword.kt - 861204e4c9a7aef1fa44e8fd25ccd10f semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/DefinitelyNotNullType.antlrtree.txt b/grammar/testData/psi/DefinitelyNotNullType.antlrtree.txt new file mode 100644 index 000000000..6febc8d88 --- /dev/null +++ b/grammar/testData/psi/DefinitelyNotNullType.antlrtree.txt @@ -0,0 +1,264 @@ +File: DefinitelyNotNullType.kt - eef493937f9afc15ace1c24b48e9c0f5 + NL("\n") + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + COMMA(",") + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + LANGLE("<") + Identifier("T") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + RANGLE(">") + COMMA(",") + Identifier("z") + COLON(":") + Identifier("T") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + DOT(".") + LPAREN("(") + Identifier("T") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + RPAREN(")") + ARROW("->") + Identifier("T") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + RPAREN(")") + COLON(":") + Identifier("T") + EXCL_NO_WS("!") + EXCL_WS("! ") + LCURL("{") + RCURL("}") + NL("\n") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + QUEST_NO_WS("?") + COMMA(",") + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + LANGLE("<") + Identifier("T") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + QUEST_NO_WS("?") + RANGLE(">") + COMMA(",") + Identifier("z") + COLON(":") + Identifier("T") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + QUEST_NO_WS("?") + DOT(".") + LPAREN("(") + Identifier("T") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + QUEST_NO_WS("?") + RPAREN(")") + ARROW("->") + Identifier("T") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + QUEST_NO_WS("?") + COMMA(",") + Identifier("w") + COLON(":") + Identifier("String") + EXCL_NO_WS("!") + EXCL_NO_WS("!") + RPAREN(")") + COLON(":") + Identifier("T") + EXCL_NO_WS("!") + EXCL_WS("! ") + LCURL("{") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("foo3") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + unaryPrefix + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("RetentionSourceAndTargetExpression") + unaryPrefix + prefixUnaryOperator + excl + EXCL_NO_WS("!") + unaryPrefix + prefixUnaryOperator + excl + EXCL_NO_WS("!") + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + equalityOperator + EQEQ("==") + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + RPAREN(")") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/psi/DocCommentAfterFileAnnotations.antlrtree.txt b/grammar/testData/psi/DocCommentAfterFileAnnotations.antlrtree.txt index 9f9f924b9..26a119681 100644 --- a/grammar/testData/psi/DocCommentAfterFileAnnotations.antlrtree.txt +++ b/grammar/testData/psi/DocCommentAfterFileAnnotations.antlrtree.txt @@ -24,6 +24,4 @@ File: DocCommentAfterFileAnnotations.kt - fea4cc966d62e4d26db475b28e7d4e8d LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/DocCommentForFirstDeclaration.antlrtree.txt b/grammar/testData/psi/DocCommentForFirstDeclaration.antlrtree.txt index 597653cc1..513c6afaf 100644 --- a/grammar/testData/psi/DocCommentForFirstDeclaration.antlrtree.txt +++ b/grammar/testData/psi/DocCommentForFirstDeclaration.antlrtree.txt @@ -16,6 +16,4 @@ File: DocCommentForFirstDeclaration.kt - ac4f1f60ff5f37a8d7a889ef1f7920a3 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/DocCommentOnPackageDirectiveLine.antlrtree.txt b/grammar/testData/psi/DocCommentOnPackageDirectiveLine.antlrtree.txt index 27850fb00..b5c048e21 100644 --- a/grammar/testData/psi/DocCommentOnPackageDirectiveLine.antlrtree.txt +++ b/grammar/testData/psi/DocCommentOnPackageDirectiveLine.antlrtree.txt @@ -25,6 +25,4 @@ File: DocCommentOnPackageDirectiveLine.kt - 1ce4348b17edc3ad490fa009d5e4b3ea LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/DocCommentsBinding.antlrtree.txt b/grammar/testData/psi/DocCommentsBinding.antlrtree.txt index 1c0b43fb4..3de9ade61 100644 --- a/grammar/testData/psi/DocCommentsBinding.antlrtree.txt +++ b/grammar/testData/psi/DocCommentsBinding.antlrtree.txt @@ -148,6 +148,4 @@ File: DocCommentsBinding.kt - 9cfc58ef284122e217ff44033f772bae NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/DynamicSoftKeyword.antlrtree.txt b/grammar/testData/psi/DynamicSoftKeyword.antlrtree.txt index 7b8216d1f..d98369d38 100644 --- a/grammar/testData/psi/DynamicSoftKeyword.antlrtree.txt +++ b/grammar/testData/psi/DynamicSoftKeyword.antlrtree.txt @@ -122,6 +122,4 @@ File: DynamicSoftKeyword.kt - 5a766a6c1d6a09ef5c0f3b90b17b44b6 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/DynamicTypes.antlrtree.txt b/grammar/testData/psi/DynamicTypes.antlrtree.txt index 8cda89a74..24f97d696 100644 --- a/grammar/testData/psi/DynamicTypes.antlrtree.txt +++ b/grammar/testData/psi/DynamicTypes.antlrtree.txt @@ -165,6 +165,4 @@ File: DynamicTypes.kt - 43660883c095d240d27c6c06671ee601 simpleUserType simpleIdentifier DYNAMIC("dynamic") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/EOLsInComments.antlrtree.txt b/grammar/testData/psi/EOLsInComments.antlrtree.txt index 30e068af5..ba6d40546 100644 --- a/grammar/testData/psi/EOLsInComments.antlrtree.txt +++ b/grammar/testData/psi/EOLsInComments.antlrtree.txt @@ -346,6 +346,4 @@ File: EOLsInComments.kt - c004dd03ec77ebf5886458417f3ee9de semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/EOLsOnRollback.antlrtree.txt b/grammar/testData/psi/EOLsOnRollback.antlrtree.txt index 5cf12a196..bd05d229f 100644 --- a/grammar/testData/psi/EOLsOnRollback.antlrtree.txt +++ b/grammar/testData/psi/EOLsOnRollback.antlrtree.txt @@ -143,6 +143,4 @@ File: EOLsOnRollback.kt - acb4924cf7c11b0797eef1f341809ead Identifier("f") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/EnumCommas.antlrtree.txt b/grammar/testData/psi/EnumCommas.antlrtree.txt index 6aa3de98a..e6e885dc8 100644 --- a/grammar/testData/psi/EnumCommas.antlrtree.txt +++ b/grammar/testData/psi/EnumCommas.antlrtree.txt @@ -39,6 +39,4 @@ File: EnumCommas.kt - a3e8eed76c2529e0b922eac13207ec29 NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/EnumEntrySemicolonInlineMember.antlrtree.txt b/grammar/testData/psi/EnumEntrySemicolonInlineMember.antlrtree.txt index c714be51f..83d4e990e 100644 --- a/grammar/testData/psi/EnumEntrySemicolonInlineMember.antlrtree.txt +++ b/grammar/testData/psi/EnumEntrySemicolonInlineMember.antlrtree.txt @@ -43,6 +43,4 @@ File: EnumEntrySemicolonInlineMember.kt - fb99657e4ae03dbad5ae2b39e12fc525 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/EnumEntrySemicolonMember.antlrtree.txt b/grammar/testData/psi/EnumEntrySemicolonMember.antlrtree.txt index 932a8416d..21cb948b4 100644 --- a/grammar/testData/psi/EnumEntrySemicolonMember.antlrtree.txt +++ b/grammar/testData/psi/EnumEntrySemicolonMember.antlrtree.txt @@ -39,6 +39,4 @@ File: EnumEntrySemicolonMember.kt - 9c8417a8257119a21d55f9729d31f0c5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/EnumIn.antlrtree.txt b/grammar/testData/psi/EnumIn.antlrtree.txt index 8bcf1e5b1..0ca589a83 100644 --- a/grammar/testData/psi/EnumIn.antlrtree.txt +++ b/grammar/testData/psi/EnumIn.antlrtree.txt @@ -20,6 +20,4 @@ File: EnumIn.kt - 2042bb5afaf70b46579f0d9104713b3c Identifier("`in`") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/EnumInlinePublic.antlrtree.txt b/grammar/testData/psi/EnumInlinePublic.antlrtree.txt index a7f58e4ae..0d43a8746 100644 --- a/grammar/testData/psi/EnumInlinePublic.antlrtree.txt +++ b/grammar/testData/psi/EnumInlinePublic.antlrtree.txt @@ -46,6 +46,4 @@ File: EnumInlinePublic.kt - 3c6445fb6987f0fbd10e45b93d0e7a25 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/EnumShortCommas.antlrtree.txt b/grammar/testData/psi/EnumShortCommas.antlrtree.txt index 97750ce64..d9e0cd7bf 100644 --- a/grammar/testData/psi/EnumShortCommas.antlrtree.txt +++ b/grammar/testData/psi/EnumShortCommas.antlrtree.txt @@ -115,6 +115,4 @@ File: EnumShortCommas.kt - c98e99567229ead9608bda6755c2e0a4 NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/EnumShortWithOverload.antlrtree.txt b/grammar/testData/psi/EnumShortWithOverload.antlrtree.txt index 82a49dcd7..249ffeea3 100644 --- a/grammar/testData/psi/EnumShortWithOverload.antlrtree.txt +++ b/grammar/testData/psi/EnumShortWithOverload.antlrtree.txt @@ -343,6 +343,4 @@ File: EnumShortWithOverload.kt - d0e16f7324dfcd5511a37ce167856dae semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/Enums.antlrtree.txt b/grammar/testData/psi/Enums.antlrtree.txt index b24268532..75d624811 100644 --- a/grammar/testData/psi/Enums.antlrtree.txt +++ b/grammar/testData/psi/Enums.antlrtree.txt @@ -113,6 +113,4 @@ File: Enums.kt - d58f528ef9f051ae6343fe23be3da930 NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/FileStart_ERR.antlrtree.txt b/grammar/testData/psi/FileStart_ERR.antlrtree.txt index 6c9c55bde..37e310dfa 100644 --- a/grammar/testData/psi/FileStart_ERR.antlrtree.txt +++ b/grammar/testData/psi/FileStart_ERR.antlrtree.txt @@ -16,6 +16,4 @@ File: FileStart_ERR.kt - 6231f2866c9d39148094a671c779b238 identifier simpleIdentifier Identifier("foo") - semi - EOF("") EOF("") diff --git a/grammar/testData/psi/FloatingPointLiteral.antlrtree.txt b/grammar/testData/psi/FloatingPointLiteral.antlrtree.txt index a9f1aca58..e420114c6 100644 --- a/grammar/testData/psi/FloatingPointLiteral.antlrtree.txt +++ b/grammar/testData/psi/FloatingPointLiteral.antlrtree.txt @@ -582,6 +582,4 @@ File: FloatingPointLiteral.kt - 4eced77d7d34a84a9cfbe34a49624f7a literalConstant RealLiteral("6.022___137e+2_3f") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/FunctionExpressions_ERR.antlrtree.txt b/grammar/testData/psi/FunctionExpressions_ERR.antlrtree.txt index 8680392e0..92d023f09 100644 --- a/grammar/testData/psi/FunctionExpressions_ERR.antlrtree.txt +++ b/grammar/testData/psi/FunctionExpressions_ERR.antlrtree.txt @@ -805,6 +805,4 @@ File: FunctionExpressions_ERR.kt - 0f6548383bf8b7fddf87a701658cf38b RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/FunctionNoParameterList.antlrtree.txt b/grammar/testData/psi/FunctionNoParameterList.antlrtree.txt index 61d5a585b..e0de150ec 100644 --- a/grammar/testData/psi/FunctionNoParameterList.antlrtree.txt +++ b/grammar/testData/psi/FunctionNoParameterList.antlrtree.txt @@ -47,6 +47,4 @@ File: FunctionNoParameterList.kt - 59a503f7cbb5af766f18ec822eea4d70 LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/FunctionTypes.antlrtree.txt b/grammar/testData/psi/FunctionTypes.antlrtree.txt index 69e89a078..a08d9e53c 100644 --- a/grammar/testData/psi/FunctionTypes.antlrtree.txt +++ b/grammar/testData/psi/FunctionTypes.antlrtree.txt @@ -1,4 +1,4 @@ -File: FunctionTypes.kt - be5728975948633a21201b1a80726923 +File: FunctionTypes.kt - d06127084ef6ab62c2408c5feb12da29 (WITH_ERRORS) packageHeader importList topLevelObject @@ -239,6 +239,114 @@ File: FunctionTypes.kt - be5728975948633a21201b1a80726923 semis NL("\n") NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("f") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("T") + COMMA(",") + Identifier("X") + RPAREN(")") + LPAREN("(") + Identifier("a") + COLON(":") + topLevelObject + declaration + topLevelObject + declaration + AT_PRE_WS(" @") + LSQUARE("[") + Identifier("a") + RSQUARE("]") + Identifier("a") + RPAREN(")") + ARROW("->") + Identifier("b") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("f") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("T") + COMMA(",") + Identifier("X") + RPAREN(")") + LPAREN("(") + Identifier("a") + COLON(":") + Identifier("a") + RPAREN(")") + ARROW("->") + Identifier("b") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("f") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("T") + COMMA(",") + Identifier("X") + RPAREN(")") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("b") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("f") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("T") + COMMA(",") + Identifier("X") + RPAREN(")") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + NL("\n") + NL("\n") topLevelObject declaration typeAlias @@ -566,6 +674,111 @@ File: FunctionTypes.kt - be5728975948633a21201b1a80726923 semis NL("\n") NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("f") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("T") + RPAREN(")") + Identifier("T") + DOT(".") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("f") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("T") + DOT(".") + Identifier("T") + COMMA(",") + Identifier("T") + DOT(".") + Identifier("T") + RPAREN(")") + Identifier("T") + DOT(".") + Identifier("T") + DOT(".") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("f") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("T") + LANGLE("<") + Identifier("A") + COMMA(",") + Identifier("B") + RANGLE(">") + COMMA(",") + Identifier("T") + LANGLE("<") + Identifier("A") + COMMA(",") + Identifier("B") + RANGLE(">") + DOT(".") + Identifier("T") + LANGLE("<") + Identifier("x") + RANGLE(">") + RPAREN(")") + Identifier("T") + LANGLE("<") + Identifier("A") + COMMA(",") + Identifier("B") + RANGLE(">") + DOT(".") + Identifier("T") + LANGLE("<") + Identifier("x") + RANGLE(">") + DOT(".") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + NL("\n") + NL("\n") topLevelObject declaration typeAlias @@ -586,26 +799,21 @@ File: FunctionTypes.kt - be5728975948633a21201b1a80726923 simpleIdentifier Identifier("a") RSQUARE("]") - functionType - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - DOT(".") - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Unit") - semis - NL("\n") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("T") + RPAREN(")") + Identifier("T") + DOT(".") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + NL("\n") topLevelObject declaration typeAlias @@ -626,30 +834,29 @@ File: FunctionTypes.kt - be5728975948633a21201b1a80726923 simpleIdentifier Identifier("a") RSQUARE("]") - functionType - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - DOT(".") - simpleUserType - simpleIdentifier - Identifier("T") - DOT(".") - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Unit") - semis - NL("\n") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("T") + DOT(".") + Identifier("T") + COMMA(",") + Identifier("T") + DOT(".") + Identifier("T") + RPAREN(")") + Identifier("T") + DOT(".") + Identifier("T") + DOT(".") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + NL("\n") topLevelObject declaration typeAlias @@ -670,59 +877,49 @@ File: FunctionTypes.kt - be5728975948633a21201b1a80726923 simpleIdentifier Identifier("a") RSQUARE("]") - functionType - receiverType - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("T") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("A") - COMMA(",") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("B") - RANGLE(">") - DOT(".") - simpleUserType - simpleIdentifier - Identifier("T") - typeArguments - LANGLE("<") - typeProjection - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("x") - RANGLE(">") - DOT(".") - functionTypeParameters - LPAREN("(") - RPAREN(")") - ARROW("->") - type - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("Unit") - semis - NL("\n") - NL("\n") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("context") + LPAREN("(") + Identifier("T") + LANGLE("<") + Identifier("A") + COMMA(",") + Identifier("B") + RANGLE(">") + COMMA(",") + Identifier("T") + LANGLE("<") + Identifier("A") + COMMA(",") + Identifier("B") + RANGLE(">") + DOT(".") + Identifier("T") + LANGLE("<") + Identifier("x") + RANGLE(">") + RPAREN(")") + Identifier("T") + LANGLE("<") + Identifier("A") + COMMA(",") + Identifier("B") + RANGLE(">") + DOT(".") + Identifier("T") + LANGLE("<") + Identifier("x") + RANGLE(">") + DOT(".") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + NL("\n") + NL("\n") topLevelObject declaration typeAlias diff --git a/grammar/testData/psi/FunctionTypes.diff b/grammar/testData/psi/FunctionTypes.diff new file mode 100644 index 000000000..1265ce721 --- /dev/null +++ b/grammar/testData/psi/FunctionTypes.diff @@ -0,0 +1,2 @@ +Needs labels on arbitrary expressions to parse correctly +Needs support for context receivers \ No newline at end of file diff --git a/grammar/testData/psi/Functions.antlrtree.txt b/grammar/testData/psi/Functions.antlrtree.txt index 3d58480e3..9ab8c104a 100644 --- a/grammar/testData/psi/Functions.antlrtree.txt +++ b/grammar/testData/psi/Functions.antlrtree.txt @@ -667,6 +667,4 @@ File: Functions.kt - 84c32eb6b6df540c1f28c964fc57e3af primaryExpression literalConstant IntegerLiteral("5") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/FunctionsWithoutName.antlrtree.txt b/grammar/testData/psi/FunctionsWithoutName.antlrtree.txt index 091acb016..e7aa09ced 100644 --- a/grammar/testData/psi/FunctionsWithoutName.antlrtree.txt +++ b/grammar/testData/psi/FunctionsWithoutName.antlrtree.txt @@ -384,6 +384,4 @@ File: FunctionsWithoutName.kt - 32114c2fd9766cbb860df847f7fb6f15 (WITH_ERRORS) COLON(":") Identifier("bar") QUEST_NO_WS("?") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/IfWithPropery.antlrtree.txt b/grammar/testData/psi/IfWithPropery.antlrtree.txt index 886cdf00c..a9c190201 100644 --- a/grammar/testData/psi/IfWithPropery.antlrtree.txt +++ b/grammar/testData/psi/IfWithPropery.antlrtree.txt @@ -253,6 +253,4 @@ File: IfWithPropery.kt - 0dcb16ed0299eb6f8fea2b909a32d2b4 NullLiteral("null") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/ImportSoftKW.antlrtree.txt b/grammar/testData/psi/ImportSoftKW.antlrtree.txt index a8cd955ac..0b057aa6a 100644 --- a/grammar/testData/psi/ImportSoftKW.antlrtree.txt +++ b/grammar/testData/psi/ImportSoftKW.antlrtree.txt @@ -19,6 +19,4 @@ File: ImportSoftKW.kt - 31470cf3755f216512e9bcfe6b1e784d AS("as") simpleIdentifier IMPORT("import") - semi - EOF("") EOF("") diff --git a/grammar/testData/psi/Imports.antlrtree.txt b/grammar/testData/psi/Imports.antlrtree.txt index 015c3f7b4..8302a3a56 100644 --- a/grammar/testData/psi/Imports.antlrtree.txt +++ b/grammar/testData/psi/Imports.antlrtree.txt @@ -72,6 +72,4 @@ File: Imports.kt - 6b3ba471a2db853610b11e200ca0229b Identifier("foo") DOT(".") MULT("*") - semi - EOF("") EOF("") diff --git a/grammar/testData/psi/IntegerLiteral.antlrtree.txt b/grammar/testData/psi/IntegerLiteral.antlrtree.txt index 872350064..7011a870d 100644 --- a/grammar/testData/psi/IntegerLiteral.antlrtree.txt +++ b/grammar/testData/psi/IntegerLiteral.antlrtree.txt @@ -631,6 +631,4 @@ File: IntegerLiteral.kt - 0e743ae827c1c405c132e43677cd36b3 literalConstant IntegerLiteral("0") IntegerLiteral("1") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/InterfaceWithEnumKeyword.antlrtree.txt b/grammar/testData/psi/InterfaceWithEnumKeyword.antlrtree.txt index 692f9f2be..7266890e2 100644 --- a/grammar/testData/psi/InterfaceWithEnumKeyword.antlrtree.txt +++ b/grammar/testData/psi/InterfaceWithEnumKeyword.antlrtree.txt @@ -67,6 +67,4 @@ File: InterfaceWithEnumKeyword.kt - f81e55275cdcdf42023e11a7d1843a37 Identifier("D") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/LineCommentAfterFileAnnotations.antlrtree.txt b/grammar/testData/psi/LineCommentAfterFileAnnotations.antlrtree.txt index 166432fe5..6b92bf49f 100644 --- a/grammar/testData/psi/LineCommentAfterFileAnnotations.antlrtree.txt +++ b/grammar/testData/psi/LineCommentAfterFileAnnotations.antlrtree.txt @@ -24,6 +24,4 @@ File: LineCommentAfterFileAnnotations.kt - 128ce70d52245f9218165e80c525bb52 LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/LineCommentForFirstDeclaration.antlrtree.txt b/grammar/testData/psi/LineCommentForFirstDeclaration.antlrtree.txt index 765a5efac..75221fc2a 100644 --- a/grammar/testData/psi/LineCommentForFirstDeclaration.antlrtree.txt +++ b/grammar/testData/psi/LineCommentForFirstDeclaration.antlrtree.txt @@ -16,6 +16,4 @@ File: LineCommentForFirstDeclaration.kt - 39ba7a7dbc5d4f1b8c479f97f33cba64 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/LongPackageName.antlrtree.txt b/grammar/testData/psi/LongPackageName.antlrtree.txt index c7b3fee2b..c1b4481e9 100644 --- a/grammar/testData/psi/LongPackageName.antlrtree.txt +++ b/grammar/testData/psi/LongPackageName.antlrtree.txt @@ -13,7 +13,5 @@ File: LongPackageName.kt - b9be5c532e9b8df9ca122f0b43780c55 DOT(".") simpleIdentifier Identifier("buzz") - semi - EOF("") importList EOF("") diff --git a/grammar/testData/psi/NewLinesValidOperations.antlrtree.txt b/grammar/testData/psi/NewLinesValidOperations.antlrtree.txt index fa1946bb8..e3b43dde4 100644 --- a/grammar/testData/psi/NewLinesValidOperations.antlrtree.txt +++ b/grammar/testData/psi/NewLinesValidOperations.antlrtree.txt @@ -291,6 +291,4 @@ File: NewLinesValidOperations.kt - 7ec8981db68289f8ef412d7ae18cacbf semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/NotIsAndNotIn.antlrtree.txt b/grammar/testData/psi/NotIsAndNotIn.antlrtree.txt index 2c66784d0..73e6a044a 100644 --- a/grammar/testData/psi/NotIsAndNotIn.antlrtree.txt +++ b/grammar/testData/psi/NotIsAndNotIn.antlrtree.txt @@ -177,6 +177,4 @@ File: NotIsAndNotIn.kt - 2ac395e3494b40a9f5f0f7c04b256da1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/ObjectLiteralAsStatement.antlrtree.txt b/grammar/testData/psi/ObjectLiteralAsStatement.antlrtree.txt index 18bccb8c7..3cc3d477f 100644 --- a/grammar/testData/psi/ObjectLiteralAsStatement.antlrtree.txt +++ b/grammar/testData/psi/ObjectLiteralAsStatement.antlrtree.txt @@ -113,6 +113,4 @@ File: ObjectLiteralAsStatement.kt - 811f056866c950a6057e2a8da6239394 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/ParameterNameMising.antlrtree.txt b/grammar/testData/psi/ParameterNameMising.antlrtree.txt index 10600050a..c7f816b70 100644 --- a/grammar/testData/psi/ParameterNameMising.antlrtree.txt +++ b/grammar/testData/psi/ParameterNameMising.antlrtree.txt @@ -237,6 +237,4 @@ File: ParameterNameMising.kt - befa52b060106c317980502f35bd4875 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/ParameterType.antlrtree.txt b/grammar/testData/psi/ParameterType.antlrtree.txt index 27ee70ab8..fa357ec83 100644 --- a/grammar/testData/psi/ParameterType.antlrtree.txt +++ b/grammar/testData/psi/ParameterType.antlrtree.txt @@ -461,6 +461,4 @@ File: ParameterType.kt - 5c7bf207442409d88ed873f10e7e59f7 (WITH_ERRORS) simpleIdentifier Identifier("Int") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/ParameterType_ERR.antlrtree.txt b/grammar/testData/psi/ParameterType_ERR.antlrtree.txt index b2261cb31..22e560243 100644 --- a/grammar/testData/psi/ParameterType_ERR.antlrtree.txt +++ b/grammar/testData/psi/ParameterType_ERR.antlrtree.txt @@ -208,6 +208,4 @@ File: ParameterType_ERR.kt - cc941e94b04d2aac693f58a581a46080 Identifier("a") COLON(":") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/Properties.antlrtree.txt b/grammar/testData/psi/Properties.antlrtree.txt index 1dd0d6461..7af0c4a91 100644 --- a/grammar/testData/psi/Properties.antlrtree.txt +++ b/grammar/testData/psi/Properties.antlrtree.txt @@ -735,6 +735,4 @@ File: Properties.kt - e9021b6e89d148e4efad7f854dacf9bd simpleUserType simpleIdentifier Identifier("Int") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/Properties_ERR.antlrtree.txt b/grammar/testData/psi/Properties_ERR.antlrtree.txt index 737404409..285ff3236 100644 --- a/grammar/testData/psi/Properties_ERR.antlrtree.txt +++ b/grammar/testData/psi/Properties_ERR.antlrtree.txt @@ -170,6 +170,4 @@ File: Properties_ERR.kt - 77983d24dea76e80aec259d3c2debc72 LPAREN("(") RPAREN(")") SUB("-") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/PropertyInvokes.antlrtree.txt b/grammar/testData/psi/PropertyInvokes.antlrtree.txt index 809f8b991..fe1f5963b 100644 --- a/grammar/testData/psi/PropertyInvokes.antlrtree.txt +++ b/grammar/testData/psi/PropertyInvokes.antlrtree.txt @@ -151,6 +151,4 @@ File: PropertyInvokes.kt - 9816bc19ff0c5487d2e985e905014c68 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/SimpleClassMembers_ERR.antlrtree.txt b/grammar/testData/psi/SimpleClassMembers_ERR.antlrtree.txt index b88c06bf9..c618e4c5f 100644 --- a/grammar/testData/psi/SimpleClassMembers_ERR.antlrtree.txt +++ b/grammar/testData/psi/SimpleClassMembers_ERR.antlrtree.txt @@ -82,6 +82,4 @@ File: SimpleClassMembers_ERR.kt - 28b6081646f877ed469eeffa13821e58 NL("\n") RCURL("}") type - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/SimpleIntersections.antlrtree.txt b/grammar/testData/psi/SimpleIntersections.antlrtree.txt new file mode 100644 index 000000000..55c4355e0 --- /dev/null +++ b/grammar/testData/psi/SimpleIntersections.antlrtree.txt @@ -0,0 +1,459 @@ +File: SimpleIntersections.kt - ccf7b16201217dba47857938bea1bc8b + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo1") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo2") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo3") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + typeProjectionModifiers + typeProjectionModifier + varianceModifier + OUT("out") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RANGLE(">") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo4") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + parenthesizedType + LPAREN("(") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo5") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + nullableType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + quest + QUEST_WS("? ") + AMP("&") + Identifier("Any") + QUEST_NO_WS("?") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo6") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + AMP("&") + Identifier("Any") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo7") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + parenthesizedUserType + LPAREN("(") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + AMP("&") + Identifier("Any") + RPAREN(")") + RPAREN(")") + LCURL("{") + RCURL("}") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + Identifier("T") + AMP("&") + Identifier("Any") + DOT(".") + Identifier("foo8") + LPAREN("(") + RPAREN(")") + LCURL("{") + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + receiverType + parenthesizedType + LPAREN("(") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + DOT(".") + simpleIdentifier + Identifier("foo9") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo10") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + DOT(".") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo11") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + functionType + receiverType + parenthesizedType + LPAREN("(") + type + definitelyNonNullableType + userType + simpleUserType + simpleIdentifier + Identifier("T") + AMP("&") + userType + simpleUserType + simpleIdentifier + Identifier("Any") + RPAREN(")") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/psi/TraitConstructor.antlrtree.txt b/grammar/testData/psi/TraitConstructor.antlrtree.txt index d97f111f4..5565210e4 100644 --- a/grammar/testData/psi/TraitConstructor.antlrtree.txt +++ b/grammar/testData/psi/TraitConstructor.antlrtree.txt @@ -57,6 +57,4 @@ File: TraitConstructor.kt - 7f2d3b19c8aa53955c3d10d0527a3036 classParameters LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/TypeConstraints.antlrtree.txt b/grammar/testData/psi/TypeConstraints.antlrtree.txt index e155ea5f6..c985ddff7 100644 --- a/grammar/testData/psi/TypeConstraints.antlrtree.txt +++ b/grammar/testData/psi/TypeConstraints.antlrtree.txt @@ -31,6 +31,4 @@ File: TypeConstraints.kt - f15a4f346a40b3526b3a3cf648d15c0c NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/TypeModifiersParenthesized.antlrtree.txt b/grammar/testData/psi/TypeModifiersParenthesized.antlrtree.txt index 0b9d6f3a3..219eba312 100644 --- a/grammar/testData/psi/TypeModifiersParenthesized.antlrtree.txt +++ b/grammar/testData/psi/TypeModifiersParenthesized.antlrtree.txt @@ -596,33 +596,38 @@ File: TypeModifiersParenthesized.kt - f6c29a8e4a803dc0ddce3edd6619e8cb Identifier("lambdaParameter") COLON(":") type - parenthesizedType - LPAREN("(") + functionType + functionTypeParameters + LPAREN("(") + type + parenthesizedType + LPAREN("(") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + RPAREN(")") + RPAREN(")") + ARROW("->") type - parenthesizedType - LPAREN("(") - type - typeModifiers - typeModifier - annotation - singleAnnotation - AT_NO_WS("@") - unescapedAnnotation - userType - simpleUserType - simpleIdentifier - Identifier("A") - typeReference - userType - simpleUserType - simpleIdentifier - Identifier("C") - RPAREN(")") - RPAREN(")") - ARROW("->") - Identifier("C") - semis - NL("\n") + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("C") + NL("\n") topLevelObject declaration propertyDeclaration @@ -1266,6 +1271,4 @@ File: TypeModifiersParenthesized.kt - f6c29a8e4a803dc0ddce3edd6619e8cb quest QUEST_NO_WS("?") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/TypeModifiers_ERR.antlrtree.txt b/grammar/testData/psi/TypeModifiers_ERR.antlrtree.txt index bdcdeb611..06df3973d 100644 --- a/grammar/testData/psi/TypeModifiers_ERR.antlrtree.txt +++ b/grammar/testData/psi/TypeModifiers_ERR.antlrtree.txt @@ -97,23 +97,26 @@ File: TypeModifiers_ERR.kt - 189c1964ca39ef143f822e98cfa26c7b typeModifiers typeModifier SUSPEND("suspend") - parenthesizedType - LPAREN("(") + functionType + functionTypeParameters + LPAREN("(") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("a") + RPAREN(")") + ARROW("->") type typeReference userType simpleUserType simpleIdentifier - Identifier("a") - RPAREN(")") - ARROW("->") + SUSPEND("suspend") topLevelObject declaration propertyDeclaration - modifiers - modifier - functionModifier - SUSPEND("suspend") VAL("val") variableDeclaration simpleIdentifier @@ -282,6 +285,4 @@ File: TypeModifiers_ERR.kt - 189c1964ca39ef143f822e98cfa26c7b declaration SUSPEND("suspend") IN("in") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/TypeParametersBeforeName.antlrtree.txt b/grammar/testData/psi/TypeParametersBeforeName.antlrtree.txt index bf8b49df4..8128af062 100644 --- a/grammar/testData/psi/TypeParametersBeforeName.antlrtree.txt +++ b/grammar/testData/psi/TypeParametersBeforeName.antlrtree.txt @@ -160,6 +160,4 @@ File: TypeParametersBeforeName.kt - 518f879af5137320241077637db94ecc variableDeclaration simpleIdentifier Identifier("foo") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/TypealiasIsKeyword.antlrtree.txt b/grammar/testData/psi/TypealiasIsKeyword.antlrtree.txt index 5be886827..e98476b73 100644 --- a/grammar/testData/psi/TypealiasIsKeyword.antlrtree.txt +++ b/grammar/testData/psi/TypealiasIsKeyword.antlrtree.txt @@ -11,6 +11,4 @@ File: TypealiasIsKeyword.kt - 7ff0ffb69ba98a15a5c0852efa17c6ea TYPE_ALIAS("typealias") ASSIGNMENT("=") IntegerLiteral("0") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/UnderscoredTypeArgumentsOfCall.antlrtree.txt b/grammar/testData/psi/UnderscoredTypeArgumentsOfCall.antlrtree.txt new file mode 100644 index 000000000..465cff879 --- /dev/null +++ b/grammar/testData/psi/UnderscoredTypeArgumentsOfCall.antlrtree.txt @@ -0,0 +1,236 @@ +File: UnderscoredTypeArgumentsOfCall.kt - 6d95522fc3fb77630c6a5c91cb22b7f2 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/psi/UnderscoredTypeArgumentsOfCallIllegal.antlrtree.txt b/grammar/testData/psi/UnderscoredTypeArgumentsOfCallIllegal.antlrtree.txt new file mode 100644 index 000000000..593a8527c --- /dev/null +++ b/grammar/testData/psi/UnderscoredTypeArgumentsOfCallIllegal.antlrtree.txt @@ -0,0 +1,224 @@ +File: UnderscoredTypeArgumentsOfCallIllegal.kt - dfc04ebd504c5ed5346d11be6a845e58 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("__") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("__") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("__") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_____") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/psi/UnderscoredTypeArgumentsOfType.antlrtree.txt b/grammar/testData/psi/UnderscoredTypeArgumentsOfType.antlrtree.txt new file mode 100644 index 000000000..84abb37a3 --- /dev/null +++ b/grammar/testData/psi/UnderscoredTypeArgumentsOfType.antlrtree.txt @@ -0,0 +1,514 @@ +File: UnderscoredTypeArgumentsOfType.kt - 06208b9cda128b07b39a045cf8a900ae + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("foo") + postfixUnarySuffix + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RANGLE(">") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Float") + RANGLE(">") + postfixUnarySuffix + callSuffix + valueArguments + LPAREN("(") + RPAREN(")") + NL("\n") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + semis + NL("\n") + statement + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("A") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("_") + COMMA(",") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/psi/UnderscoredTypeParameters.antlrtree.txt b/grammar/testData/psi/UnderscoredTypeParameters.antlrtree.txt new file mode 100644 index 000000000..7b29e667e --- /dev/null +++ b/grammar/testData/psi/UnderscoredTypeParameters.antlrtree.txt @@ -0,0 +1,130 @@ +File: UnderscoredTypeParameters.kt - 6054e43654f27274aaacfe6ad09308c7 + packageHeader + importList + topLevelObject + declaration + classDeclaration + CLASS("class") + simpleIdentifier + Identifier("A") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("_") + RANGLE(">") + classBody + LCURL("{") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Foo") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("_") + RANGLE(">") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Foo") + typeArguments + LANGLE("<") + typeProjection + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("T") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("_") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("T") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + typeParameters + LANGLE("<") + typeParameter + simpleIdentifier + Identifier("K") + COMMA(",") + typeParameter + simpleIdentifier + Identifier("_") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("K") + RANGLE(">") + simpleIdentifier + Identifier("foo") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/psi/UnsignedLiteral.antlrtree.txt b/grammar/testData/psi/UnsignedLiteral.antlrtree.txt index 3c32dc1c5..b6dcf01f3 100644 --- a/grammar/testData/psi/UnsignedLiteral.antlrtree.txt +++ b/grammar/testData/psi/UnsignedLiteral.antlrtree.txt @@ -81,6 +81,4 @@ File: UnsignedLiteral.kt - 9b2367d011f59a3c119dea816845cf95 COMMA(",") UnsignedLiteral("3Ul") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/When.antlrtree.txt b/grammar/testData/psi/When.antlrtree.txt index 87637b93e..6ddf4e340 100644 --- a/grammar/testData/psi/When.antlrtree.txt +++ b/grammar/testData/psi/When.antlrtree.txt @@ -1775,6 +1775,4 @@ File: When.kt - abda94e0c8e7fa24d44f7c44ce763850 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/WhenWithSubjectVariable_SoftModifierName.antlrtree.txt b/grammar/testData/psi/WhenWithSubjectVariable_SoftModifierName.antlrtree.txt index 681c8d7ab..99d73be28 100644 --- a/grammar/testData/psi/WhenWithSubjectVariable_SoftModifierName.antlrtree.txt +++ b/grammar/testData/psi/WhenWithSubjectVariable_SoftModifierName.antlrtree.txt @@ -1204,6 +1204,4 @@ File: WhenWithSubjectVariable_SoftModifierName.kt - 55c897c919079c4e7c8e2c2b6ed5 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/annotationsOnNullableTypes.antlrtree.txt b/grammar/testData/psi/annotation/annotationsOnNullableTypes.antlrtree.txt index 0c02fd54b..70ccc0738 100644 --- a/grammar/testData/psi/annotation/annotationsOnNullableTypes.antlrtree.txt +++ b/grammar/testData/psi/annotation/annotationsOnNullableTypes.antlrtree.txt @@ -687,6 +687,4 @@ File: annotationsOnNullableTypes.kt - 0b90f1aa036d92dc6739778a72466253 Identifier("Int") quest QUEST_NO_WS("?") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/annotationsOnParenthesizedTypes.antlrtree.txt b/grammar/testData/psi/annotation/annotationsOnParenthesizedTypes.antlrtree.txt index bc86ae75f..347cbaf72 100644 --- a/grammar/testData/psi/annotation/annotationsOnParenthesizedTypes.antlrtree.txt +++ b/grammar/testData/psi/annotation/annotationsOnParenthesizedTypes.antlrtree.txt @@ -496,6 +496,4 @@ File: annotationsOnParenthesizedTypes.kt - eb8ff72a10a482f49336235739d58d04 simpleUserType simpleIdentifier Identifier("C") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/at/expressionJustAtTyped.antlrtree.txt b/grammar/testData/psi/annotation/at/expressionJustAtTyped.antlrtree.txt index cb1ce2815..89365f9e8 100644 --- a/grammar/testData/psi/annotation/at/expressionJustAtTyped.antlrtree.txt +++ b/grammar/testData/psi/annotation/at/expressionJustAtTyped.antlrtree.txt @@ -116,6 +116,4 @@ File: expressionJustAtTyped.kt - 14efbc3f8eeaf84acf930808837e6a67 NL("\n") RCURL("}") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/at/recoveryWhitespaceBeforeColon.antlrtree.txt b/grammar/testData/psi/annotation/at/recoveryWhitespaceBeforeColon.antlrtree.txt index 7a2dcb95b..047c0614b 100644 --- a/grammar/testData/psi/annotation/at/recoveryWhitespaceBeforeColon.antlrtree.txt +++ b/grammar/testData/psi/annotation/at/recoveryWhitespaceBeforeColon.antlrtree.txt @@ -95,6 +95,4 @@ File: recoveryWhitespaceBeforeColon.kt - 3a749519789f013370a8e851fcd3bde0 literalConstant IntegerLiteral("2") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/lambdaRecovery.antlrtree.txt b/grammar/testData/psi/annotation/lambdaRecovery.antlrtree.txt index b88cece2c..b4d0d52c4 100644 --- a/grammar/testData/psi/annotation/lambdaRecovery.antlrtree.txt +++ b/grammar/testData/psi/annotation/lambdaRecovery.antlrtree.txt @@ -193,6 +193,4 @@ File: lambdaRecovery.kt - 90f1659fe0808845398a543220abfbd5 functionLiteral lambdaLiteral LCURL("{") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/noParameterYet.antlrtree.txt b/grammar/testData/psi/annotation/noParameterYet.antlrtree.txt index 1d92e5044..26b0677a7 100644 --- a/grammar/testData/psi/annotation/noParameterYet.antlrtree.txt +++ b/grammar/testData/psi/annotation/noParameterYet.antlrtree.txt @@ -22,6 +22,4 @@ File: noParameterYet.kt - b607e6d7796cc6538b603b4f63217d8a parameter simpleIdentifier RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/options/local.antlrtree.txt b/grammar/testData/psi/annotation/options/local.antlrtree.txt index ff56b6e72..085b7978b 100644 --- a/grammar/testData/psi/annotation/options/local.antlrtree.txt +++ b/grammar/testData/psi/annotation/options/local.antlrtree.txt @@ -114,6 +114,4 @@ File: local.kt - 466db98c0b44612541092a6a202bc21c semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/targeted/onField/delegate.antlrtree.txt b/grammar/testData/psi/annotation/targeted/onField/delegate.antlrtree.txt index b9261b720..d9ccace1a 100644 --- a/grammar/testData/psi/annotation/targeted/onField/delegate.antlrtree.txt +++ b/grammar/testData/psi/annotation/targeted/onField/delegate.antlrtree.txt @@ -127,6 +127,4 @@ File: delegate.kt - 08038863446c61e15d649e7baef567bb RCURL("}") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/targeted/onField/fqName.antlrtree.txt b/grammar/testData/psi/annotation/targeted/onField/fqName.antlrtree.txt index f53566bc5..c6bc6bf57 100644 --- a/grammar/testData/psi/annotation/targeted/onField/fqName.antlrtree.txt +++ b/grammar/testData/psi/annotation/targeted/onField/fqName.antlrtree.txt @@ -62,6 +62,4 @@ File: fqName.kt - 69cebfdfc8d8c5230e1d55eaf58c80cd NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/targeted/onField/inWrongPlace.antlrtree.txt b/grammar/testData/psi/annotation/targeted/onField/inWrongPlace.antlrtree.txt index fa341b615..886db5c09 100644 --- a/grammar/testData/psi/annotation/targeted/onField/inWrongPlace.antlrtree.txt +++ b/grammar/testData/psi/annotation/targeted/onField/inWrongPlace.antlrtree.txt @@ -88,6 +88,4 @@ File: inWrongPlace.kt - 8a35aaf9f7d84dd2219118a7eb1fd04b (WITH_ERRORS) functionValueParameters LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/targeted/onField/manyInOneAnnotationBlock.antlrtree.txt b/grammar/testData/psi/annotation/targeted/onField/manyInOneAnnotationBlock.antlrtree.txt index 02dea42e4..95c2e8239 100644 --- a/grammar/testData/psi/annotation/targeted/onField/manyInOneAnnotationBlock.antlrtree.txt +++ b/grammar/testData/psi/annotation/targeted/onField/manyInOneAnnotationBlock.antlrtree.txt @@ -70,6 +70,4 @@ File: manyInOneAnnotationBlock.kt - 7e2ad05a5c973fa1c2e76c96a4eff978 NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/targeted/onField/simpleFieldAnnotation.antlrtree.txt b/grammar/testData/psi/annotation/targeted/onField/simpleFieldAnnotation.antlrtree.txt index e95f4533b..d5718c380 100644 --- a/grammar/testData/psi/annotation/targeted/onField/simpleFieldAnnotation.antlrtree.txt +++ b/grammar/testData/psi/annotation/targeted/onField/simpleFieldAnnotation.antlrtree.txt @@ -58,6 +58,4 @@ File: simpleFieldAnnotation.kt - 4c57e534716211fd6e6681ecca6f91aa NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/targeted/onFile/fileAnnotationInWrongPlace.antlrtree.txt b/grammar/testData/psi/annotation/targeted/onFile/fileAnnotationInWrongPlace.antlrtree.txt index 700f85a8a..770eeed03 100644 --- a/grammar/testData/psi/annotation/targeted/onFile/fileAnnotationInWrongPlace.antlrtree.txt +++ b/grammar/testData/psi/annotation/targeted/onFile/fileAnnotationInWrongPlace.antlrtree.txt @@ -108,6 +108,4 @@ File: fileAnnotationInWrongPlace.kt - 78b4510aa195ebf44de30620782c5efd INTERFACE("interface") simpleIdentifier Identifier("T") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/targeted/onGetSetSparam/inWrongPlace.antlrtree.txt b/grammar/testData/psi/annotation/targeted/onGetSetSparam/inWrongPlace.antlrtree.txt index e5edc1076..ad11056f5 100644 --- a/grammar/testData/psi/annotation/targeted/onGetSetSparam/inWrongPlace.antlrtree.txt +++ b/grammar/testData/psi/annotation/targeted/onGetSetSparam/inWrongPlace.antlrtree.txt @@ -232,6 +232,4 @@ File: inWrongPlace.kt - efccc695921ffd2bcfda2383cb6fa071 (WITH_ERRORS) functionValueParameters LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/targeted/onGetSetSparam/simple.antlrtree.txt b/grammar/testData/psi/annotation/targeted/onGetSetSparam/simple.antlrtree.txt index 01efc8d4b..8aa3a4aa7 100644 --- a/grammar/testData/psi/annotation/targeted/onGetSetSparam/simple.antlrtree.txt +++ b/grammar/testData/psi/annotation/targeted/onGetSetSparam/simple.antlrtree.txt @@ -89,6 +89,4 @@ File: simple.kt - 49f20df378a223bcb819bb01e6e86223 NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/targeted/onGetSetSparam/twoAnnotationLists.antlrtree.txt b/grammar/testData/psi/annotation/targeted/onGetSetSparam/twoAnnotationLists.antlrtree.txt index 7ac6ffb9f..c8465979b 100644 --- a/grammar/testData/psi/annotation/targeted/onGetSetSparam/twoAnnotationLists.antlrtree.txt +++ b/grammar/testData/psi/annotation/targeted/onGetSetSparam/twoAnnotationLists.antlrtree.txt @@ -148,6 +148,4 @@ File: twoAnnotationLists.kt - 255816df473d3ae18a59e2eea7309c90 NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/targeted/onParam/modifiers.antlrtree.txt b/grammar/testData/psi/annotation/targeted/onParam/modifiers.antlrtree.txt index 1928de0c4..42a2e714e 100644 --- a/grammar/testData/psi/annotation/targeted/onParam/modifiers.antlrtree.txt +++ b/grammar/testData/psi/annotation/targeted/onParam/modifiers.antlrtree.txt @@ -57,6 +57,4 @@ File: modifiers.kt - 8ed94f61bebbbf8e0df4fac7373158fa simpleIdentifier Identifier("String") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/targeted/onParam/recovery.antlrtree.txt b/grammar/testData/psi/annotation/targeted/onParam/recovery.antlrtree.txt index a80a4cde1..3d433f086 100644 --- a/grammar/testData/psi/annotation/targeted/onParam/recovery.antlrtree.txt +++ b/grammar/testData/psi/annotation/targeted/onParam/recovery.antlrtree.txt @@ -21,6 +21,4 @@ File: recovery.kt - a2c194ea46060fc3691fd763e914a007 Identifier("Ann") COLON(":") Identifier("B") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/targeted/onParam/simple.antlrtree.txt b/grammar/testData/psi/annotation/targeted/onParam/simple.antlrtree.txt index 825a67d29..59e3dd9f8 100644 --- a/grammar/testData/psi/annotation/targeted/onParam/simple.antlrtree.txt +++ b/grammar/testData/psi/annotation/targeted/onParam/simple.antlrtree.txt @@ -84,6 +84,4 @@ File: simple.kt - 0d6a27a731f054268d03009cd52a9ee0 simpleIdentifier Identifier("Int") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/annotation/targeted/onParam/targetExpected.antlrtree.txt b/grammar/testData/psi/annotation/targeted/onParam/targetExpected.antlrtree.txt index c3b467d9d..a0377b36f 100644 --- a/grammar/testData/psi/annotation/targeted/onParam/targetExpected.antlrtree.txt +++ b/grammar/testData/psi/annotation/targeted/onParam/targetExpected.antlrtree.txt @@ -259,6 +259,4 @@ File: targetExpected.kt - dd2231d02e4e746ae7726cb8b3988592 simpleIdentifier Identifier("Int") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/complicateLTGT.antlrtree.txt b/grammar/testData/psi/complicateLTGT.antlrtree.txt new file mode 100644 index 000000000..b6f4986aa --- /dev/null +++ b/grammar/testData/psi/complicateLTGT.antlrtree.txt @@ -0,0 +1,200 @@ +File: complicateLTGT.kt - e6e8e230d8a803fc75351e7410d78b52 (MUTE_PSI_ERRORS) + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + comparisonOperator + RANGLE(">") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("115") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/psi/complicateLTGTE.antlrtree.txt b/grammar/testData/psi/complicateLTGTE.antlrtree.txt new file mode 100644 index 000000000..985995138 --- /dev/null +++ b/grammar/testData/psi/complicateLTGTE.antlrtree.txt @@ -0,0 +1,200 @@ +File: complicateLTGTE.kt - 8057759a600bac11ac9ed5f8216a7a98 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("test") + functionValueParameters + LPAREN("(") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + COMMA(",") + functionValueParameter + parameter + simpleIdentifier + Identifier("y") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + RPAREN(")") + functionBody + block + LCURL("{") + NL("\n") + statements + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("x") + comparisonOperator + LANGLE("<") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + parenthesizedExpression + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + ifExpression + IF("if") + LPAREN("(") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("y") + comparisonOperator + GE(">=") + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("115") + RPAREN(")") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + ELSE("else") + controlStructureBody + statement + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("2") + RPAREN(")") + RPAREN(")") + controlStructureBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/psi/diagnosticTags_ERR.antlrtree.txt b/grammar/testData/psi/diagnosticTags_ERR.antlrtree.txt new file mode 100644 index 000000000..fb010314e --- /dev/null +++ b/grammar/testData/psi/diagnosticTags_ERR.antlrtree.txt @@ -0,0 +1,954 @@ +File: diagnosticTags_ERR.kt - 0ad09fe2ae3d940e97deaa9a4aaea330 + NL("\n") + packageHeader + importList + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Action") + ASSIGNMENT("=") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("SAM") + classBody + LCURL("{") + NL("\n") + classMemberDeclarations + classMemberDeclaration + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("run") + functionValueParameters + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test1") + ASSIGNMENT("=") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test2") + ASSIGNMENT("=") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test3") + ASSIGNMENT("=") + LANGLE("<") + EXCL_NO_WS("!") + Identifier("WRONG_MODIFIER_TARGET") + EXCL_NO_WS("!") + RANGLE(">") + topLevelObject + declaration + topLevelObject + declaration + SUSPEND("suspend") + LANGLE("<") + EXCL_NO_WS("!") + RANGLE(">") + Identifier("Function0") + LANGLE("<") + Identifier("Unit") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test4") + ASSIGNMENT("=") + LANGLE("<") + EXCL_NO_WS("!") + Identifier("WRONG_MODIFIER_TARGET") + EXCL_NO_WS("!") + RANGLE(">") + topLevelObject + declaration + topLevelObject + declaration + SUSPEND("suspend") + LANGLE("<") + EXCL_NO_WS("!") + RANGLE(">") + Identifier("Action") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test5") + ASSIGNMENT("=") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("List") + typeArguments + LANGLE("<") + typeProjection + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test6") + ASSIGNMENT("=") + LANGLE("<") + EXCL_NO_WS("!") + Identifier("WRONG_MODIFIER_TARGET") + EXCL_NO_WS("!") + RANGLE(">") + topLevelObject + declaration + topLevelObject + declaration + SUSPEND("suspend") + LANGLE("<") + EXCL_NO_WS("!") + RANGLE(">") + Identifier("List") + LANGLE("<") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test7") + ASSIGNMENT("=") + LANGLE("<") + EXCL_NO_WS("!") + Identifier("WRONG_MODIFIER_TARGET") + EXCL_NO_WS("!") + RANGLE(">") + topLevelObject + declaration + topLevelObject + declaration + SUSPEND("suspend") + LANGLE("<") + EXCL_NO_WS("!") + RANGLE(">") + Identifier("SAM") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test8") + ASSIGNMENT("=") + LANGLE("<") + EXCL_NO_WS("!") + Identifier("WRONG_MODIFIER_TARGET") + EXCL_NO_WS("!") + RANGLE(">") + topLevelObject + declaration + topLevelObject + declaration + SUSPEND("suspend") + LANGLE("<") + EXCL_NO_WS("!") + RANGLE(">") + Identifier("kotlin") + DOT(".") + Identifier("coroutines") + DOT(".") + Identifier("SuspendFunction0") + LANGLE("<") + Identifier("Unit") + RANGLE(">") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test9") + ASSIGNMENT("=") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test10") + ASSIGNMENT("=") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test11") + ASSIGNMENT("=") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + parenthesizedType + LPAREN("(") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test12") + ASSIGNMENT("=") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + type + typeModifiers + typeModifier + SUSPEND("suspend") + parenthesizedType + LPAREN("(") + type + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test13") + ASSIGNMENT("=") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test14") + ASSIGNMENT("=") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test15") + ASSIGNMENT("=") + type + nullableType + parenthesizedType + LPAREN("(") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("A") + valueArguments + LPAREN("(") + RPAREN(")") + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + quest + QUEST_NO_WS("?") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test16") + ASSIGNMENT("=") + type + nullableType + parenthesizedType + LPAREN("(") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_NO_WS("@") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + quest + QUEST_NO_WS("?") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test17") + ASSIGNMENT("=") + type + typeModifiers + typeModifier + annotation + singleAnnotation + AT_PRE_WS(" @") + unescapedAnnotation + userType + simpleUserType + simpleIdentifier + Identifier("A") + typeModifier + SUSPEND("suspend") + functionType + receiverType + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("RS") + DOT(".") + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test18") + ASSIGNMENT("=") + type + nullableType + parenthesizedType + LPAREN("(") + type + typeModifiers + typeModifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + RPAREN(")") + quest + QUEST_NO_WS("?") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test19") + ASSIGNMENT("=") + type + LPAREN("(") + topLevelObject + declaration + topLevelObject + declaration + AT_NO_WS("@") + Identifier("A") + LPAREN("(") + LANGLE("<") + EXCL_NO_WS("!") + Identifier("ANNOTATION_ARGUMENT_MUST_BE_CONST") + EXCL_NO_WS("!") + RANGLE(">") + LCURL("{") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + LANGLE("<") + EXCL_NO_WS("!") + Identifier("WRONG_MODIFIER_TARGET") + EXCL_NO_WS("!") + RANGLE(">") + topLevelObject + declaration + topLevelObject + declaration + SUSPEND("suspend") + LANGLE("<") + EXCL_NO_WS("!") + RANGLE(">") + Identifier("String") + QUEST_WS("? ") + ASSIGNMENT("=") + NullLiteral("null") + semis + SEMICOLON(";") + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RCURL("}") + LPAREN("(") + RPAREN(")") + LANGLE("<") + EXCL_NO_WS("!") + RANGLE(">") + RPAREN(")") + topLevelObject + declaration + topLevelObject + declaration + SUSPEND("suspend") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + RPAREN(")") + QUEST_NO_WS("?") + semis + NL("\n") + topLevelObject + declaration + typeAlias + TYPE_ALIAS("typealias") + simpleIdentifier + Identifier("Test20") + ASSIGNMENT("=") + type + LPAREN("(") + topLevelObject + declaration + topLevelObject + declaration + AT_NO_WS("@") + Identifier("A") + LPAREN("(") + LANGLE("<") + EXCL_NO_WS("!") + Identifier("ANNOTATION_ARGUMENT_MUST_BE_CONST") + EXCL_NO_WS("!") + RANGLE(">") + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + DOT(".") + Identifier("let") + LCURL("{") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + LANGLE("<") + EXCL_NO_WS("!") + Identifier("WRONG_MODIFIER_TARGET") + EXCL_NO_WS("!") + RANGLE(">") + topLevelObject + declaration + topLevelObject + declaration + SUSPEND("suspend") + LANGLE("<") + EXCL_NO_WS("!") + RANGLE(">") + Identifier("String") + QUEST_WS("? ") + ASSIGNMENT("=") + NullLiteral("null") + semis + SEMICOLON(";") + Identifier("it") + RCURL("}") + LANGLE("<") + EXCL_NO_WS("!") + RANGLE(">") + RPAREN(")") + topLevelObject + declaration + topLevelObject + declaration + SUSPEND("suspend") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + RPAREN(")") + QUEST_NO_WS("?") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Supertype1") + COLON(":") + delegationSpecifiers + annotatedDelegationSpecifier + delegationSpecifier + SUSPEND("suspend") + functionType + functionTypeParameters + LPAREN("(") + RPAREN(")") + ARROW("->") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Unit") + classBody + LCURL("{") + NL("\n") + NL("\n") + classMemberDeclarations + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("Supertype2") + COLON(":") + LANGLE("<") + EXCL_NO_WS("!") + Identifier("SUPERTYPE_IS_EXTENSION_FUNCTION_TYPE") + EXCL_NO_WS("!") + RANGLE(">") + topLevelObject + declaration + topLevelObject + declaration + SUSPEND("suspend") + Identifier("String") + DOT(".") + LPAREN("(") + RPAREN(")") + ARROW("->") + Identifier("Unit") + LANGLE("<") + EXCL_NO_WS("!") + RANGLE(">") + LCURL("{") + semis + NL("\n") + NL("\n") + RCURL("}") + NL("\n") + topLevelObject + declaration + classDeclaration + modifiers + annotation + singleAnnotation + AT_PRE_WS("\n@") + unescapedAnnotation + constructorInvocation + userType + simpleUserType + simpleIdentifier + Identifier("Target") + valueArguments + LPAREN("(") + valueArgument + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("AnnotationTarget") + postfixUnarySuffix + navigationSuffix + memberAccessOperator + DOT(".") + simpleIdentifier + Identifier("TYPE") + RPAREN(")") + NL("\n") + modifier + classModifier + ANNOTATION("annotation") + CLASS("class") + simpleIdentifier + Identifier("A") + primaryConstructor + classParameters + LPAREN("(") + classParameter + VAL("val") + simpleIdentifier + VALUE("value") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("String") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + stringLiteral + lineStringLiteral + QUOTE_OPEN(""") + QUOTE_CLOSE(""") + RPAREN(")") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + classDeclaration + INTERFACE("interface") + simpleIdentifier + Identifier("RS") + semis + NL("\n") + EOF("") diff --git a/grammar/testData/psi/examples/AnonymousObjects.antlrtree.txt b/grammar/testData/psi/examples/AnonymousObjects.antlrtree.txt index 7cbe32186..2fcec6727 100644 --- a/grammar/testData/psi/examples/AnonymousObjects.antlrtree.txt +++ b/grammar/testData/psi/examples/AnonymousObjects.antlrtree.txt @@ -438,6 +438,4 @@ File: AnonymousObjects.kt - cb1b79406ee5e6a84aa4a81e7929b91f NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/BitArith.antlrtree.txt b/grammar/testData/psi/examples/BitArith.antlrtree.txt index c84abcb40..62376abb8 100644 --- a/grammar/testData/psi/examples/BitArith.antlrtree.txt +++ b/grammar/testData/psi/examples/BitArith.antlrtree.txt @@ -1209,6 +1209,4 @@ File: BitArith.kt - 4cd9818eeee1b27b5aba7eaec139d8a5 NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/Builder.antlrtree.txt b/grammar/testData/psi/examples/Builder.antlrtree.txt index a9fd37d09..a9a597b51 100644 --- a/grammar/testData/psi/examples/Builder.antlrtree.txt +++ b/grammar/testData/psi/examples/Builder.antlrtree.txt @@ -863,6 +863,4 @@ File: Builder.kt - cb5dad4c33514b122601e74e346831d0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/Color.antlrtree.txt b/grammar/testData/psi/examples/Color.antlrtree.txt index 186080ac1..e8fbc5a87 100644 --- a/grammar/testData/psi/examples/Color.antlrtree.txt +++ b/grammar/testData/psi/examples/Color.antlrtree.txt @@ -255,6 +255,4 @@ File: Color.kt - 2684738f2fde2ffd23340f155d2be0ed RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/FunctionsAndTypes.antlrtree.txt b/grammar/testData/psi/examples/FunctionsAndTypes.antlrtree.txt index c098e7e13..636bb8c6f 100644 --- a/grammar/testData/psi/examples/FunctionsAndTypes.antlrtree.txt +++ b/grammar/testData/psi/examples/FunctionsAndTypes.antlrtree.txt @@ -388,6 +388,4 @@ File: FunctionsAndTypes.kt - 7be998944566dfcbaf91b8eb9d9b0e68 RCURL("}") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/IPushPop.antlrtree.txt b/grammar/testData/psi/examples/IPushPop.antlrtree.txt index 5dedbeac7..abf268402 100644 --- a/grammar/testData/psi/examples/IPushPop.antlrtree.txt +++ b/grammar/testData/psi/examples/IPushPop.antlrtree.txt @@ -77,6 +77,4 @@ File: IPushPop.kt - 184da9d2a8d7c66738e4b9d1c7a60b31 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/LINQ.antlrtree.txt b/grammar/testData/psi/examples/LINQ.antlrtree.txt index ae8c38f3a..dfc98edb8 100644 --- a/grammar/testData/psi/examples/LINQ.antlrtree.txt +++ b/grammar/testData/psi/examples/LINQ.antlrtree.txt @@ -168,6 +168,4 @@ File: LINQ.kt - 7e7e3079714ffc96418425a2fbcd8385 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/Queue.antlrtree.txt b/grammar/testData/psi/examples/Queue.antlrtree.txt index 572b34fba..a9f3ab075 100644 --- a/grammar/testData/psi/examples/Queue.antlrtree.txt +++ b/grammar/testData/psi/examples/Queue.antlrtree.txt @@ -807,6 +807,4 @@ File: Queue.kt - 3499bf16439445ccf292c240a1263b62 NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/Stack.antlrtree.txt b/grammar/testData/psi/examples/Stack.antlrtree.txt index 9a02d8232..94cae483c 100644 --- a/grammar/testData/psi/examples/Stack.antlrtree.txt +++ b/grammar/testData/psi/examples/Stack.antlrtree.txt @@ -262,6 +262,4 @@ File: Stack.kt - 8083210fa16dce03ac1b1089a1e37f65 NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/UpdateOperation.antlrtree.txt b/grammar/testData/psi/examples/UpdateOperation.antlrtree.txt index aded69f66..be937cbb8 100644 --- a/grammar/testData/psi/examples/UpdateOperation.antlrtree.txt +++ b/grammar/testData/psi/examples/UpdateOperation.antlrtree.txt @@ -505,6 +505,4 @@ File: UpdateOperation.kt - a9ea4a2df57054c916979d163b8e23c7 NL("\n") NL("\n") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/array/MutableArray.antlrtree.txt b/grammar/testData/psi/examples/array/MutableArray.antlrtree.txt index 201bccbfd..9c2b4afa7 100644 --- a/grammar/testData/psi/examples/array/MutableArray.antlrtree.txt +++ b/grammar/testData/psi/examples/array/MutableArray.antlrtree.txt @@ -211,6 +211,4 @@ File: MutableArray.kt - 96dd1a7898e3e9442eac3f5f85f28ca5 LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/collections/HashMap.antlrtree.txt b/grammar/testData/psi/examples/collections/HashMap.antlrtree.txt index f21481abb..9f269113d 100644 --- a/grammar/testData/psi/examples/collections/HashMap.antlrtree.txt +++ b/grammar/testData/psi/examples/collections/HashMap.antlrtree.txt @@ -1346,6 +1346,4 @@ File: HashMap.kt - d6c8196b7b497ffdaf9cd1aa681a304d NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/collections/IList.antlrtree.txt b/grammar/testData/psi/examples/collections/IList.antlrtree.txt index 73b52b2d3..ada8635d9 100644 --- a/grammar/testData/psi/examples/collections/IList.antlrtree.txt +++ b/grammar/testData/psi/examples/collections/IList.antlrtree.txt @@ -106,6 +106,4 @@ File: IList.kt - 3dfa2fd932d51b44e9d7fb537e8715ce Identifier("Boolean") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/collections/IMutableIterable.antlrtree.txt b/grammar/testData/psi/examples/collections/IMutableIterable.antlrtree.txt index 911c4b72f..e0e1a078f 100644 --- a/grammar/testData/psi/examples/collections/IMutableIterable.antlrtree.txt +++ b/grammar/testData/psi/examples/collections/IMutableIterable.antlrtree.txt @@ -72,6 +72,4 @@ File: IMutableIterable.kt - 142e8405073a38ecf5d452d764b85472 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/collections/IMutableIterator.antlrtree.txt b/grammar/testData/psi/examples/collections/IMutableIterator.antlrtree.txt index 99f470da2..835b7d507 100644 --- a/grammar/testData/psi/examples/collections/IMutableIterator.antlrtree.txt +++ b/grammar/testData/psi/examples/collections/IMutableIterator.antlrtree.txt @@ -64,6 +64,4 @@ File: IMutableIterator.kt - eaf11af8282227b24480e57228e30031 NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/collections/IMutableList.antlrtree.txt b/grammar/testData/psi/examples/collections/IMutableList.antlrtree.txt index 265c16dde..fa3c37265 100644 --- a/grammar/testData/psi/examples/collections/IMutableList.antlrtree.txt +++ b/grammar/testData/psi/examples/collections/IMutableList.antlrtree.txt @@ -189,6 +189,4 @@ File: IMutableList.kt - 664719552f7bbbfa5861eb9fe53f12f1 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/collections/IMutableSet.antlrtree.txt b/grammar/testData/psi/examples/collections/IMutableSet.antlrtree.txt index 270644cf8..fac55d299 100644 --- a/grammar/testData/psi/examples/collections/IMutableSet.antlrtree.txt +++ b/grammar/testData/psi/examples/collections/IMutableSet.antlrtree.txt @@ -115,6 +115,4 @@ File: IMutableSet.kt - 85baf8ea8c97bcf7642c03c5f7912fa0 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/collections/ISized.antlrtree.txt b/grammar/testData/psi/examples/collections/ISized.antlrtree.txt index 728d1ae53..e5855753a 100644 --- a/grammar/testData/psi/examples/collections/ISized.antlrtree.txt +++ b/grammar/testData/psi/examples/collections/ISized.antlrtree.txt @@ -31,6 +31,4 @@ File: ISized.kt - b2810615a356b0a4028c2c1d61a4e38a Identifier("Int") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/collections/LinkedList.antlrtree.txt b/grammar/testData/psi/examples/collections/LinkedList.antlrtree.txt index 0f514bf6c..09c57d534 100644 --- a/grammar/testData/psi/examples/collections/LinkedList.antlrtree.txt +++ b/grammar/testData/psi/examples/collections/LinkedList.antlrtree.txt @@ -2027,6 +2027,4 @@ File: LinkedList.kt - 69f5cc55c2750676888b9f8a116b014e semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/io/IOSamples.antlrtree.txt b/grammar/testData/psi/examples/io/IOSamples.antlrtree.txt index 5397f19db..e7c01d217 100644 --- a/grammar/testData/psi/examples/io/IOSamples.antlrtree.txt +++ b/grammar/testData/psi/examples/io/IOSamples.antlrtree.txt @@ -1093,6 +1093,4 @@ File: IOSamples.kt - d0f9c54e07fb67212ef69af6843fa275 NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/map/IMap.antlrtree.txt b/grammar/testData/psi/examples/map/IMap.antlrtree.txt index 34e79f572..bb12a0d0b 100644 --- a/grammar/testData/psi/examples/map/IMap.antlrtree.txt +++ b/grammar/testData/psi/examples/map/IMap.antlrtree.txt @@ -36,6 +36,4 @@ File: IMap.kt - 9f909774732d88f491ba47e9efc07363 NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/priorityqueues/PriorityQueueAsPushPop.antlrtree.txt b/grammar/testData/psi/examples/priorityqueues/PriorityQueueAsPushPop.antlrtree.txt index 44379a988..df9d48e2b 100644 --- a/grammar/testData/psi/examples/priorityqueues/PriorityQueueAsPushPop.antlrtree.txt +++ b/grammar/testData/psi/examples/priorityqueues/PriorityQueueAsPushPop.antlrtree.txt @@ -227,6 +227,4 @@ File: PriorityQueueAsPushPop.kt - 8f3b594e3dd54a8576cb990d1e977059 NL("\n") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/examples/util/IComparable.antlrtree.txt b/grammar/testData/psi/examples/util/IComparable.antlrtree.txt index 16dc6e9fa..f801e386f 100644 --- a/grammar/testData/psi/examples/util/IComparable.antlrtree.txt +++ b/grammar/testData/psi/examples/util/IComparable.antlrtree.txt @@ -55,6 +55,4 @@ File: IComparable.kt - 4d8090ab584be146bcf6369cfbc1cd47 semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/functionReceivers/FunctionTypesWithFunctionReceivers.antlrtree.txt b/grammar/testData/psi/functionReceivers/FunctionTypesWithFunctionReceivers.antlrtree.txt index b3a004bbb..901241938 100644 --- a/grammar/testData/psi/functionReceivers/FunctionTypesWithFunctionReceivers.antlrtree.txt +++ b/grammar/testData/psi/functionReceivers/FunctionTypesWithFunctionReceivers.antlrtree.txt @@ -607,6 +607,4 @@ File: FunctionTypesWithFunctionReceivers.kt - e09225e064c5a9e7aa9ebff0cda9f639 simpleIdentifier Identifier("S") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/functionReceivers/FunctionsWithFunctionReceivers.antlrtree.txt b/grammar/testData/psi/functionReceivers/FunctionsWithFunctionReceivers.antlrtree.txt index f7df3953a..55f753f5d 100644 --- a/grammar/testData/psi/functionReceivers/FunctionsWithFunctionReceivers.antlrtree.txt +++ b/grammar/testData/psi/functionReceivers/FunctionsWithFunctionReceivers.antlrtree.txt @@ -470,6 +470,4 @@ File: FunctionsWithFunctionReceivers.kt - edfa5a1f6ca0b52d16e5de26ac07684f CLASS("class") simpleIdentifier Identifier("C") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/functionReceivers/FunctionsWithFunctionReceiversRecovery.antlrtree.txt b/grammar/testData/psi/functionReceivers/FunctionsWithFunctionReceiversRecovery.antlrtree.txt index 8a92799b7..3a88d6e48 100644 --- a/grammar/testData/psi/functionReceivers/FunctionsWithFunctionReceiversRecovery.antlrtree.txt +++ b/grammar/testData/psi/functionReceivers/FunctionsWithFunctionReceiversRecovery.antlrtree.txt @@ -581,6 +581,4 @@ File: FunctionsWithFunctionReceiversRecovery.kt - 2a9c3c970b2f31146e490bcc08de9d semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/functionReceivers/PropertiesWithFunctionReceiversAnnotations.antlrtree.txt b/grammar/testData/psi/functionReceivers/PropertiesWithFunctionReceiversAnnotations.antlrtree.txt index 9e23b557a..be16a2767 100644 --- a/grammar/testData/psi/functionReceivers/PropertiesWithFunctionReceiversAnnotations.antlrtree.txt +++ b/grammar/testData/psi/functionReceivers/PropertiesWithFunctionReceiversAnnotations.antlrtree.txt @@ -393,6 +393,4 @@ File: PropertiesWithFunctionReceiversAnnotations.kt - 287072d67240f5fc6885e2a126 simpleIdentifier Identifier("P") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/functionReceivers/PropertiesWithFunctionReceiversRecovery.antlrtree.txt b/grammar/testData/psi/functionReceivers/PropertiesWithFunctionReceiversRecovery.antlrtree.txt index 3d1783b73..660fc5cc6 100644 --- a/grammar/testData/psi/functionReceivers/PropertiesWithFunctionReceiversRecovery.antlrtree.txt +++ b/grammar/testData/psi/functionReceivers/PropertiesWithFunctionReceiversRecovery.antlrtree.txt @@ -384,6 +384,4 @@ File: PropertiesWithFunctionReceiversRecovery.kt - a7b9767e5bdf6ff7452fbbc34fea7 Identifier("A") DOT(".") Identifier("B") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/greatSyntacticShift/nullableTypes.antlrtree.txt b/grammar/testData/psi/greatSyntacticShift/nullableTypes.antlrtree.txt index 3e5bd54ae..51a7fbeae 100644 --- a/grammar/testData/psi/greatSyntacticShift/nullableTypes.antlrtree.txt +++ b/grammar/testData/psi/greatSyntacticShift/nullableTypes.antlrtree.txt @@ -434,6 +434,4 @@ File: nullableTypes.kt - 6fe4cf4ede355529ef637f45f04ef7c2 Identifier("Unit") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/kotlinFunInterface_ERR.antlrtree.txt b/grammar/testData/psi/kotlinFunInterface_ERR.antlrtree.txt index fac4d4dfd..554ef34e2 100644 --- a/grammar/testData/psi/kotlinFunInterface_ERR.antlrtree.txt +++ b/grammar/testData/psi/kotlinFunInterface_ERR.antlrtree.txt @@ -93,6 +93,4 @@ File: kotlinFunInterface_ERR.kt - 8cc019a8a9a9514d26a7c7045470011e OBJECT("object") simpleIdentifier Identifier("Foo") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/newLabels/basic.antlrtree.txt b/grammar/testData/psi/newLabels/basic.antlrtree.txt index 2515a88ce..26880807e 100644 --- a/grammar/testData/psi/newLabels/basic.antlrtree.txt +++ b/grammar/testData/psi/newLabels/basic.antlrtree.txt @@ -563,6 +563,4 @@ File: basic.kt - dd0bf3bc1872be4534dc0651606af11a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/newLabels/oldSyntaxExpressions.antlrtree.txt b/grammar/testData/psi/newLabels/oldSyntaxExpressions.antlrtree.txt index 2afbb1a6f..abe6420f1 100644 --- a/grammar/testData/psi/newLabels/oldSyntaxExpressions.antlrtree.txt +++ b/grammar/testData/psi/newLabels/oldSyntaxExpressions.antlrtree.txt @@ -247,6 +247,4 @@ File: oldSyntaxExpressions.kt - ac9c32ffaa316d1ba5342be551f2866f IntegerLiteral("1") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/operators/untilOperator.antlrtree.txt b/grammar/testData/psi/operators/untilOperator.antlrtree.txt new file mode 100644 index 000000000..2870e936f --- /dev/null +++ b/grammar/testData/psi/operators/untilOperator.antlrtree.txt @@ -0,0 +1,30 @@ +File: untilOperator.kt - b7ecd6e8f3f9290a210e4ffb11737fcb (WITH_ERRORS) + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + FOR("for") + LPAREN("(") + Identifier("i") + IN("in") + IntegerLiteral("0") + RANGE("..") + LANGLE("<") + Identifier("n") + RPAREN(")") + LCURL("{") + NL("\n") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/psi/operators/untilOperatorDifferentContexts.antlrtree.txt b/grammar/testData/psi/operators/untilOperatorDifferentContexts.antlrtree.txt new file mode 100644 index 000000000..32abf5c22 --- /dev/null +++ b/grammar/testData/psi/operators/untilOperatorDifferentContexts.antlrtree.txt @@ -0,0 +1,255 @@ +File: untilOperatorDifferentContexts.kt - e928bd4649ae9949fcaa305d8d9ba1a1 (WITH_ERRORS) + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + IntegerLiteral("0") + RANGE("..") + LANGLE("<") + Identifier("n") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + VAL("val") + functionValueParameter + parameter + simpleIdentifier + Identifier("x") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Int") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("0") + RANGE("..") + LANGLE("<") + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + simpleIdentifier + Identifier("n") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + topLevelObject + declaration + topLevelObject + declaration + AT_PRE_WS("\n@") + Identifier("Suppress") + LPAREN("(") + IntegerLiteral("0") + RANGE("..") + LANGLE("<") + Identifier("n") + RPAREN(")") + semis + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + functionBody + block + LCURL("{") + statements + RCURL("}") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + WHEN("when") + LCURL("{") + NL("\n") + IntegerLiteral("0") + RANGE("..") + LANGLE("<") + Identifier("n") + ARROW("->") + BooleanLiteral("true") + NL("\n") + Identifier("n") + RANGE("..") + LANGLE("<") + Identifier("n") + ADD("+") + IntegerLiteral("1") + ARROW("->") + BooleanLiteral("true") + NL("\n") + Identifier("n") + ADD("+") + IntegerLiteral("1") + RANGE("..") + LANGLE("<") + Identifier("n") + ADD("+") + IntegerLiteral("2") + ARROW("->") + BooleanLiteral("true") + NL("\n") + Identifier("n") + MULT("*") + IntegerLiteral("2") + RANGE("..") + LANGLE("<") + Identifier("n") + MULT("*") + IntegerLiteral("3") + ARROW("->") + BooleanLiteral("true") + NL("\n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + IF("if") + LPAREN("(") + IntegerLiteral("0") + RANGE("..") + LANGLE("<") + Identifier("n") + RANGE("..") + LANGLE("<") + Identifier("n") + RPAREN(")") + LCURL("{") + RCURL("}") + ELSE("else") + IF("if") + LPAREN("(") + IntegerLiteral("0") + RANGE("..") + Identifier("n") + RANGE("..") + LANGLE("<") + Identifier("n") + RANGE("..") + Identifier("n") + RPAREN(")") + LCURL("{") + RCURL("}") + ELSE("else") + IF("if") + LPAREN("(") + IntegerLiteral("0") + RANGE("..") + LANGLE("<") + Identifier("n") + RANGE("..") + Identifier("n") + RANGE("..") + LANGLE("<") + Identifier("n") + RANGE("..") + LANGLE("<") + Identifier("n") + RPAREN(")") + LCURL("{") + RCURL("}") + ELSE("else") + LCURL("{") + LPAREN("(") + LPAREN("(") + IntegerLiteral("0") + ADD("+") + IntegerLiteral("1") + RANGE("..") + LANGLE("<") + Identifier("n") + SUB("-") + IntegerLiteral("1") + RANGE("..") + IntegerLiteral("1") + ADD("+") + Identifier("n") + RPAREN(")") + SUB("-") + IntegerLiteral("1") + RANGE("..") + LANGLE("<") + IntegerLiteral("3") + MULT("*") + Identifier("n") + RPAREN(")") + RANGE("..") + LANGLE("<") + Identifier("n") + RCURL("}") + NL("\n") + RCURL("}") + NL("\n") + EOF("") diff --git a/grammar/testData/psi/operators/untilOperatorGenericsClash.antlrtree.txt b/grammar/testData/psi/operators/untilOperatorGenericsClash.antlrtree.txt new file mode 100644 index 000000000..295c5e378 --- /dev/null +++ b/grammar/testData/psi/operators/untilOperatorGenericsClash.antlrtree.txt @@ -0,0 +1,81 @@ +File: untilOperatorGenericsClash.kt - afc441d87b36516c26d14e4ca987be45 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + COLON(":") + RANGE("..") + LANGLE("<") + Identifier("Int") + RANGLE(">") + ASSIGNMENT("=") + expression + disjunction + conjunction + equality + comparison + genericCallLikeComparison + infixOperation + elvisExpression + infixFunctionCall + rangeExpression + additiveExpression + multiplicativeExpression + asExpression + prefixUnaryExpression + postfixUnaryExpression + primaryExpression + literalConstant + IntegerLiteral("1") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("x") + ASSIGNMENT("=") + RANGE("..") + LANGLE("<") + Identifier("Int") + RANGLE(">") + COLONCOLON("::") + topLevelObject + declaration + classDeclaration + CLASS("class") + NL("\n") + simpleIdentifier + VAL("val") + Identifier("x") + ASSIGNMENT("=") + Identifier("`..`") + LANGLE("<") + Identifier("Int") + RANGLE(">") + COLONCOLON("::") + topLevelObject + declaration + classDeclaration + CLASS("class") + NL("\n") + RCURL("}") + simpleIdentifier + EOF("") diff --git a/grammar/testData/psi/operators/untilOperatorGreater.antlrtree.txt b/grammar/testData/psi/operators/untilOperatorGreater.antlrtree.txt new file mode 100644 index 000000000..053d68de0 --- /dev/null +++ b/grammar/testData/psi/operators/untilOperatorGreater.antlrtree.txt @@ -0,0 +1,52 @@ +File: untilOperatorGreater.kt - 5131174153760e6eeb7d35c2b8498b98 + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + FOR("for") + LPAREN("(") + Identifier("i") + IN("in") + IntegerLiteral("0") + RANGE("..") + RANGLE(">") + Identifier("n") + RPAREN(")") + LCURL("{") + RCURL("}") + NL("\n") + FOR("for") + LPAREN("(") + Identifier("i") + IN("in") + IntegerLiteral("0") + RANGE("..") + RANGLE(">") + Identifier("n") + RPAREN(")") + LCURL("{") + RCURL("}") + NL("\n") + FOR("for") + LPAREN("(") + Identifier("i") + IN("in") + IntegerLiteral("0") + RANGE("..") + RANGLE(">") + Identifier("n") + RPAREN(")") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/psi/operators/untilOperatorWithWhitespace.antlrtree.txt b/grammar/testData/psi/operators/untilOperatorWithWhitespace.antlrtree.txt new file mode 100644 index 000000000..9fc3c11a7 --- /dev/null +++ b/grammar/testData/psi/operators/untilOperatorWithWhitespace.antlrtree.txt @@ -0,0 +1,90 @@ +File: untilOperatorWithWhitespace.kt - 04a857441bc3043b1a9e766b3eed226f + packageHeader + importList + topLevelObject + declaration + functionDeclaration + FUN("fun") + simpleIdentifier + Identifier("main") + functionValueParameters + LPAREN("(") + RPAREN(")") + LCURL("{") + NL("\n") + FOR("for") + LPAREN("(") + Identifier("i") + IN("in") + IntegerLiteral("0") + RANGE("..") + LANGLE("<") + Identifier("n") + RPAREN(")") + LCURL("{") + RCURL("}") + NL("\n") + FOR("for") + LPAREN("(") + Identifier("i") + IN("in") + IntegerLiteral("0") + RANGE("..") + LANGLE("<") + Identifier("n") + RPAREN(")") + LCURL("{") + RCURL("}") + NL("\n") + FOR("for") + LPAREN("(") + Identifier("i") + IN("in") + IntegerLiteral("0") + RANGE("..") + LANGLE("<") + Identifier("n") + RPAREN(")") + LCURL("{") + RCURL("}") + NL("\n") + FOR("for") + LPAREN("(") + Identifier("i") + IN("in") + IntegerLiteral("0") + RANGE("..") + LANGLE("<") + Identifier("n") + RPAREN(")") + LCURL("{") + RCURL("}") + NL("\n") + FOR("for") + LPAREN("(") + Identifier("i") + IN("in") + IntegerLiteral("0") + DOT(".") + DOT(".") + LANGLE("<") + Identifier("n") + RPAREN(")") + LCURL("{") + RCURL("}") + NL("\n") + FOR("for") + LPAREN("(") + Identifier("i") + IN("in") + IntegerLiteral("0") + DOT(".") + DOT(".") + LANGLE("<") + Identifier("n") + RPAREN(")") + LCURL("{") + RCURL("}") + NL("\n") + RCURL("}") + EOF("") diff --git a/grammar/testData/psi/packages/PackageLongNameLeadingDot.antlrtree.txt b/grammar/testData/psi/packages/PackageLongNameLeadingDot.antlrtree.txt index 630fb1702..fe91e7fc5 100644 --- a/grammar/testData/psi/packages/PackageLongNameLeadingDot.antlrtree.txt +++ b/grammar/testData/psi/packages/PackageLongNameLeadingDot.antlrtree.txt @@ -11,7 +11,5 @@ File: PackageLongNameLeadingDot.kt - 361f564f4f947bd79ada36dac71d7042 DOT(".") simpleIdentifier Identifier("c") - semi - EOF("") importList EOF("") diff --git a/grammar/testData/psi/packages/PackageModifiers.antlrtree.txt b/grammar/testData/psi/packages/PackageModifiers.antlrtree.txt index b6e13b7c6..4afcb2262 100644 --- a/grammar/testData/psi/packages/PackageModifiers.antlrtree.txt +++ b/grammar/testData/psi/packages/PackageModifiers.antlrtree.txt @@ -14,6 +14,4 @@ File: PackageModifiers.kt - 96869e67b517951a717f0e91bb114b72 (WITH_ERRORS) RSQUARE("]") PACKAGE("package") Identifier("name") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/packages/PackageSimpleNameLeadingDot.antlrtree.txt b/grammar/testData/psi/packages/PackageSimpleNameLeadingDot.antlrtree.txt index 5c0d03b90..3853dbbb4 100644 --- a/grammar/testData/psi/packages/PackageSimpleNameLeadingDot.antlrtree.txt +++ b/grammar/testData/psi/packages/PackageSimpleNameLeadingDot.antlrtree.txt @@ -5,7 +5,5 @@ File: PackageSimpleNameLeadingDot.kt - d02d46ea4d02051fa248b88eddfbbcc8 simpleIdentifier DOT(".") Identifier("a") - semi - EOF("") importList EOF("") diff --git a/grammar/testData/psi/platformTypesRecovery/FunctionsNotPlatform.antlrtree.txt b/grammar/testData/psi/platformTypesRecovery/FunctionsNotPlatform.antlrtree.txt index 66f2243a9..b70071303 100644 --- a/grammar/testData/psi/platformTypesRecovery/FunctionsNotPlatform.antlrtree.txt +++ b/grammar/testData/psi/platformTypesRecovery/FunctionsNotPlatform.antlrtree.txt @@ -189,6 +189,4 @@ File: FunctionsNotPlatform.kt - 6723dc06e98d1234a3c13cc0c5ba1810 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/platformTypesRecovery/ParenthesizedNotPlatform.antlrtree.txt b/grammar/testData/psi/platformTypesRecovery/ParenthesizedNotPlatform.antlrtree.txt index 2be184e9c..dbcc04929 100644 --- a/grammar/testData/psi/platformTypesRecovery/ParenthesizedNotPlatform.antlrtree.txt +++ b/grammar/testData/psi/platformTypesRecovery/ParenthesizedNotPlatform.antlrtree.txt @@ -71,6 +71,4 @@ File: ParenthesizedNotPlatform.kt - 5be9899e38b11fa00e2fa5f8c97a3533 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/platformTypesRecovery/Qualified.antlrtree.txt b/grammar/testData/psi/platformTypesRecovery/Qualified.antlrtree.txt index 76dcc9cdc..f3a109971 100644 --- a/grammar/testData/psi/platformTypesRecovery/Qualified.antlrtree.txt +++ b/grammar/testData/psi/platformTypesRecovery/Qualified.antlrtree.txt @@ -92,6 +92,4 @@ File: Qualified.kt - b2216a83612249fcd654f3840bbd37b1 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/platformTypesRecovery/Simple.antlrtree.txt b/grammar/testData/psi/platformTypesRecovery/Simple.antlrtree.txt index cf23cdbae..9815f85fc 100644 --- a/grammar/testData/psi/platformTypesRecovery/Simple.antlrtree.txt +++ b/grammar/testData/psi/platformTypesRecovery/Simple.antlrtree.txt @@ -72,6 +72,4 @@ File: Simple.kt - 0ff806e77b535e120049afdfa32a75bb LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/propertyBackingField/explicitBackingField.antlrtree.txt b/grammar/testData/psi/propertyBackingField/explicitBackingField.antlrtree.txt new file mode 100644 index 000000000..3b954c500 --- /dev/null +++ b/grammar/testData/psi/propertyBackingField/explicitBackingField.antlrtree.txt @@ -0,0 +1,225 @@ +File: explicitBackingField.kt - 3c654f6fa6cf0f176356e694303a1e5f + packageHeader + importList + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("simpleNumber") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + semis + NL("\n") + FIELD("field") + ASSIGNMENT("=") + IntegerLiteral("4") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("numberWithPrivateField") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + semis + NL("\n") + topLevelObject + declaration + topLevelObject + declaration + PRIVATE("private") + FIELD("field") + ASSIGNMENT("=") + IntegerLiteral("4") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("numberWithLateinitField") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + semis + NL("\n") + topLevelObject + declaration + topLevelObject + declaration + LATEINIT("lateinit") + FIELD("field") + COLON(":") + Identifier("Int") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("numberWithInternalLateinitField") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + semis + NL("\n") + topLevelObject + declaration + topLevelObject + declaration + INTERNAL("internal") + topLevelObject + declaration + LATEINIT("lateinit") + FIELD("field") + COLON(":") + Identifier("Int") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAR("var") + variableDeclaration + simpleIdentifier + Identifier("numberWithFieldAndAccessors") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + semis + NL("\n") + FIELD("field") + ASSIGNMENT("=") + QUOTE_OPEN(""") + LineStrText("test") + QUOTE_CLOSE(""") + NL("\n") + GET("get") + LPAREN("(") + RPAREN(")") + ASSIGNMENT("=") + FIELD("field") + DOT(".") + Identifier("length") + NL("\n") + SET("set") + LPAREN("(") + topLevelObject + declaration + topLevelObject + declaration + VALUE("value") + RPAREN(")") + LCURL("{") + semis + NL("\n") + FIELD("field") + ASSIGNMENT("=") + topLevelObject + declaration + topLevelObject + declaration + VALUE("value") + DOT(".") + Identifier("toString") + LPAREN("(") + RPAREN(")") + semis + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("numberWithExplicitType") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + NL("\n") + FIELD("field") + COLON(":") + Identifier("Int") + ASSIGNMENT("=") + IntegerLiteral("10") + semis + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("numberWithBlockInitializer") + COLON(":") + type + typeReference + userType + simpleUserType + simpleIdentifier + Identifier("Number") + semis + NL("\n") + FIELD("field") + LCURL("{") + NL("\n") + RETURN("return") + IntegerLiteral("10") + NL("\n") + RCURL("}") + NL("\n") + NL("\n") + topLevelObject + declaration + propertyDeclaration + VAL("val") + variableDeclaration + simpleIdentifier + Identifier("minimalNumber") + semis + NL("\n") + FIELD("field") + NL("\n") + EOF("") diff --git a/grammar/testData/psi/propertyDelegate/BracketsInDelegate.antlrtree.txt b/grammar/testData/psi/propertyDelegate/BracketsInDelegate.antlrtree.txt index 962fac19c..44ee44bf5 100644 --- a/grammar/testData/psi/propertyDelegate/BracketsInDelegate.antlrtree.txt +++ b/grammar/testData/psi/propertyDelegate/BracketsInDelegate.antlrtree.txt @@ -35,6 +35,4 @@ File: BracketsInDelegate.kt - e2b7f80aa25355e0ae858623cd670ebb LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/propertyDelegate/LocalProperty.antlrtree.txt b/grammar/testData/psi/propertyDelegate/LocalProperty.antlrtree.txt index f10316366..d9a02b2d5 100644 --- a/grammar/testData/psi/propertyDelegate/LocalProperty.antlrtree.txt +++ b/grammar/testData/psi/propertyDelegate/LocalProperty.antlrtree.txt @@ -69,6 +69,4 @@ File: LocalProperty.kt - 2b1638d2b1c660d763546857cde1664a semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/propertyDelegate/OnlyBy.antlrtree.txt b/grammar/testData/psi/propertyDelegate/OnlyBy.antlrtree.txt index 02c68f628..45d6d575f 100644 --- a/grammar/testData/psi/propertyDelegate/OnlyBy.antlrtree.txt +++ b/grammar/testData/psi/propertyDelegate/OnlyBy.antlrtree.txt @@ -38,6 +38,4 @@ File: OnlyBy.kt - 7df1f601a384df6bd93873364b142495 primaryExpression literalConstant IntegerLiteral("1") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/propertyDelegate/PropertyInClass.antlrtree.txt b/grammar/testData/psi/propertyDelegate/PropertyInClass.antlrtree.txt index 99a19a40c..980195717 100644 --- a/grammar/testData/psi/propertyDelegate/PropertyInClass.antlrtree.txt +++ b/grammar/testData/psi/propertyDelegate/PropertyInClass.antlrtree.txt @@ -52,6 +52,4 @@ File: PropertyInClass.kt - 7d27df2f62552ee81990521ebacf1436 RPAREN(")") NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/propertyDelegate/PropertyWithGetter.antlrtree.txt b/grammar/testData/psi/propertyDelegate/PropertyWithGetter.antlrtree.txt index 4ac2440fd..4fb1489fb 100644 --- a/grammar/testData/psi/propertyDelegate/PropertyWithGetter.antlrtree.txt +++ b/grammar/testData/psi/propertyDelegate/PropertyWithGetter.antlrtree.txt @@ -65,6 +65,4 @@ File: PropertyWithGetter.kt - 2c1f01d727a1310dba52cf2577c525f1 primaryExpression literalConstant IntegerLiteral("1") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/propertyDelegate/PropertyWithoutTypeRef.antlrtree.txt b/grammar/testData/psi/propertyDelegate/PropertyWithoutTypeRef.antlrtree.txt index 0b7d33d8e..8290d229a 100644 --- a/grammar/testData/psi/propertyDelegate/PropertyWithoutTypeRef.antlrtree.txt +++ b/grammar/testData/psi/propertyDelegate/PropertyWithoutTypeRef.antlrtree.txt @@ -33,6 +33,4 @@ File: PropertyWithoutTypeRef.kt - db7b983605d6cc4a9143e2e351921635 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/propertyDelegate/TopLevelProperty.antlrtree.txt b/grammar/testData/psi/propertyDelegate/TopLevelProperty.antlrtree.txt index c3ea6ea1b..0bedb7afd 100644 --- a/grammar/testData/psi/propertyDelegate/TopLevelProperty.antlrtree.txt +++ b/grammar/testData/psi/propertyDelegate/TopLevelProperty.antlrtree.txt @@ -40,6 +40,4 @@ File: TopLevelProperty.kt - a4ed57bd1313a2769f86b5d6308310f3 valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/BrokenFunctionSuperType.antlrtree.txt b/grammar/testData/psi/recovery/BrokenFunctionSuperType.antlrtree.txt index 3215b4392..17794da0c 100644 --- a/grammar/testData/psi/recovery/BrokenFunctionSuperType.antlrtree.txt +++ b/grammar/testData/psi/recovery/BrokenFunctionSuperType.antlrtree.txt @@ -20,6 +20,4 @@ File: BrokenFunctionSuperType.kt - e3ef8900a3cd9a23bad2abe5aef92ad5 NL("\n") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/CatchKeywordRBrace.antlrtree.txt b/grammar/testData/psi/recovery/CatchKeywordRBrace.antlrtree.txt index 2c2ec508b..4873dfe39 100644 --- a/grammar/testData/psi/recovery/CatchKeywordRBrace.antlrtree.txt +++ b/grammar/testData/psi/recovery/CatchKeywordRBrace.antlrtree.txt @@ -37,6 +37,4 @@ File: CatchKeywordRBrace.kt - ec73cc3dbb866c16ff058e2fd8050079 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/CloseBraceAtTopLevel.antlrtree.txt b/grammar/testData/psi/recovery/CloseBraceAtTopLevel.antlrtree.txt index 7316da5e2..328fc6c56 100644 --- a/grammar/testData/psi/recovery/CloseBraceAtTopLevel.antlrtree.txt +++ b/grammar/testData/psi/recovery/CloseBraceAtTopLevel.antlrtree.txt @@ -27,6 +27,4 @@ File: CloseBraceAtTopLevel.kt - 6a93c4acca493db3f55c03ab4323ad45 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/ForWithoutBodyInEOF.antlrtree.txt b/grammar/testData/psi/recovery/ForWithoutBodyInEOF.antlrtree.txt index 25a195ac9..266bea5c1 100644 --- a/grammar/testData/psi/recovery/ForWithoutBodyInEOF.antlrtree.txt +++ b/grammar/testData/psi/recovery/ForWithoutBodyInEOF.antlrtree.txt @@ -34,6 +34,4 @@ File: ForWithoutBodyInEOF.kt - 7897d0ddb54b89fe3f786207ea9d701c valueArguments LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/ForWithoutLParInEOF.antlrtree.txt b/grammar/testData/psi/recovery/ForWithoutLParInEOF.antlrtree.txt index 175b06028..3399cb68b 100644 --- a/grammar/testData/psi/recovery/ForWithoutLParInEOF.antlrtree.txt +++ b/grammar/testData/psi/recovery/ForWithoutLParInEOF.antlrtree.txt @@ -13,6 +13,4 @@ File: ForWithoutLParInEOF.kt - a4027e3e9804d5428a51b5fa06b934c9 functionBody ASSIGNMENT("=") FOR("for") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/FunFun.antlrtree.txt b/grammar/testData/psi/recovery/FunFun.antlrtree.txt index 1282be0f1..c5e49073d 100644 --- a/grammar/testData/psi/recovery/FunFun.antlrtree.txt +++ b/grammar/testData/psi/recovery/FunFun.antlrtree.txt @@ -25,6 +25,4 @@ File: FunFun.kt - 02a4a460056a94fd5eeb945fbc232232 NL("\n") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/IfKeywordRBrace.antlrtree.txt b/grammar/testData/psi/recovery/IfKeywordRBrace.antlrtree.txt index cbbfaeea3..0f8096c07 100644 --- a/grammar/testData/psi/recovery/IfKeywordRBrace.antlrtree.txt +++ b/grammar/testData/psi/recovery/IfKeywordRBrace.antlrtree.txt @@ -31,6 +31,4 @@ File: IfKeywordRBrace.kt - 30b51e4320c42f013dc09f29b3c2b212 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/ImportRecovery.antlrtree.txt b/grammar/testData/psi/recovery/ImportRecovery.antlrtree.txt index f43eb6131..89eac9956 100644 --- a/grammar/testData/psi/recovery/ImportRecovery.antlrtree.txt +++ b/grammar/testData/psi/recovery/ImportRecovery.antlrtree.txt @@ -27,6 +27,4 @@ File: ImportRecovery.kt - 5292bfb731a4689390031a42bc18158f LCURL("{") classMemberDeclarations RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/IncompleteAccessor1.antlrtree.txt b/grammar/testData/psi/recovery/IncompleteAccessor1.antlrtree.txt index a8dc3777b..42bd13924 100644 --- a/grammar/testData/psi/recovery/IncompleteAccessor1.antlrtree.txt +++ b/grammar/testData/psi/recovery/IncompleteAccessor1.antlrtree.txt @@ -35,6 +35,4 @@ File: IncompleteAccessor1.kt - 5737e101b808cd14b42b29843e53a411 CLASS("class") simpleIdentifier Identifier("D") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/IncompleteAccessor2.antlrtree.txt b/grammar/testData/psi/recovery/IncompleteAccessor2.antlrtree.txt index f0f2ebcf7..b894dd204 100644 --- a/grammar/testData/psi/recovery/IncompleteAccessor2.antlrtree.txt +++ b/grammar/testData/psi/recovery/IncompleteAccessor2.antlrtree.txt @@ -37,6 +37,4 @@ File: IncompleteAccessor2.kt - b7610aa090987b8cb4b345aebc920cee CLASS("class") simpleIdentifier Identifier("D") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/IncompleteClassDeclaration.antlrtree.txt b/grammar/testData/psi/recovery/IncompleteClassDeclaration.antlrtree.txt index 7c878f140..fc7f55e24 100644 --- a/grammar/testData/psi/recovery/IncompleteClassDeclaration.antlrtree.txt +++ b/grammar/testData/psi/recovery/IncompleteClassDeclaration.antlrtree.txt @@ -25,6 +25,4 @@ File: IncompleteClassDeclaration.kt - c9e1c666709b271e937d9b159d07c8a6 CLASS("class") simpleIdentifier Identifier("Next") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/IncompleteClassTypeParameters.antlrtree.txt b/grammar/testData/psi/recovery/IncompleteClassTypeParameters.antlrtree.txt index d3aec7002..49d4bc75a 100644 --- a/grammar/testData/psi/recovery/IncompleteClassTypeParameters.antlrtree.txt +++ b/grammar/testData/psi/recovery/IncompleteClassTypeParameters.antlrtree.txt @@ -27,6 +27,4 @@ File: IncompleteClassTypeParameters.kt - 78659bf0fab7bfb7f9cbfdc085229c46 CLASS("class") simpleIdentifier Identifier("Next") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/IncompleteForRBrace.antlrtree.txt b/grammar/testData/psi/recovery/IncompleteForRBrace.antlrtree.txt index dd8b65a95..4db1e4cc9 100644 --- a/grammar/testData/psi/recovery/IncompleteForRBrace.antlrtree.txt +++ b/grammar/testData/psi/recovery/IncompleteForRBrace.antlrtree.txt @@ -31,6 +31,4 @@ File: IncompleteForRBrace.kt - d0f046c7bd0f42d67a6dfed409babd41 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/IncompleteFun.antlrtree.txt b/grammar/testData/psi/recovery/IncompleteFun.antlrtree.txt index cd8b15a87..00d2604dc 100644 --- a/grammar/testData/psi/recovery/IncompleteFun.antlrtree.txt +++ b/grammar/testData/psi/recovery/IncompleteFun.antlrtree.txt @@ -30,6 +30,4 @@ File: IncompleteFun.kt - 33371174e7be9aa5b08627a87f369ec8 LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/IncompleteFunDeclaration.antlrtree.txt b/grammar/testData/psi/recovery/IncompleteFunDeclaration.antlrtree.txt index 42c5c7ed3..5376e728a 100644 --- a/grammar/testData/psi/recovery/IncompleteFunDeclaration.antlrtree.txt +++ b/grammar/testData/psi/recovery/IncompleteFunDeclaration.antlrtree.txt @@ -27,6 +27,4 @@ File: IncompleteFunDeclaration.kt - 7fc080d7492eb4fced7af7efd87d6c9d CLASS("class") simpleIdentifier Identifier("Next") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/IncompleteFunTypeParameters.antlrtree.txt b/grammar/testData/psi/recovery/IncompleteFunTypeParameters.antlrtree.txt index e2cc88411..3fc932977 100644 --- a/grammar/testData/psi/recovery/IncompleteFunTypeParameters.antlrtree.txt +++ b/grammar/testData/psi/recovery/IncompleteFunTypeParameters.antlrtree.txt @@ -29,6 +29,4 @@ File: IncompleteFunTypeParameters.kt - d849ba3fdf05ab873fda674a5015935e CLASS("class") simpleIdentifier Identifier("Next") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/IncompleteTypeParameters.antlrtree.txt b/grammar/testData/psi/recovery/IncompleteTypeParameters.antlrtree.txt index b4d47f569..97ddcdc4d 100644 --- a/grammar/testData/psi/recovery/IncompleteTypeParameters.antlrtree.txt +++ b/grammar/testData/psi/recovery/IncompleteTypeParameters.antlrtree.txt @@ -27,6 +27,4 @@ File: IncompleteTypeParameters.kt - 1198954cb93ffe0de2d522db57569112 simpleIdentifier CLASS("class") Identifier("Next") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/IncompleteWhere.antlrtree.txt b/grammar/testData/psi/recovery/IncompleteWhere.antlrtree.txt index b3347e2b2..ce3070ac1 100644 --- a/grammar/testData/psi/recovery/IncompleteWhere.antlrtree.txt +++ b/grammar/testData/psi/recovery/IncompleteWhere.antlrtree.txt @@ -29,6 +29,4 @@ File: IncompleteWhere.kt - 4f03d9deedb0f2159ae7d67c7298b730 CLASS("class") simpleIdentifier Identifier("Next") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/IncompleteWhere2.antlrtree.txt b/grammar/testData/psi/recovery/IncompleteWhere2.antlrtree.txt index 744846ebe..df1ebf883 100644 --- a/grammar/testData/psi/recovery/IncompleteWhere2.antlrtree.txt +++ b/grammar/testData/psi/recovery/IncompleteWhere2.antlrtree.txt @@ -33,6 +33,4 @@ File: IncompleteWhere2.kt - ccb6d620ae8ff9fef5b423e25b457646 CLASS("class") simpleIdentifier Identifier("Next") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/InterfaceInExpressionPosition.antlrtree.txt b/grammar/testData/psi/recovery/InterfaceInExpressionPosition.antlrtree.txt index 244a351bc..41ba56442 100644 --- a/grammar/testData/psi/recovery/InterfaceInExpressionPosition.antlrtree.txt +++ b/grammar/testData/psi/recovery/InterfaceInExpressionPosition.antlrtree.txt @@ -55,6 +55,4 @@ File: InterfaceInExpressionPosition.kt - 98bd70a7d7932f39a748958430bebc25 (WITH_ semis NL("\n") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/InvalidCharInSingleLineLambda.antlrtree.txt b/grammar/testData/psi/recovery/InvalidCharInSingleLineLambda.antlrtree.txt index 92c8a96cf..a8557dcfb 100644 --- a/grammar/testData/psi/recovery/InvalidCharInSingleLineLambda.antlrtree.txt +++ b/grammar/testData/psi/recovery/InvalidCharInSingleLineLambda.antlrtree.txt @@ -68,6 +68,4 @@ File: InvalidCharInSingleLineLambda.kt - c3afd067479c90884b6454e06edc595d LCURL("{") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/MissingCommaInValueArgumentList.antlrtree.txt b/grammar/testData/psi/recovery/MissingCommaInValueArgumentList.antlrtree.txt index eb01dafed..1cbc3cf40 100644 --- a/grammar/testData/psi/recovery/MissingCommaInValueArgumentList.antlrtree.txt +++ b/grammar/testData/psi/recovery/MissingCommaInValueArgumentList.antlrtree.txt @@ -33,6 +33,4 @@ File: MissingCommaInValueArgumentList.kt - 004fee79134adbbce8b0a639ac151dd3 Identifier("b") Identifier("c") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/PackageNewLineRecovery.antlrtree.txt b/grammar/testData/psi/recovery/PackageNewLineRecovery.antlrtree.txt index 66010f52e..6d7acab5d 100644 --- a/grammar/testData/psi/recovery/PackageNewLineRecovery.antlrtree.txt +++ b/grammar/testData/psi/recovery/PackageNewLineRecovery.antlrtree.txt @@ -50,6 +50,4 @@ File: PackageNewLineRecovery.kt - d0f92a81e0f2f652231c8d3ca8a707b1 primaryExpression literalConstant IntegerLiteral("12") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/ValueParameterNoTypeRecovery.antlrtree.txt b/grammar/testData/psi/recovery/ValueParameterNoTypeRecovery.antlrtree.txt index 63c94e306..c42c7aa18 100644 --- a/grammar/testData/psi/recovery/ValueParameterNoTypeRecovery.antlrtree.txt +++ b/grammar/testData/psi/recovery/ValueParameterNoTypeRecovery.antlrtree.txt @@ -48,6 +48,4 @@ File: ValueParameterNoTypeRecovery.kt - cb58540bae58830bbf09c21920700ec8 literalConstant IntegerLiteral("13") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/objects/declarations/ConstructorModifiers.antlrtree.txt b/grammar/testData/psi/recovery/objects/declarations/ConstructorModifiers.antlrtree.txt index e563a4e4a..a386cd779 100644 --- a/grammar/testData/psi/recovery/objects/declarations/ConstructorModifiers.antlrtree.txt +++ b/grammar/testData/psi/recovery/objects/declarations/ConstructorModifiers.antlrtree.txt @@ -86,6 +86,4 @@ File: ConstructorModifiers.kt - fa9fe62cbc4ca03473b17b59299bf02f (WITH_ERRORS) RSQUARE("]") LPAREN("(") RPAREN(")") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/objects/declarations/FollowedByModifiers.antlrtree.txt b/grammar/testData/psi/recovery/objects/declarations/FollowedByModifiers.antlrtree.txt index f39424b69..3d20141d2 100644 --- a/grammar/testData/psi/recovery/objects/declarations/FollowedByModifiers.antlrtree.txt +++ b/grammar/testData/psi/recovery/objects/declarations/FollowedByModifiers.antlrtree.txt @@ -48,6 +48,4 @@ File: FollowedByModifiers.kt - 8922587bd823f2fa07977560862bbd58 CLASS("class") simpleIdentifier Identifier("Bar") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/objects/expressions/ConstructorModifiersAndName.antlrtree.txt b/grammar/testData/psi/recovery/objects/expressions/ConstructorModifiersAndName.antlrtree.txt index e724d7006..505b5159d 100644 --- a/grammar/testData/psi/recovery/objects/expressions/ConstructorModifiersAndName.antlrtree.txt +++ b/grammar/testData/psi/recovery/objects/expressions/ConstructorModifiersAndName.antlrtree.txt @@ -208,6 +208,4 @@ File: ConstructorModifiersAndName.kt - 1a4b7e64d02880c76092948581d1cb02 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/objects/expressions/EmptyParentheses.antlrtree.txt b/grammar/testData/psi/recovery/objects/expressions/EmptyParentheses.antlrtree.txt index 521d95ad3..732b07029 100644 --- a/grammar/testData/psi/recovery/objects/expressions/EmptyParentheses.antlrtree.txt +++ b/grammar/testData/psi/recovery/objects/expressions/EmptyParentheses.antlrtree.txt @@ -109,6 +109,4 @@ File: EmptyParentheses.kt - b05d24c88d49f0be00224aaa80828737 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/objects/expressions/TypeParametersAndParentheses.antlrtree.txt b/grammar/testData/psi/recovery/objects/expressions/TypeParametersAndParentheses.antlrtree.txt index ffe1cd218..1d0fda9d1 100644 --- a/grammar/testData/psi/recovery/objects/expressions/TypeParametersAndParentheses.antlrtree.txt +++ b/grammar/testData/psi/recovery/objects/expressions/TypeParametersAndParentheses.antlrtree.txt @@ -162,6 +162,4 @@ File: TypeParametersAndParentheses.kt - e7f4408107109a5d28d26966e965e4e4 LPAREN("(") RPAREN(")") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/unnamedParameter/firstInFunction.antlrtree.txt b/grammar/testData/psi/recovery/unnamedParameter/firstInFunction.antlrtree.txt index 1de716dd4..d82fd9ab2 100644 --- a/grammar/testData/psi/recovery/unnamedParameter/firstInFunction.antlrtree.txt +++ b/grammar/testData/psi/recovery/unnamedParameter/firstInFunction.antlrtree.txt @@ -22,6 +22,4 @@ File: firstInFunction.kt - 1e70f223fdcc57200de28c107fe77977 NL("\n") statements RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/unnamedParameter/firstInFunctionalType.antlrtree.txt b/grammar/testData/psi/recovery/unnamedParameter/firstInFunctionalType.antlrtree.txt index cf112c0c1..f3e237c08 100644 --- a/grammar/testData/psi/recovery/unnamedParameter/firstInFunctionalType.antlrtree.txt +++ b/grammar/testData/psi/recovery/unnamedParameter/firstInFunctionalType.antlrtree.txt @@ -16,6 +16,4 @@ File: firstInFunctionalType.kt - 0217a8c41dc31ec5a61be956c0c1a4ea RPAREN(")") ARROW("->") Identifier("Int") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/unnamedParameter/firstInLambda.antlrtree.txt b/grammar/testData/psi/recovery/unnamedParameter/firstInLambda.antlrtree.txt index f12b4d430..823f11977 100644 --- a/grammar/testData/psi/recovery/unnamedParameter/firstInLambda.antlrtree.txt +++ b/grammar/testData/psi/recovery/unnamedParameter/firstInLambda.antlrtree.txt @@ -56,6 +56,4 @@ File: firstInLambda.kt - becae5d78e0162a275e30779a818ebe4 literalConstant IntegerLiteral("0") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/unnamedParameter/secondInFunctionalType.antlrtree.txt b/grammar/testData/psi/recovery/unnamedParameter/secondInFunctionalType.antlrtree.txt index ec7da498b..a4cec9ddc 100644 --- a/grammar/testData/psi/recovery/unnamedParameter/secondInFunctionalType.antlrtree.txt +++ b/grammar/testData/psi/recovery/unnamedParameter/secondInFunctionalType.antlrtree.txt @@ -34,6 +34,4 @@ File: secondInFunctionalType.kt - 3db6180b3c8981a92141d80a2158ee44 simpleUserType simpleIdentifier Identifier("Int") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/recovery/unnamedParameter/secondInLambda.antlrtree.txt b/grammar/testData/psi/recovery/unnamedParameter/secondInLambda.antlrtree.txt index 8fa290107..ba114e41b 100644 --- a/grammar/testData/psi/recovery/unnamedParameter/secondInLambda.antlrtree.txt +++ b/grammar/testData/psi/recovery/unnamedParameter/secondInLambda.antlrtree.txt @@ -46,6 +46,4 @@ File: secondInLambda.kt - 5606e9da70517f4a6f04e729c4b38298 ARROW("->") IntegerLiteral("0") RCURL("}") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/secondaryConstructors/recoveryWrongDelegationName.antlrtree.txt b/grammar/testData/psi/secondaryConstructors/recoveryWrongDelegationName.antlrtree.txt index 961d9af1b..146017006 100644 --- a/grammar/testData/psi/secondaryConstructors/recoveryWrongDelegationName.antlrtree.txt +++ b/grammar/testData/psi/secondaryConstructors/recoveryWrongDelegationName.antlrtree.txt @@ -76,6 +76,4 @@ File: recoveryWrongDelegationName.kt - 417e6f12a9846074b412d50bdba272b1 literalConstant IntegerLiteral("1") NL("\n") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/validKotlinFunInterface.antlrtree.txt b/grammar/testData/psi/validKotlinFunInterface.antlrtree.txt index f5023e795..591938314 100644 --- a/grammar/testData/psi/validKotlinFunInterface.antlrtree.txt +++ b/grammar/testData/psi/validKotlinFunInterface.antlrtree.txt @@ -101,6 +101,4 @@ File: validKotlinFunInterface.kt - 668a1a0d8ae3f4340b21fc60191bbd46 INTERFACE("interface") simpleIdentifier Identifier("Foo") - semis - EOF("") EOF("") diff --git a/grammar/testData/psi/valueClass.antlrtree.txt b/grammar/testData/psi/valueClass.antlrtree.txt index c134410c9..9e3b58e6e 100644 --- a/grammar/testData/psi/valueClass.antlrtree.txt +++ b/grammar/testData/psi/valueClass.antlrtree.txt @@ -284,6 +284,4 @@ File: valueClass.kt - c83d7d57ae818fb90a34f2c340987387 CLASS("class") simpleIdentifier Identifier("Foo") - semis - EOF("") EOF("") diff --git a/web/build.gradle.kts b/web/build.gradle.kts index a5b997c51..670467e8c 100644 --- a/web/build.gradle.kts +++ b/web/build.gradle.kts @@ -39,9 +39,8 @@ kotlin { webpackTask { dependsOn("copyKatex") - output.apply { - libraryTarget = KotlinWebpackOutput.Target.AMD_REQUIRE + libraryTarget = KotlinWebpackOutput.Target.AMD library = "main" } diff --git a/web/src/main/kotlin/org/jetbrains/kotlin/spec/entity/test/parameters/TestType.kt b/web/src/main/kotlin/org/jetbrains/kotlin/spec/entity/test/parameters/TestType.kt index 8fb21324e..dee11d4fb 100644 --- a/web/src/main/kotlin/org/jetbrains/kotlin/spec/entity/test/parameters/TestType.kt +++ b/web/src/main/kotlin/org/jetbrains/kotlin/spec/entity/test/parameters/TestType.kt @@ -5,7 +5,7 @@ enum class TestType(val shortName: String) { Negative("neg"); override fun toString(): String { - return name.toLowerCase() + return name.lowercase() } companion object { diff --git a/web/src/main/kotlin/org/jetbrains/kotlin/spec/loader/SpecTestsLoader.kt b/web/src/main/kotlin/org/jetbrains/kotlin/spec/loader/SpecTestsLoader.kt index d51567964..327bb9db6 100644 --- a/web/src/main/kotlin/org/jetbrains/kotlin/spec/loader/SpecTestsLoader.kt +++ b/web/src/main/kotlin/org/jetbrains/kotlin/spec/loader/SpecTestsLoader.kt @@ -32,7 +32,7 @@ class SpecTestsLoader { false -> """ @@ -89,7 +89,7 @@ class SpecTestsLoader { fun showMarkup() { `$`("h2, h3, h4, h5").each { _, section -> - val sectionTagName = section.tagName.toLowerCase() + val sectionTagName = section.tagName.lowercase() val sectionElement = `$`(section) val paragraphsInfo = getParagraphsInfo(sectionElement) ?: return@each null @@ -111,7 +111,7 @@ class SpecTestsLoader { } private fun getNestedSections(sectionElement: JQuery): List { - val placeCurrentSectionLevel = sectionTagNames.indexOf(sectionElement.prop("tagName").toString().toUpperCase()) + val placeCurrentSectionLevel = sectionTagNames.indexOf(sectionElement.prop("tagName").toString().uppercase()) val otherSectionTagNames = sectionTagNames.slice(0..placeCurrentSectionLevel) val nestedSectionTagNames = sectionTagNames.slice(placeCurrentSectionLevel until sectionTagNames.size) var nextSibling = sectionElement.get()[0].nextElementSibling